Implement encrypted messaging protocol using shielded transaction memos#122
Draft
Implement encrypted messaging protocol using shielded transaction memos#122
Conversation
- Add core/src/memo.rs with message encoding/decoding - Define 512-byte memo format with version, type, timestamp, nonce, fragments - Support message fragmentation for >498 byte messages - Add WASM bindings for encode/decode operations - Add comprehensive unit tests (12 core tests, 3 WASM tests) - All tests passing, clippy clean Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
- Add frontend/js/storage/messages.js with localStorage-based message storage - Implement message CRUD operations and conversation management - Add frontend/js/services/message-sync.js for memo extraction and parsing - Support message fragmentation and reassembly - Add conversation grouping and pending message tracking - Update constants.js with messages storage key Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
- Add wasm-opt = false to wasm-module Cargo.toml - Successfully build WASM module with memo functions exposed - Verify encode_message_memo, decode_message_memo, encode_message_fragments, reassemble_message_fragments, and generate_message_nonce are available in JavaScript Co-authored-by: dannywillems <6018454+dannywillems@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add encrypted messaging system using shielded transaction memos
Implement encrypted messaging protocol using shielded transaction memos
Jan 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds infrastructure for end-to-end encrypted messaging via Zcash shielded transaction memos. Messages are encrypted with the recipient's viewing key and can only be decrypted by the intended recipient.
Core Protocol (
core/src/memo.rs)WASM Bindings (
wasm-module/src/lib.rs)Exposed 5 JavaScript functions:
encode_message_memo(text, timestamp, nonce)encode_message_fragments(text, timestamp, nonce)decode_message_memo(memo_hex)reassemble_message_fragments(fragments_json)generate_message_nonce()Storage & Sync (
frontend/js)Limitations
Sending messages requires shielded transaction support (Sapling/Orchard), which is not yet implemented. The infrastructure is ready for when shielded sending is added. Currently supports viewing received messages only.
Test Coverage
-D warningsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.