Receive and pay
Give someone your receiving card, pay a card or a payment request, and see what each side learns.
Receive#
Your wallet makes a receiving card: one line of text beginning lathen-card-v4. that contains your owner value and your encryption public key. Send it to the payer over any channel. The card carries a check value; a card with a wrong check or for another chain is refused.
A payer can also use a payment request (beginning lathen-payment-request-v4.). There the recipient fixes the note and its envelope in advance, and the payer uses them unchanged.
Pay#
- Open the wallet and choose Pay.
- Paste the receiving card or payment request, pick the asset and the amount.
- The wallet builds the proof on your computer. This takes several seconds.
- The wallet submits the transaction. Change comes back to you as a second note.
If no two of your notes cover the amount, the wallet first merges notes, with one proof per merge. The transaction expires after 64 blocks by default.
What happens, in order#
preparing, then proving, then submitting, then submitted, then included. "Submitted" only means the node answered. The wallet reports "included" only after it found its own output commitments and nullifiers in a block it verified itself. If an answer is lost, the wallet reports an unknown outcome, keeps the input notes reserved, and never resubmits; the next synchronisation settles it as included or, at the expiry height, as failed.
What each party learns#
| Who | Learns |
|---|---|
| Everyone | That a transaction of this kind happened and when; two nullifiers, two output commitments, two encrypted envelopes, the anchor root, an expiry height and the proof. Not the sender, recipient, asset or amount. |
| The recipient | The asset and the amount received |
| The payer | The note it paid. It cannot compute that note's nullifier, so it cannot see when the recipient spends it. |
| The node you send to | Your network address and the time you sent |
See What is hidden and what is public for the full table.