Share a receipt
Show one tab to an auditor or a counterparty without opening anything else.
A receipt is a link that discloses one tab's settlement. Whoever opens it sees that tab decrypted: the agent, the service, the times, and the amount paid.
Make the link
Open the tab
Go to the agent's page at
/app/agents/[id]and find the tab in its tabs list. Receipts exist for tabs that aresettlingorsettled, since those have a settlement transfer.Share receipt
Press Share receipt. Your browser derives the per-transaction viewing key for that tab's settlement transfer and puts it in the link's fragment, after the
#.Send it
Copy the link and send it the way you'd send any document. It opens at
/app/receipts/[id].
What the reader sees
The receipt page reads the tab and its shielded settlement transaction from the API, then decrypts the transaction in the reader's browser with the key from the fragment. The reader doesn't need a wallet.
| Shown | Not shown |
|---|---|
| The agent and service addresses | The agent's balance |
| When the tab opened and closed | Any other tab |
| The settlement transaction and its amount | The agent's viewing key or yours |
| The tab's status |
Why the key stays out of the server
Browsers don't send a URL's fragment to the server. The Ayo API returns the same ciphertext it would return to anyone, and only the browser holding the link can decrypt it. A per-transaction viewing key decrypts that one transaction.
If the link is missing its fragment or the key doesn't match the transaction, the receipt page says the key is invalid and shows only the public record.