matrix-org / matrix-org/matrix-rust-sdk

Remove the default serializer in the matrix-sdk-store-encryption crate

Open
#718 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

The default serialization format for encrypted values in the store-encryption crate is JSON using serde_json. Since the ciphertext and nonce are byte vectors and JSON a textual encoding this ends up using more storage than what would be needed.

People can already use any other serialization format that is supported by Serde so let's just remove the default one.

Contributor guide

Open the contributing guide

Research direction

Start in the matrix-sdk-store-encryption crate and inspect how serde_json is configured as the default serialization format for encrypted values. Confirm that other Serde-supported formats remain usable; done means JSON is no longer the default and the crate still handles its ciphertext and nonce values correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, security
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.