Tagged memos
Status: on Arctic. Private retrieval is planned.
Every action of a Styx bundle, dummies included, carries a tagged memo of 137 bytes, in place of Orchard's note ciphertexts:
| Part | Bytes |
|---|---|
| Tag | 16 |
The plaintext, sealed: lead (1), value (8), rseed (32), psi (32), delta_seed (32) | 105, plus a 16-byte authentication tag |
- The tag is what the recipient looks up. For the ith payment on a channel, it's the channel's tag for i, which is random to anyone who doesn't know the channel (Channels).
- The plaintext is sealed with ChaCha20-Poly1305 under the key of payment i. The key also binds the note's commitment, so no two notes share a key.
delta_seedgives a recipient the seed of Δ's blinds, so it can recognise the payment's program (Recognising a program). A sender with nothing to share fills it with random bytes.- A dummy's memo is a random tag and random bytes. Only a recipient can tell a real memo from a dummy's.
No trial decryption
An Orchard wallet tries to decrypt every output on the chain. A Styx wallet derives the tags its payments will carry, and asks a node for them (The lookup RPCs). For each match the node returns a record of 193 bytes: the note's commitment, its action's nullifier, the sealed plaintext, and the note's position in the note commitment tree. The wallet opens the plaintext, recomputes the note's commitment from it and its own address, and rejects any mismatch.
Records are grouped in epochs of 10,000 blocks, about 69 hours. Once an epoch is final, its records never change.
What a node learns
Today a wallet asks for its tags in the clear, so the node that serves it learns which tags it asks for, and so which payments it finds. Private information retrieval would hide that. The fixed-size records and final epochs are there for it, but it isn't built.