Skip to content

Memos in transaction history, with raw bytes - #23

Open
ETIM-PAUL wants to merge 7 commits into
red-dev-inc:mainfrom
ETIM-PAUL:pr/raw-memo-access
Open

ETIM-PAUL wants to merge 7 commits into
red-dev-inc:mainfrom
ETIM-PAUL:pr/raw-memo-access

Conversation

@ETIM-PAUL

@ETIM-PAUL ETIM-PAUL commented Oct 28, 2026 •

Copy link
Copy Markdown

What

Transaction history now includes the memos the wallet can read. Each history item has an outputs[] list, and every output carries:

  • memo_kind: empty, text, arbitrary, future or invalid_text;
  • the text, when the memo is valid UTF-8 text;
  • the raw memo bytes as hex, always the full 512 bytes, so callers can decode their own formats.

Sync also fetches the full transactions that compact-block scanning left without memos, and decrypts and stores them (enhance_transactions). It uses txids_needing_enhancement() from the companion zcash_client_memory PR.

Why

Before this, received memos were always empty: sync only scans compact blocks, which don't carry memos. Even for sent notes, history had no way to show a memo or its raw bytes.

Stack

This is PR 3 of 4 and builds on #22 (and #21). This PR's own changes: ETIM-PAUL/WebZjs-red-dev@pr/payments-memo-api...pr/raw-memo-access

Overlap: sqhell's #16 also changes how history is classified, so it will touch the same files.

Testing

  • memo.rs unit tests cover each kind, including invalid UTF-8 and the future kind. fmt, clippy and the wasm build are clean.
  • Live on testnet: text and hex memos received from transaction 23acbef4…e891 show up in history after sync, with their kind, text and raw bytes.
  • History txids are in internal byte order, which is reversed from block explorers. That was already the case before this PR, and I haven't changed it.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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