Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Idea catalog: more designs, and what does not work

Each design names the patterns it uses in parentheses, numbered as in The pattern language, and its catch where it has one. The second half lists things that do not fit the model, with the reason.

Money

Payroll. A company PDA holds the month’s salaries. One public transaction sends a credit to each employee’s address as an async message, and employees collect privately. Amounts are public unless the payroll actor is group-owned and private, in which case an officer runs it and the async messages are sealed. (9, 13, 18)

Tip jar. A creator publishes one blinded address per platform. Tips are plain transfers. (9, 8)

Savings lock. A PDA vault that pays its owner’s address only after a date. The owner cannot break it, because no key controls a PDA, as long as the vault program is immutable. (13, 17)

Allowance for a child account. A mandate actor on the parent’s account that accepts bills from one address up to a limit per period. See Payment requests. (10)

Crowdfunding with a threshold. A public campaign PDA collects deposits under pseudonyms. At the deadline, anyone pokes it: if the goal is met it pays the creator, otherwise it sends each deposit back to the address it came from as an async message. A refund to a private backer is published in the clear, so that backer’s address needs a recovery binding on chain. Private backers stay hidden; each deposit and the total are public. (8, 11, 13)

Private lending between friends. A group-owned private ledger. No enforcement beyond the group. (18)

Bounties. A public PDA holds a reward and a hash. The first message carrying the preimage is paid at the address it names. To stop front-running, the claim first commits to the answer and the claimant’s address, then reveals. (13, 14)

Governance

Anonymous feedback box. A public actor that accepts one message per badge per period. (7, 8, rate limit from Credentials)

Petition. The petition counts proof-carrying signatures, one per badge. The count is public, the signers are not. (7)

Council with secret ballots and public members. Votes go through private seats under fresh addresses. Everyone knows who may vote; nobody knows how each voted, unless the tally gives it away (a unanimous vote). (7, 8)

Whistleblower channel. A newsroom publishes its keys. A source sends a sealed message from a throwaway private account, with a bond. To be answered, the source includes that account’s keys, so the newsroom can seal a reply to it. The newsroom learns one throwaway account, which on chain links to the source only through its funding, its timing and its fee; fund it privately. (8, 9)

Jury selection. Jurors hold badges. A case actor picks jurors by pseudonym from those who volunteered. Jurors vote under the same pseudonym for the case and are paid at it. (7, 8, 12)

Identity and access

Age check. See Credentials. (7)

Allow-listed token sale. The sale accepts purchases only with an Attested message from a badge, limited to one per badge. (7)

Anonymous forum karma. A forum sends karma badges to pseudonyms as async messages. Users collect them into their account and show a total under a new pseudonym. (7, 8, 9)

Guest list with plus-ones. A private ticket records its issuer and may send one more ticket, carrying that issuer, once, to a friend’s address. The door admits a ticket of its own program only for an issuer it trusts, as the venue does in Credentials. (7, 15)

Address forwarding. A private actor that forwards everything it receives to a new address, written once. Old addresses keep working, but the old owner must still collect each message to forward it, so the old keys stay in use. (15)

Coordination and games

Secret Santa. A public organiser actor assigns each participant another participant’s address without learning who is behind any address. A gift sent from a public account needs only the address. A gift sent privately needs the recipient’s keys, so that giver learns the recipient’s account. (8, 9)

Prediction market with hidden positions. The market and its prices are public; positions are private actors. Buying and redeeming cross the boundary under pseudonyms. (7, 8, 13)

Treasure hunt. Clues are stored messages sealed to whoever solved the previous clue. (9)

Turn-based strategy. See Deep Space Radio and Battleship.

Correspondence chess with a clock. A public match actor, validity windows for each move’s deadline. (12, 16)

Infrastructure

Keeper network. A registry of pokable actors and the fee each pays. Keepers earn by sending the transactions nobody else bothers to send. (11)

Relayer for private fees. A private transaction can pay its fee through a fee declaration by one of its public signers, so a public relayer can sign and pay it, and be repaid by an AsyncMessage inside the same transaction. The relayer’s signature links its account to the transaction. (9)

Message board with expiry. A public actor that keeps the last N messages and drops older ones, so its state stays bounded.

Name registry. A public actor per name, derived from the name’s hash (pattern 14), holding an address. Paying “alice” means reading the address and sending to it. A private owner updates the address under a pseudonym.

Notification inbox. A convention, not a handler: stored messages of a Notify { topic, text } type addressed to a user under an agreed notification program id, which wallets display and never collect. Programs get a standard way to tell a private user something.

What does not work, and why

An automated market maker with hidden reserves. Whoever trades must see the reserves, so they are public, or one party holds the keys and must run every trade.

A private order book matched by the chain. Matching compares two parties’ secrets, and no single transaction can run both parties’ private handlers.

Liquidating a private position. Only a holder of the account’s keys can run its private handler, so collateral that must be seizable has to sit in a public actor.

Reading someone’s private balance with their permission. There is no view grant in the protocol. The owner can share their viewing key, which shows everything, or prove a specific claim about the balance with a badge-style program.

Private recurring payments with the payer offline. A private account does nothing while its owner is away; pre-fund a public stream.

Refunding a stored credit automatically. A stored message is never returned, so the sender needs a return path in the program, enforced by a public actor.

A program that scans the mailbox. Handlers see one message; scanning is done by wallets, off chain.

Guaranteed delivery. An AsyncMessage guarantees that the message is stored, never that it is collected.

Randomness. No beacon exists. Two parties can produce a shared random value by commit and reveal; a single party cannot produce one that others trust.

Hiding that you use a program. A disclosed program is named in every private transaction that runs it. Of deployed programs, only immutable ones can run undisclosed.

Unbounded fan-out to private recipients. Each recipient pays a proof per message collected (the reference wallet clears up to five native credits per proof, and any other message costs a proof of its own). A design that sends a thousand people a message a day will be ignored by most of them.