Expand description
Structured 36-byte shielded note memo (DashMemo).
Every shielded output carries a fixed 36-byte memo
(MEMO_SIZE). The dashpay Orchard fork pins the memo to 36
bytes (Zcash’s is 512) by making the memo size a type parameter;
the on-chain note ciphertext reserves exactly those bytes. This
type imposes a small self-describing structure on those bytes so
the wallet can attach an optional text note to a transfer and
recover it on the receive side:
- bytes
[0..4]—kindas a little-endianu32. - bytes
[4..36]— a 32-byte payload whose meaning depends onkind.
Two kinds are defined today; unknown kinds round-trip verbatim as
ShieldedMemo::Other so a future writer’s memo is never
corrupted by an older reader.
Enums§
- Shielded
Memo - A decoded shielded note memo.
Constants§
- MEMO_
PAYLOAD_ SIZE - Length of the payload that follows the 4-byte kind tag.
- MEMO_
SIZE - Total memo length in bytes (
DashMemo = [u8; 36]).