Wishlist
Static address with OMR
A tip jar has one address for all senders. With oblivious message retrieval (OMR), a server finds the payments for the wallet. The server does not learn which payments they are.
A static address already works on Zcash today. With OMR, a wallet finds its payments in a new way. The set of people who can pay the address stays the same. That change, its cost and the open parts of the design are on this page.
Necessary changes
- Improves
- Each wallet that syncs with a server. Each app that publishes one address, for example a tip jar.
- Wallets
- A clue key in the address. A detection key for the server. A function that reads the digest from the server.
- Senders
- A clue with each payment, about 1 KB for each output in the design of the Zcash Foundation.
- Servers
- A service that scans all clues for each wallet that registers. It does homomorphic encryption work for each clue.
- ZIP
- A new ZIP for the clue, the address and the server protocol. None exists. See Parts of a spec.
- Consensus
- Depends on where the clue is. A new field in each output changes the transaction format.
- Status
- Proposal. Research schemes exist. The Zcash design is an open issue in the Tachyon repository, and its author says it is not proven.
Problem
On Zcash today, a wallet finds its payments by trial decryption: it tries its incoming viewing key on each action on the chain. A light wallet gets compact blocks from a server such as lightwalletd for this. After it finds a payment, it asks the server for the full transaction. Then the server knows that this wallet, at this time, requested this transaction (Zcash Foundation, March 2023). A wallet can download all transactions in full to hide this, but the cost is almost the size of the chain.
Shielded outputs to one address do not link to each other on the chain. The leak is in the sync with the server.
Tachyon issue 368 shows a second problem. In
the Tachyon payment protocol, a first payment has a tag H(ek), which the recipient finds with
private information retrieval (PIR). Each holder of the key ek can calculate the same tag.
Thus, the Tachyon book makes a new address for each sender. There is no safe way to publish one address for
everyone. After Tachyon, a static address needs a tag that only the recipient can recognize.
Mechanism
OMR is from Liu and Tromer. The scheme is based on lattice-based fully homomorphic encryption. The Zcash Foundation described how it can work for Zcash:
- The address has a clue key, in addition to its other keys.
- The sender pays as usual. The transaction also has a clue ciphertext for the recipient, about 1 KB for each shielded output.
- The recipient makes a detection key and gives it to a server. The server cannot read the key.
- The server scans each clue with the detection key, under encryption. The server adds the clues that match into one encrypted digest.
- The recipient decrypts the digest and gets the transactions that are for the wallet.
The server learns that the wallet uses OMR. It does not learn which transactions are for the wallet.
The Tachyon proposal
Issue 368 has a new first-payment tag: a 32-byte clue field in place of H(ek). The field is
different in each payment. Only the recipient can recognize it, with a secret. The clue is made from a value of
the ML-KEM ciphertext. Thus, a clue adds only a few numbers to the ciphertext. The sizes in the issue:
address 2,368 bytes (pk 32 + ek 1,184 + ck 1,152)
entry 1,249 bytes (marker 1 + field 32 + ciphertext 1,088 + note 128)
detection key 52,256 bytes (one RLWE key and two packing keys)
Its author lists two open questions. The same randomness r is in the ML-KEM ciphertext and in the
clue. No paper studies this combination. The protection against fake clues ("snake-eye" attacks)
is new. The paper that it comes from has a warning: the obvious Ring-LWE version is not secure. According to
the issue, nobody outside has reviewed it.
Costs
The papers have different message sizes, parameters and computers. Read the numbers as orders of size.
| Source | Server | Wallet and network |
|---|---|---|
| Liu and Tromer, 2021 | About $1 for each million messages scanned | Digest of a few bits for each message scanned. About 20 ms to decode. |
| PerfOMR, 2024 | Describes prior schemes as about 0.1 s for each message. One protocol is 13.8 times faster. The other is about 40 ms for each message. | Prior schemes: about 1 KB for each message and 132 KB for the public keys. In the second protocol, the keys are about 235 times smaller and the message about 1.6 times smaller. |
| UnifOMR, 2026 | About 25 s for 219 messages of 612 bytes. SophOMR needs more than 1,250 s. | 4 MB of communication, against 260 KB for SophOMR. Two rounds between the detector and the client. |
UnifOMR has a proof that an OMR scheme with strong detection-key unlinkability is at least as hard as PIR. Thus, OMR is unlikely to be much cheaper than PIR.
Each payment carries a clue. The clue has about 1 KB in the Foundation design. An entry has 1,249 bytes in the Tachyon proposal. The wallet pays for the detection key and for the digest. The server pays for the scan. A server must do this for each wallet that registers.
Comparison
| Method | Who finds the payments | What the server learns | Added to each payment |
|---|---|---|---|
| Trial decryption of all actions | The wallet | Nothing, if the wallet downloads all actions in full | Nothing |
| Compact blocks, then fetch | The wallet | Which transactions the wallet fetches, and when | Nothing |
| OMR | The server, for the wallet | That the wallet uses OMR | A clue, about 1 KB |
| Tachyon tag with PIR | The wallet, with PIR | The query, which PIR hides | A tag. Needs a new address for each sender. |
| Tachyon clue (issue 368) | The server, for the wallet | That the wallet uses OMR | A clue field of 32 bytes, in an entry of 1,249 bytes. Static address. |
Limits
The issue has three limits of its design. Reactions. A person can send fake payments to a known address and watch how the recipient reacts. After many checks, this can show the clue secret and thus which first payments are the recipient's. The attacker learns no amounts and gets no spend authority. Dishonest servers. A server can hide payments. It can also add fakes, which makes the reaction attack cheaper. Wrong address. The sender must be sure that the complete address belongs to the recipient.
Parts of a spec
- Clue format. The size, the place in the transaction and the version. A new field in an output changes the transaction format.
- Address. The clue key is in the address. In Tachyon it makes the address 2,368 bytes. The spec must give the encoding, for example as a new receiver in a unified address.
- Server protocol. How a wallet registers a detection key, asks for a range of blocks and gets the digest. UnifOMR has two rounds.
- Protection against fake clues. A scheme with protection against snake-eye attacks, with a proof or a review.
- Who runs servers. The cost of a scan is for each wallet and for each message. A wallet needs a server that it can pay or trust to be available.