DocsAnnouncements

DocsConcepts10 of 33 · 2 min read

Announcements

What each payment publishes, field by field, and who can read which field.

Every payment emits one announcement. It is the whole of what Liora adds to the public record of a payment, and the ledger lists them all.

#The fields

stealthAddresspoint, 32 bytes

P, the one-time public key that owns the note this payment created.

ephemeralKeypoint, 32 bytes

R, from which the recipient recomputes the shared secret.

viewTaginteger, 0 to 255

One byte of a hash of the shared secret. It lets a scan skip most payments meant for others.

auditCiphertexttwo points, 64 bytes

c1 and c2, the recipient's public spend key encrypted to the auditor.

whitelistRootfield element, 32 bytes

The root the payment's proof was made against.

Points are Baby Jubjub points in circomlib's packed form, written as 64 lowercase hex digits. The root is a BN254 field element in big-endian bytes, also 64 hex digits. The bytes as the program emits them are on Events.

The indexer adds where the announcement was found:

signaturebase58

The transaction that carried the payment.

eventIndexinteger

The announcement's position among the events of that transaction.

slotdecimal string

The slot the transaction landed in.

blockTimeISO 8601, UTC

The time of that block.

proofVerifiedboolean

Whether the program verified the payment's proof. The program emits an announcement only after it has.

#Who reads what

FieldPublicRecipient, with v and sAuditor, with the audit key
stealthAddressAn address seen onceTheir own, since (s + h)G = PAn address seen once
ephemeralKeyA pointThe shared secret Q = vRA point
viewTagA byteMatches their QA byte
auditCiphertextTwo pointsTwo pointsThe recipient's public spend key S
whitelistRootWhich revision of the whitelistThe sameThe same
Asset and amount (in the Rings note)EncryptedDecryptedEncrypted

An announcement carries no directory index, no handle, no recipient wallet, no asset and no amount.

#The transaction around it

The announcement travels in a Rings transaction, and that transaction has its own public parts: the relayer that paid the network fee, the owner addresses and nullifiers of the notes spent, the commitments of the notes created, and the two flat fees leaving the Ring in SOL. They are the same for every payment, so they say nothing about the amount.

The relayer signs as fee payer and no wallet of the sender signs at all. Fees and the relayer covers both.

#Reading them

Anyone can read the announcements from the ledger or from the API. A recipient's scan reads the same list and keeps the ones their keys open, as Stealth addresses describes. The scan asks for every announcement and filters on the device, so the service that answers learns nothing about which ones were kept.