Skip to content

Support encrypted media upload and verified download - #33

Merged
TroyHernandez merged 2 commits into
mainfrom
encrypted-media
Oct 26, 2026
Merged

TroyHernandez merged 2 commits into
mainfrom
encrypted-media

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

Provide encrypted attachment upload and verified download without opening another crypto store. Uploads contain only ciphertext, and the caller sends the returned metadata using its existing encrypted session. Downloads verify integrity before replacing their destination.

The existing mx_send_media() now checks room encryption before upload and refuses a plaintext send into an encrypted room, including when the state lookup fails.

Validation: 981 assertions pass with isolated state, including transport fakes that inspect uploaded bytes and metadata, tampered-download protection, and the plaintext refusal. CI pins mx.crypto 0.2.2.2 and requires the attachment tests. Version 0.2.1.4. Depends on cornball-ai/mx.crypto#10.

@TroyHernandez
TroyHernandez merged commit 6afbd83 into main Oct 26, 2026
2 checks passed
@TroyHernandez
TroyHernandez deleted the encrypted-media branch October 26, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant