Privacy4All

Open source · Built in public · By @kshot9000 · For @midnightntwrk

Privacy for everyone — prove it, don’t show it.

Privacy4All is my builder hub for the Midnight blockchain: private messaging, selective disclosure, zero-knowledge tooling and the NIGHT / DUST economy — built so ordinary people can verify what matters without handing over everything about themselves. Every project here is open source, and every tool on this page runs locally in your browser. Nothing you type leaves this page.

Flagship projects
4 live sites
Catalogued repos
23 Midnight / privacy
Builder loop
Hourly, tested + verified

The idea, in 30 seconds

Projects

Live flagships first, then the full catalogue of my Midnight and privacy work. Filter by what you need:

Privacy tools — right here, nothing leaves your browser

One hundred and one tools and counting. Search by what you want to do — every word you type must match — and the list narrows as you type; clearing the search brings every tool back. The search reads only each tool's title and first line, runs entirely in your browser, and hides nothing permanently: a tool that is filtered out is still on this page, just not shown.

1 · Paste-and-protect redactor

Paste a message, post or document before you share it. This finds email addresses, Cardano addresses and US phone numbers and masks them — locally, on this device only.

2 · Selective-disclosure planner

Tell it what a service is asking for. It sorts each item the Midnight way: share the raw data, share a proof instead, or keep it private entirely.

What are they asking for?

3 · NIGHT → DUST capacity estimator

Each NIGHT can sustain up to 5 DUST capacity — the model my NightDream Midnight desk uses. This is a capacity ceiling, not a promise: actual generation depends on holdings and Midnight network parameters.

4 · What does this dApp see?

Before you connect, tick what a dApp is asking to see or do. I sort each permission by exposure and explain what it really gives away, plus the Midnight alternative — a proof instead of the raw data. This checker never connects a wallet or signs anything.

What is the dApp asking for?

5 · Prove it, don’t show it — ZK claim simulator

Pick a claim, type the private value only you should know, and set the threshold. The simulator shows exactly what a verifier learns from a Midnight zero-knowledge proof — the claim, and whether it holds — and what stays hidden. It is a teaching simulation, not a cryptographic proof: the comparison runs locally on this device and your value never leaves this page. Tool 32 below runs a real cryptographic proof — of key knowledge rather than of a claim — with the actual curve arithmetic.

6 · Compact snippet library — privacy patterns

Pick a pattern and see the Midnight split for it: what stays private on the user's device, what goes on the public ledger, and what is deliberately disclosed. These are simplified teaching patterns that show where each value belongs — they are not production contracts. Compact is still evolving: check the current docs and compile against the current release before using any pattern in a real contract.

7 · How DUST works — the lifecycle, step by step

DUST confuses everyone the first time: you do not buy it like a normal fee token. Holding NIGHT generates DUST up to a capacity ceiling, shielded transactions spend it, and holding the same NIGHT generates it back. Step through it with your own numbers. This is a teaching model of amounts and order only — it states no generation rate or time, because the real rate depends on Midnight network parameters.

8 · Commit now, reveal later — hash commitments

How do you prove you knew something earlier — a prediction, a sealed bid, a vote — without revealing it at the time? Publish a commitment: a hash of the secret now, the secret itself later. This makes a real SHA-256 hash computed locally on this device (the same idea as tool 6's commit-to-a-secret pattern) — your secret never leaves this page; only the hash is meant to be shared. Honest limits: a short or guessable secret can be brute-forced from its hash, so real systems add a long random salt — and this page's digest format is a teaching format, not Compact's on-chain persistent hash.

9 · What can an observer see? — public vs shielded

Pick an action and stand in the shoes of a stranger reading the ledger: what can they see, what stays private, and what still leaks anyway? This is a simplified teaching model of ledger visibility only — it does not model network-level metadata (timing, IP addresses) as solved, and every scenario names those residual leaks, because a private ledger is one layer of privacy, not the whole of it.

10 · Share a view, not your wallet — viewing-key scope simulator

Sometimes someone legitimately needs to check your shielded activity — an accountant, an auditor, a counterparty. The Midnight pattern is to disclose the narrowest scope that answers their question. Pick a scope and see what a viewer gets, what stays yours, and what to weigh first. This is a simplified teaching model of scoped disclosure in principle: exact viewing-key and disclosure capabilities depend on your wallet and the contract involved, so check the current Midnight docs before granting a real one. No key is entered, generated or connected here — never paste a real viewing key into a web page.

11 · Make it unguessable — secret strength & salt for commitments

Tool 8's honest limit, made measurable: anyone holding your commitment hash can guess at it offline, at machine speed, with nobody watching — so a commitment is only as safe as the secret behind it. Check a secret's strength here, then generate the standard fix: a long random salt. This is a rough teaching estimate, not a security audit: it assumes every character was picked uniformly at random from the character types you used, and human-chosen secrets are far more predictable than that model — words, names and dates fall to dictionary guessing long before brute force. The guessing rate used (10 billion a second) is a labelled assumption about a well-equipped offline attacker, not a measurement.

12 · Prove you're on the list — without showing the list

An allowlist, a voter roll, a set of eligible wallets: publish one short hash — the root — and the whole list is committed. Later, any one member can prove they're on it with a handful of sibling hashes, and a verifier who knows the root can check that proof without ever seeing the rest of the list. That structure is a Merkle tree, and the real SHA-256 for it runs locally here. Honestly labelled limits: a Merkle proof is not zero-knowledge — it reveals the entry itself, its position, the sibling hashes and (from the proof's length) the rough size of the list. The other entries stay behind their hashes, but a guessable entry can be checked by hashing a guess (tool 11's lesson), so real lists salt low-entropy entries. An odd entry at the end of a level is promoted unchanged, never duplicated. This page's hashed-message format is its own teaching format, not a specific chain's tree format — and nothing here connects to a chain or a wallet.

13 · Split a secret — no single share reveals it

Some secrets should not exist in just one place. Split a secret here and it is XORed with fresh random bytes generated locally, producing shares with a stark property: any share on its own is random bytes and reveals nothing about the secret's content, but all of them together rebuild it exactly. That is real secret sharing computed locally, not a simulation — the same one-time-pad maths that makes each incomplete set useless to whoever holds it. Honestly labelled limits: this is all-of-n sharing — every share is required, so losing one share loses the secret forever; real systems that need recovery use threshold (k-of-n) sharing such as Shamir's, where any k of n shares suffice — that scheme is named here, not implemented by this tool (tool 15 below implements it). A share is exactly as long as the secret, so a share's length leaks the secret's length. And never paste a real seed phrase or production secret into any web page, including this one — practise with throwaway secrets.

14 · Spend it once, stay private — notes & nullifiers

How does a shielded ledger stop you spending the same private coin twice, if it cannot see the coin? With two hashes of the note's secret, made for two different jobs. Creating a note publishes only its commitment hash. Spending it publishes a different hash — its nullifier — and the ledger's one mechanical rule is that a nullifier may appear only once, ever. Try it: create a note, spend it, then try to spend it again. This is a simplified teaching model of the note-and-nullifier idea, built from this page's own SHA-256 formats — it is not how a real Midnight note is constructed: real notes use random secrets and keys nobody can guess, plus a zero-knowledge proof that the note exists and the spender owns it. A human-chosen secret here can be dictionary-checked against both hashes (tool 11's lesson), and if it ever leaks, its commitment and nullifier become linkable after the fact. Never paste a real seed phrase or production secret into any web page, including this one — practise with throwaway secrets.

15 · Split with a safety net — any k of n shares (Shamir)

Tool 13's split has a hard edge: lose one share and the secret is gone. This is the threshold scheme it named — Shamir's secret sharing, computed locally for real. Each byte of your secret becomes the constant term of a polynomial over GF(256) whose other coefficients are fresh random bytes, and each share is that polynomial evaluated at a different point. Any k of the n shares rebuild the secret exactly by interpolation; k−1 shares are consistent with every possible secret, so they reveal nothing about its content. Honestly labelled limits: this is a teaching implementation, not an audited library — and there is no checksum, so with exactly k shares, one wrong or mistyped share rebuilds a wrong secret silently. A share is exactly as long as the secret, so a share's length leaks the secret's length. Never paste a real seed phrase or production secret into any web page, including this one — practise with throwaway secrets.

16 · Seal it so only they can read it — password-encrypted messages

A hash (tools 8, 12, 14) is one-way — nobody can un-hash it. Encryption is the opposite tool: reversible, but only for whoever holds the key. Seal a message here and it is encrypted for real, locally on this device, with AES-GCM: your password is stretched by PBKDF2 (210,000 rounds, a fresh random salt per seal) into the key, and the sealed text — safe to publish on its own — carries only the salt, the IV and the ciphertext. AES-GCM is authenticated, so a wrong password or one changed character fails to open instead of returning gibberish. Honestly labelled limits: this is a teaching implementation, not an audited encryption product, and its safety is exactly your password's safety — PBKDF2 slows offline guessing but cannot save a weak password (tool 11 measures that), and the sealed text's length reveals the message's approximate length. Send the password by a different channel from the sealed text: anyone with both can read it. Never paste a real seed phrase or production secret into any web page, including this one — practise with throwaway messages.

17 · Sign it — prove it came from you, without sharing your key

Encryption (tool 16) hides a message; a signature does the opposite job: the message stays public, but anyone can check that whoever holds one private key endorsed exactly these words — and that not one character changed since. This makes a real ECDSA key pair locally on this device, on the P-256 curve (the curve behind passkeys and WebAuthn; Bitcoin and Ethereum use its sibling curve secp256k1, which Web Crypto does not offer) and signs with ECDSA over SHA-256. The public key is safe to publish — it is how people recognise “you”. The private key IS the identity: anyone holding it can sign as you, with no recovery and no undo, so guard it exactly like a seed phrase. Honestly labelled limits: this is a teaching implementation, not an audited wallet; a signature does not hide the message, does not prove a legal name or real-world identity, and does not prove when the signing happened. Keys exist only in this page — nothing is stored or sent, and reloading loses the private key unless you saved it. Never paste a real wallet's private key into any web page, including this one — practise with throwaway keys.

18 · Agree on a secret nobody saw — key agreement

Sealing (tool 16) needs a password you already share, and signing (tool 17) proves who holds a key — but how do two people who have never met end up with a secret they both know and nobody else does, over a channel everyone can read? With key agreement — real ECDH on the P-256 curve, computed locally here: each side makes a key pair, the public keys are the only things exchanged, and each side mixes its own private key with the other's public key. Both sides land on exactly the same 32-byte shared secret, even though that secret is never exchanged and cannot be worked out from the two public keys alone. That handshake is what sits underneath private messaging. Honestly labelled limits: this is a teaching implementation, not an audited messaging app. Real systems never use the raw shared secret directly as a key — they run it through a key-derivation function first — and agreement alone does not prove who the other public key belongs to: a man-in-the-middle who swaps both public keys completes two separate agreements and can read everything, which is why real messengers let you compare a fingerprint of the secret, never the secret itself, over a channel you already trust. The secret is displayed on this page only so you can practise both sides in one place; a real app never shows it. Never paste a real wallet's private key into any web page, including this one — practise with throwaway keys.

19 · Stretch one secret into proper keys — key derivation (HKDF)

Tool 18 ends on a warning: real systems never use the raw shared secret directly as a key. This is the step that warning points at. Key derivation takes one secret and stretches it into separate, independent keys — one secret, many keys — but never the secret itself as a key. It runs locally for real here with HKDF (RFC 5869) over SHA-256: the purpose you pick is mixed into the derivation, so a different purpose means a different key — the messaging key, the storage key and the backup key from one secret share nothing usable, and leaking one reveals nothing about the others or the secret. An optional salt (tool 11's generator makes them) separates sessions: same secret, same purpose, different salt, different key. The salt is not a secret — both sides must pick the same purpose and the same salt, and they may exchange the salt openly. Honestly labelled limits: this is a teaching implementation, not an audited key-management product, and derivation does not strengthen a weak input — a guessable secret derives guessable keys, because anyone can run the same public derivation; HKDF assumes its input is already high-entropy key material, like tool 18's output, which is why there is deliberately no password stretching here. Never paste a real seed phrase or production secret into any web page, including this one — practise with throwaway secrets.

20 · Use the key — lock a message with the key you both derived

Tools 18 and 19 end with a key nobody has used yet — this is where it gets used. This tool uses the derived key directly as a real AES-GCM key: no password, no stretching and no salt, because tool 19's output is already high-entropy key material, which is exactly what the derivation was for. (Tool 16 is the contrast: it starts from a human password, so it must stretch it first, and its sealed text carries a salt. Here the sealed text carries only a fresh random IV per message.) Locking and opening run locally for real, and the authentication tag means a wrong key fails outright, exactly like a tampered or truncated message — there is no password fallback and no best guess. Honestly labelled limits: this is a teaching implementation, not an audited messaging app — real messengers add ratcheting, message numbering and key erasure on top of this shape. The key itself is the whole secret: whoever it leaks to reads everything locked with it, past and future, until both sides derive a fresh one, and the locked text still leaks the message's approximate length. Tool 24 below is the standard fix for that leak. Keys exist only in this page — nothing is stored or sent. Never paste a real wallet key or a production session key into any web page, including this one — practise with throwaway keys from tools 18–19.

21 · Know it's really from them — sign it, then seal it

Tool 20's seal has a gap worth naming plainly: AES-GCM proves the key, not the person. Anyone who holds the session key can seal a message in anyone's name, and whoever opens it cannot tell — the seal checks out, the words look right, and the sender is whoever the opener assumes. This tool closes the gap the way real messengers do: the signature goes inside the seal. The sender signs the message with their tool-17 signing key first, then seals message and signature together with the session key. The opener opens the seal, then checks the signature against the sender's public key — and the two answers stay separate: a message can open perfectly and still fail the signature check, in which case the words are shown but flagged, because private is not the same as from them. Honestly labelled limits: this is a teaching implementation, not an audited messaging app. The signature proves the signing key, not a legal name, and it only means anything if the public key really is the sender's — get it from them somewhere a swap would be visible, the tool-18 lesson. Never paste a real wallet's private key into any web page, including this one — practise with throwaway keys from tools 17–19.

22 · One key per message — the ratchet

Tool 20 names the price of one key for everything: whoever it leaks to reads everything locked with it, past and future. This tool builds the fix real messengers use — a ratchet — in its simplest symmetric form: one fresh key per message, and the key moves on the moment it has been used. A chain state is one line, p4a-chain-v1:<position>:<chain key>, starting from a tool-19 session key at position 0. Each step runs HKDF (tool 19's machinery) twice over the chain key with two different labels: one output is this message's own key, sealing through tool 20's exact format, and the other is the next chain key. HKDF runs one way only, so there is no way to recompute an earlier message key from a later state — overwrite an old state and its messages are gone for good, even to someone who later gets your current state. That is forward secrecy for the past. The honest limits are the other half of the lesson: this chain protects the past only — a leaked current state opens every message after it, until both sides agree fresh keys with tools 18–19 and start a new chain; messages open strictly in order, because this simple chain keeps no skipped-message keys — tool 25 below adds that store, with numbered seals; each direction needs its own chain, started from a different tool-19 purpose or salt; and a chain stops at a labelled cap of 1,000,000 messages rather than running unbounded. A failed open advances nothing, so an early message can be retried when its turn comes. Honestly labelled: this is a teaching implementation, not an audited messaging app — real messengers add a second, asymmetric ratchet on top, which is what heals a chain after a leak — tool 23 below builds a simplified version of that healing step, done by hand. Never paste a real wallet key or a production session key into any web page, including this one — practise with throwaway keys from tools 18–19.

23 · Heal the chain — a fresh agreement restarts the ratchet

Tool 22's chain protects the past and says so plainly: a leaked current state opens every message after it, until both sides agree fresh keys. This tool is that recovery, done by hand — a simplified version of the second, asymmetric ratchet real messengers run automatically. Both holders of one direction's chain make brand-new agreement pairs with tool 18 and swap the public keys openly — public keys need no secrecy, though they still need to really be each other's (tool 18's fingerprint check). Each side mixes the fresh shared secret — which only the two new private keys can produce — with the chain key they both already hold: the secret goes into HKDF as the input, the current chain key as the salt, under its own label. The result is a new chain at position 0 that someone holding only the leaked state cannot follow them to: they have the old chain key, but without a new private key they cannot compute the fresh secret, and the healed key exists nowhere until both ingredients meet. The honest limits: healing protects only what comes after it — it does not unlock the past, reopen deleted messages, or help while a leak is still live on a compromised device; both sides must heal from exactly the same current state, or their healed chains differ and seals simply fail; and one manual heal is a teaching simplification of a step real apps do on every reply. Honestly labelled: this is a teaching implementation, not an audited messaging app. Never paste a real wallet key or a production session key into any web page, including this one — practise with throwaway keys from tools 18–19.

24 · Hide the length — pad it to one size before sealing

Every seal on this page is honest about the same leak — tools 13, 15, 16 and 20 all name it: a sealed text's length tracks the message's length, so a relay, a ledger watcher or a curious server learns roughly how much was said without reading a word. A one-word answer, a four-figure amount and a long confession seal to visibly different sizes: the length itself is the leak. The standard fix is padding, and that is what this tool does for real: the message is padded up to a fixed bucket size before it is locked — an 8-byte header (a "P4AP" marker plus the message's true byte length) goes in front of its UTF-8 bytes, fresh random bytes fill the rest, and the whole block, exactly 256, 1,024, 4,096 or 16,384 bytes, is locked with AES-GCM under a tool-19 session key, in its own p4a-paddedseal-v1 format. The padding sits inside the lock, so the authentication tag covers the filler too: changing any of it fails outright. Two messages in the same bucket produce locked lines of exactly the same length; the opener reads the true length back from the header and the filler is never shown. The honest limits: padding hides length only inside a bucket — which bucket a message landed in still shows; timing and frequency are untouched, and a watcher who sees many messages can still learn from the pattern; and real messengers pad inside a ratcheted protocol with cover traffic on top. Honestly labelled: this is a teaching implementation, not an audited messaging app. Never paste a real wallet key or a production session key into any web page, including this one — practise with throwaway keys from tools 18–19.

25 · Out of order, still private — skipped message keys

Tool 22's ratchet is honest about its limit: it opens messages strictly in order, because it keeps no store for skipped message keys. Real networks do not deliver in order — a message is delayed, retried or routed another way — and real messengers answer with a skipped-key store, the way Signal's protocol does. This tool builds it. The seal carries its position on the outside, p4a-oooseal-v1:<position>:<iv>:<cipher> — tool 20's exact AES-GCM seal under that position's ratchet key, numbered, so the receiver knows which key it needs. When the message for position 5 arrives while your chain sits at 3, the chain steps forward, the keys for 3 and 4 go into a small store (p4a-skipped-v1), and 5 opens now; when 3 and 4 finally arrive, their stored keys open them — and each stored key is erased the moment it is used, so a late message opens exactly once and a replay finds no key and a chain that has already passed it. The store is bounded on purpose: at most 32 keys kept, and one open will not step the chain more positions than the store could hold the skipped keys for — warehousing keys for messages that may never arrive is the denial-of-service shape real protocols cap for the same reason, and a refusal consumes nothing, so the message can be retried once the gap closes honestly. The honest limits: a stored key is a past message's whole secret kept alive past its turn — forward secrecy for those positions is paused, not held, until the late message arrives and the key is erased, and someone who copies the store reads exactly the messages it holds keys for; the position on the outside is metadata a watcher can see, like tool 24's bucket; and this is still the symmetric chain, so tool 23's heal remains the answer to a leak. Honestly labelled: this is a teaching implementation, not an audited messaging app. Never paste a real wallet key or a production session key into any web page, including this one — practise with throwaway keys from tools 18–19.

26 · For their key only — a sealed box anyone can close, only they can open

Every seal before this one needs something shared in advance: tool 16 a password both sides know, tools 20–25 a session key both sides derived together in tool 18's live, two-sided agreement. This tool serves the most ordinary case those leave out — sending something private to someone who is not there. They published a public key, and that is all you have. It is the sealed-box pattern behind “encrypt to their public key”: anyone who knows your public key can close a box for you, and only the matching private key opens it — no handshake and no shared password. Closing a box makes a fresh, one-message agreement pair, mixes it with the recipient's public key (tool 18), stretches the result once with HKDF — the one-message public key itself as the salt, so this box's key is bound to this box alone — and seals with tool 20's AES-GCM, in one versioned line: p4a-box-v1:<ephemeral public key>:<iv>:<cipher>. The ephemeral public key rides on the outside in plain view because it is not a secret: the recipient mixes it with their private key, lands on the same secret, re-derives the same key and opens; anyone else lands on a different secret and the seal refuses. The one-message private key is never stored, shown or sent — once the box is closed it has done its only job. The honest limits: a box proves nothing about who sent it — the recipient's public key is public, so anyone can close a box in anyone's name, and tool 21's signature inside a seal is this hub's answer when the sender matters; there is no ratchet here, so if your private key is copied later, every box ever closed to it opens — forward secrecy belongs to tools 22–25, whose keys are erased as they are used; and a public key only protects you if it really is theirs, because a swapped key closes every box to the swapper instead. Honestly labelled: this is a teaching implementation, not an audited messaging app. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tool 18.

27 · A box that names its sender — sign it, then close it in the box

Tool 26's sealed box serves the person who is not there, and names its own limit in the same breath: a box proves nothing about who sent it, because the recipient's public key is public and anyone can close a box in anyone's name. Tool 21 is this hub's answer when the sender matters — a signature inside a seal — but it needs a session key both sides derived together, which is exactly what the box case does not have. This tool puts the two together: sign it, then close it in the box. The sender signs the message with their signing key (tool 17), and the signature rides inside the box in the same signed envelope tool 21 uses — inside, so only the recipient ever sees it, and a watcher cannot even tell this box is signed. The envelope is then closed exactly like tool 26's box — a fresh, one-message agreement pair (tool 18), HKDF stretched once, AES-GCM (tool 20) — with two deliberate separations: the stretching step uses its own label, so signed and plain boxes derive unrelated keys from the same secret, and the line gets its own format, p4a-authbox-v1:<ephemeral public key>:<iv>:<cipher>, so neither box can be relabelled into the other — a relabelled line fails closed at the seal before any envelope is read. Opening keeps tool 21's honest split: opening and verifying are two separate answers, so the box can open perfectly while the name does not check out — that result is shown with its message, not hidden. The honest limits are inherited from both parents: the signature proves the signing key, not a legal name; both public keys have to really be theirs — a swapped recipient key hands every box to the swapper, and a swapped sender key makes a stranger's signature verify under the wrong name; there is still no ratchet, so if the recipient's private key is copied later, every signed box ever closed to it opens, signatures and all; and a copied box line opens again — nothing inside proves when it was signed or that it was sent only once, so freshness is the application's job, not the box's. Honestly labelled: this is a teaching implementation, not an audited messaging app. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18.

28 · Is that really their key? — the safety number

Every tool from 17 on ends on the same warning: a signature, a sealed box, an agreement — all of them prove the key, and the key only helps if the public key you hold is really theirs. The swap that defeats the whole suite happens before any message: a directory, a profile page or a person in the middle hands you a different public key, and from then on every check passes — against the swapper's key. This tool is the check that runs before trust: a safety number for a pair of public keys. Both keys are sorted and hashed together under a domain label, so both people compute exactly the same number from the same two published keys, in either order, without meeting and without any secret. The number is built from public keys alone, so it is safe to read aloud, print or post, and revealing it reveals nothing about any private key. Twelve groups of five digits — long enough that a swapper cannot realistically find a key that lands on the same number, short enough to compare over a phone call. One rule matters more than the maths: compare it over a channel you already trust — a voice you recognise, in person — because a number delivered over the same channel that delivered the key proves nothing; the swapper swaps both. If even one group differs, stop: one of the keys is not the key its owner published, and no message should be sent until the keys are re-checked on a trusted channel. The honest limits: the number proves the keys, not a legal name — it binds a key to whoever read the number to you, and to nothing else; it must be re-compared whenever a key changes, because a new key is a new number; this page's digit format is its own teaching format (the first 60 hex characters of a SHA-256 digest, five hex characters to a five-digit group), not any messenger's published safety-number format; and a 60-digit number is a truncated hash, so collision resistance here is a practical teaching property, not a proof. Honestly labelled: this is a teaching implementation, not an audited identity system. This tool takes public keys only — never paste a real wallet key or any private key into any web page, including this one; practise with throwaway keys from tools 17 and 18.

29 · A fresh destination for every payment — one-time destinations

Every tool before this one protects the content of a message or the fact behind a proof. This one protects the address itself. Publish one address and reuse it for every payment, and anyone watching the ledger can total what you received, see when, and link every payer who ever used it — no decryption needed, because the link is the address. The stealth pattern answers with a fresh destination for every payment. The sender makes a one-payment agreement pair (tool 18), mixes its private half with the recipient's published public key, and hashes the shared secret under this tool's own label: that digest is the destination — a fresh identifier nobody can connect to the published key from the outside. The one-payment public key travels with the payment in plain view, because it is not a secret: the recipient scans with it, mixing their private key with it to land on the same secret, the same hash, the same destination — and a match means “this one is mine”. Two payments to the same person produce two unrelated destinations, because each rides on a fresh pair; the one-payment private key is never stored, shown or sent. The honest limits: this is a teaching model of the recognition half of stealth addressing — real schemes derive a one-time public key on the curve, so the recipient also derives the matching one-time private key that spends; here the destination is an identifier computed from the shared secret, it is not an address on any chain, and nothing here moves or holds funds. Tool 30 below builds the spend half this one leaves out — the one-time public key derived on the curve itself, and the matching one-time private key. The sender necessarily knows the destination they made — unlinkability here is against outside watchers, not against the payer. Scanning needs the one-payment key that travelled with the payment: lose it and that destination can no longer be recognised. And a fresh destination hides who was paid, not that a payment happened — amounts, timing and network-level metadata still leak (tool 9's lesson). Honestly labelled: this is a teaching implementation, not an audited wallet. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tool 18.

30 · The key that can spend it — one-time spend keys

Tool 29 ends on a gap it names itself: it models the recognition half of stealth addressing, where the recipient can spot a payment as theirs, but real schemes — Monero-style, EIP-5564-style — also derive a one-time public key on the curve, so the recipient also derives the matching one-time private key that spends. This tool builds that spend half, with real P-256 curve arithmetic computed locally — plain integer maths on the curve's published parameters, no library and nothing sent anywhere. The shared secret (tool 18) is hashed once under this tool's own label, privacy4all-spendkey-v1; that digest, read as a number under the curve order, is the tweak. The sender adds tweak×G to the recipient's published point — that sum is the one-time public key. The recipient adds the same tweak to their private number instead, and the curve's own arithmetic does the rest: (r + t)×G is r×G + t×G, the same point, so the tweaked private key matches the one-time public key exactly — and nobody else can derive either side, because the tweak needs the secret and the secret needs a private key. The keys stay in this hub's formats throughout: the one-time public key is a 91-byte key exactly like tool 18's, and the one-time private key is a 138-byte key rebuilt around the tweaked number, so the other tools here can read it like any practise key. The honest limits: the key is still not an address on any chain and nothing here moves or holds funds — this is the derivation half of the pattern, shown on the P-256 curve this hub's practise keys use (real stealth schemes run on their own curves and encodings, and their exact tweak hashes differ); whoever holds the recipient's ordinary private key plus the one-payment public key can derive the spend key — that is the design — so a copied private key endangers every payment ever sent to it, exactly as tool 29 warned for recognition; and the curve code is written to be read and checked line by line, not for speed or side-channel resistance — production wallets use audited, constant-time libraries. Tool 31 below answers the other flaw this tool shares with tool 29 — the key that scans being the key that spends — by splitting the published pair in two: a view key that can watch, and a spend key that can spend. Honestly labelled: this is a teaching implementation, not an audited wallet. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tool 18.

31 · Eyes without hands — a view key that can watch but never spend

Tools 29 and 30 share one honest flaw, and both name it: the key that scans for payments is the key that spends them. Recognising a payment takes the recipient's private key, and claiming its spend key takes that same key — so a bookkeeper, an auditor, a watch-only wallet on a phone, or a family member who should be able to see what arrived can only be helped by handing over the power to take it. Real stealth schemes — Monero-style — split the job in two, and this tool builds the split: publish a view key pair and a spend key pair side by side (two tool 18 pairs). Senders mix with the view public key, so whoever holds the view private key — and only them — can re-derive every payment's secret, land on its destination under this tool's own label privacy4all-viewscan-v1, and name its one-time public key, because the spend public key is public. Watching is complete. Spending is not: the tweak (this tool's second label, privacy4all-viewspend-v1) is added to the spend private number, and the view holder does not have that number — adding the tweak to the view number instead derives a well-formed key that matches nothing. Claiming a spend key therefore takes both private keys: the view key finds the tweak, the spend key uses it. The split cuts both ways: the spend private key alone cannot even scan in this construction, so losing the view key means losing sight of payments until it is recovered; and the view key is still a secret worth guarding, because its holder sees every payment this published pair ever receives — past and future — until the keys rotate: a view key is eyes without hands, not eyes that see nothing. The honest limits: the destination and the keys are still not an address on any chain and nothing here moves or holds funds — this is the derivation pattern on the P-256 curve this hub's practise keys use, and real schemes differ in curves, encodings and hash choices. Honestly labelled: this is a teaching implementation, not an audited wallet. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tool 18.

32 · Prove you know the key — a zero-knowledge proof of knowledge

Tool 5 above simulates the zero-knowledge pattern and says so in so many words — a teaching simulation, not a cryptographic proof. This tool runs a real one: the Schnorr identification protocol, the classic proof of knowledge that modern zero-knowledge systems grow from, computed locally on the same P-256 curve as tools 17, 18 and 30. Say you need to convince someone you hold the private key behind a published public key — without revealing the key, and without signing anything (tool 17's signatures bind a message and can be shown around forever; a proof answers one fresh question, once). It takes three moves, and the order is the security. First, the commitment must be fixed before the challenge is chosen: you pick a fresh secret nonce, publish only its public half as the commitment, and keep the nonce in a prover-only state line. Second, the verifier — only now — draws a fresh, unpredictable challenge number; a challenge of zero is refused, because with zero the answer is just the nonce and proves nothing about the key. Third, you answer with a single number blended from the nonce, the challenge and your private key, and the verifier checks one curve equation against your public key: it balances only if the answer was genuinely built from the private number, yet the answer itself reveals neither secret — one equation, two unknowns. The two ways it breaks are plain: a prover who sees the challenge first can work backwards and fake the whole proof for a key they do not hold, which is why the commitment coming first is the proof and not ceremony; and answering two challenges with the same commitment leaks the private key itself — two answers differ by a multiple of it that anyone can divide out — so one state answers exactly one challenge and is then thrown away. A completed proof is not a signature: it signs no message and authorises nothing, and it proves knowledge of the private key, not a legal name — the key could be anyone's, borrowed or stolen; what is proved is that the answerer holds it, against this challenge, now — an old answer replayed against a new challenge simply fails. The honest limits: this one page plays both sides, so it demonstrates the maths, not a live exchange — across a real exchange the ordering is enforced by who speaks when; this is the identification protocol in the open, not one of Midnight's Compact circuit proofs, which hide whole computations rather than one key; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 33 below takes the verifier out of the room: the challenge is hashed from the message and the commitment together, and this same proof becomes a signature anyone can check.

33 · A proof that signs itself — a Schnorr signature

Tool 32 above runs a real proof of knowledge, and names its own limit in so many words: a completed proof is not a signature — it needs a verifier in the room, drawing a fresh challenge by hand, and it convinces that one verifier, once. This tool takes the verifier out of the room, with the trick that turns the identification protocol into a signature scheme — the Fiat–Shamir transform. The challenge is no longer drawn by anyone: it is hashed, with SHA-256 under this tool's own label, from the commitment and the message together. The commitment still comes first — it is an input to the hash, so the challenge cannot exist before the commitment is fixed, and the backwards forgery tool 32 demonstrates stays impossible — but the signer can now compute the challenge alone, answer it with exactly tool 32's arithmetic, and publish the commitment and the answer as one signature line. Anyone, anywhere, at any later time, rehashes the challenge from the message and checks the same equation against the public key: it balances only if the line was built from the private key behind that key, over exactly that message — change one character and it fails. What is gained is what tool 32 gives up, and what is lost is what tool 32 keeps. A signature binds a message and can be shown around forever, which is the point — and the cost: it proves the key signed that message, to anyone, and says nothing about the holder being present now; tool 32's freshness is deliberately traded for transferability. The nonce rule does not soften in the trade: one nonce behind two signatures leaks the private key itself, because the two answers differ by a multiple of it that anyone can divide out — so this tool draws a fresh nonce for every signature, and signing the same message twice produces two different lines that both check out. The honest limits: this is a real Schnorr signature, computed and checked locally, but it is not the signature format any chain or wallet checks — tool 17's ECDSA remains the signature a P-256 wallet would produce, and real Schnorr deployments such as Bitcoin's BIP-340 use their own curves, encodings and hash constructions; like tool 32 this is the identification protocol's maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 34 below turns the same arithmetic to a different question: not “was it this key?” but “was it one of these keys — proved, without saying which?”

34 · One of us signed it — a ring signature

Tools 17 and 33 prove a statement came from one named key — and naming the signer is sometimes exactly what you do not want. Say a statement should carry weight because it came from inside a group — a maintainer, an auditor, an employee — while the person who actually signed stays unnameable. This tool runs the construction built for that: a ring signature, in the classic Abe–Ohkubo–Suzuki form, computed locally on the same P-256 curve as tools 17, 18 and 30. The signer chooses a ring of public keys — their own among them, the rest borrowed from anyone whose key is published — and signs once, for the whole ring. The machinery is a chain of tool 33's hashed challenges closed into a loop: each member contributes one link built from an answer and that member's key, each link's challenge is hashed from the link before it, and the loop must come back to its own seed. The signer alone can close it, because they invent the other members' answers forwards from random numbers — no private key needed for a link you build in that direction — walk the chain around the ring, and answer the one challenge the chain finally hands their own position, with the only private key used anywhere in the signature. A verifier walks the same chain and learns the loop closed: exactly one of these keys signed this message — and it never says which one. Not “cannot easily tell”: the signer's answer is algebraically indistinguishable from the invented ones around it, so every member is an equally good suspect from the signature alone, and no amount of later computing changes that. The limits are stated as plainly as the promise. The ring is the whole anonymity set, so size is safety: with two keys the ambiguity is a coin flip, and this page caps the ring at six keys, a practicality limit rather than a strength claim. Nobody in the ring had to agree to be in it — the signer assembles the ring from published keys alone, and the other members need not know, consent, or have any connection to the statement — so a ring signature is not a group endorsement, and borrowing a well-known key into a ring lends a statement none of that key's authority; it proves one of the listed keys signed, full stop. This teaching version carries no key image, so two signatures from the same signer cannot be linked by the signatures alone — a deliberate omission, named here because real deployments choose the other way on purpose: Monero, the best-known ring signature system, adds a key image precisely so one member cannot spend the same note twice undetected. And the honest frame around all of it: this is a real ring signature computed and checked locally, but it is not the signature format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 35 below makes exactly the trade this tool declines: it adds the key image, so the same signer acting twice can be caught — without ever being named.

35 · Signed twice? It shows — a linkable ring signature

Tool 34 above ends on a deliberate omission, named in its own text: it carries no key image, so two of its signatures by the same signer cannot be linked by the signatures alone — and real deployments choose the other way on purpose, because some statements must be made exactly once. A note that can be spent, a vote that can be cast, an attestation that can be claimed: if the same key can sign twice in perfect deniability, double-spending and double-voting are undetectable. This tool makes the other choice, in the LSAG form of tool 34's ring, computed locally on the same P-256 curve. Every signature now carries a key image: a second curve point bound to the signer's key alone, built as the private key times a hash of the signer's public key onto the curve. That hash-to-point is built by try-and-increment — hash the key under this tool's own label with a counter, read the digest as an x coordinate, keep the first x that lands on the curve — so the point it lands on has no known discrete log, and that is load-bearing: nobody can compute a member's key image from their public key alone, run down the ring matching images to names, and unmask the signer. The chain doubles to carry it: each member's link is now a pair of points, the second walking the hash points and the image exactly as the first walks the generators and the keys, and each challenge hashes both points with the message. The signer closes the loop the way tool 34 does — invent the other answers forwards, answer the final challenge with the one private key in play — and the loop closes on both points at once only because the image really is that key's image. What a verifier gains is narrow and exact: the signature is genuine, one of the ring signed — and the image can be compared. Two lines carrying the same image came from the same key, in whatever rings, over whatever messages. What that costs is stated as plainly as what it buys. Linkability is privacy given up on purpose: in this teaching version the image is tied to the member key itself, so the same signer is linkable across every ring and every message they ever sign here — Monero, the best-known user of this construction, ties its image to a one-time key per note, so only spending the same note twice links, a narrower exposure than this page's. And linked is not identified: a matched image proves one key acted twice and still never says which member it was — the anonymity inside each single signature survives intact; what dies is the claim that two signatures were strangers. The honest frame around all of it: this is a real linkable ring signature computed and checked locally, but it is not the signature format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 36 below turns the whole question around: tools 33 to 35 vary who the signature names, but every signer in them sees the message — the next tool's signer never does.

36 · Signed without seeing — a blind signature

Every signer in tools 17 and 33 to 35 sees what they sign — the message sits inside the hash. Some signatures only work if the signer never does. A token, a voucher, an anonymous credential is worth having precisely because the authority who issued it cannot recognise it when it comes back: if they could, the day it was issued and the day it is spent would link, and the holder's privacy would be gone. David Chaum's answer is the blind signature, run here in its Schnorr form, locally on the same P-256 curve as tools 17, 18 and 30, as a four-move exchange that mirrors tool 32 with the requester standing between the signer and the message. Move 1 is the signer's, and needs no key at all: a fresh nonce and its commitment, exactly tool 32's first move, the nonce kept in a signer-only state line. Move 2 is the requester's alone: two secret blinding factors shift the commitment to a final commitment the signer never sees, the real challenge is hashed out of that shifted commitment and the message with tool 33's own challenge, and the signer is sent only the blinded challenge — one number, carrying no trace of the message, the final commitment, or the real challenge. Move 3 is tool 32's answer unchanged, the one place a private key is used: the signer answers a challenge they cannot read. Move 4 is the requester's finish: the answer is lifted by the first blinding factor and published as an ordinary p4a-schnorr-v1 line — checkable in tool 33's verify form above, against the signer's key and the exact message, where it balances. The signer did sign that message; the algebra says so. They simply never saw it, and the line carries neither blinding factor, so nothing in it points back to the signing session that produced it. The dangers are stated as plainly as the promise, because blindness cuts both ways. The signer is endorsing sight unseen: a blind-signing key must only ever sign for a service whose blinded challenges are worth honouring whoever presents them — tokens, vouchers, ballots — never for statements, because a blinded challenge can hide any message at all, including one the signer would refuse in the open. The nonce rule sharpens rather than softens: one nonce behind two blinded answers leaks the private scalar exactly as in tools 32 and 33, and a signer answering many sessions in parallel faces the ROS attack on blind Schnorr — real deployments answer one session at a time, bind each commitment to a single session, or use constructions built to resist it; this page does none of that coordination for you, and says so. And the requester's side has its own secret to keep: leak the two blinding factors beside the published line and anyone can walk back to the session's blinded challenge — the unlinkability is only as good as their secrecy, which is why the request state line is never published. The honest frame around all of it: this is a real blind signature computed and checked locally, but it is not the signature format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 37 below turns from who the signer is to how many of them it takes: a key split so that no one holder can sign at all, and a quorum together sign as one.

37 · It takes a quorum — a threshold signature

Every signature on this page so far has had exactly one key behind it: one holder, one point of failure, one person who can be coerced, robbed or simply asleep when the group needs to act. Groups that hold something together — a treasury, a release key, a community fund — want the opposite shape: no single key can sign, and no single loss can silence the group. The threshold signature is that shape, run here locally on the same P-256 curve as tools 17, 18 and 30. At setup, a dealer splits one group private key with tool 15's Shamir idea moved into the curve's own scalar field: the polynomial f(t) = x + a₁t — plus an a₂t² term for a quorum of three — where x is the group scalar and the other coefficients are fresh random numbers; holder i is handed the single number f(i) in a secret share line, and the group public key published to the world is the perfectly ordinary Y = x×G, which shows no trace that a split ever happened. Signing is tools 32 and 33 run by a committee. Each participating holder first commits to a fresh nonce exactly as in tool 32, keeping it in a secret signer state line that also carries their holder index. The published commitments are gathered into one set — one line per holder — and summed into a single aggregate commitment. The challenge is tool 33's own hash of that aggregate and the message. Each holder then answers with their share weighted by their Lagrange coefficient for exactly this participating set, s_j = k_j + e·λ_j·f(j): the weighting is the mechanism, because the weighted shares of any quorum sum to exactly x — Lagrange interpolation evaluated at zero — without x ever being reconstructed anywhere, while the weighted shares of fewer than the quorum sum to a different number entirely, and the signature simply fails. Add the partial answers and the result is one ordinary p4a-schnorr-v1 line, checkable in tool 33's verify form above, against the group public key and the exact message, where it balances — signed by a quorum, under one key, with nothing in the line saying who the holders were or how many it took. The honest limits are structural. A dealer runs this split, and the dealer sees the whole group key at setup: this is a trusted-dealer teaching construction, where real threshold protocols such as FROST generate the key jointly — distributed key generation, so the whole key never exists in one place — and add nonce commitments and binding factors against the concurrent-session attacks a page like this does no coordination against. One nonce behind two partial answers leaks the holder's share exactly as in tools 32 and 33 — the Lagrange weight is public arithmetic, so the weighting is no shield — one commitment, one answer, ever. A share line is a secret of the same rank as a private key, and any quorum of them, pooled off-page, is the group. This is a real threshold signature computed and checked locally, but it is not the signature format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 38 below removes the dealer altogether: every holder deals a contribution, and the group key never exists whole anywhere.

38 · No dealer ever saw it — distributed key generation

Tool 37 above ends on a named flaw: a dealer splits the group key, and the dealer sees the whole key at setup — one person who could keep a copy, be coerced, or simply be the wrong person to trust with everything. This is the fix the tool names, run locally on the same P-256 curve: distributed key generation, in Pedersen's scheme with Feldman's verifiable sharing as the check. There is no group key to split, because there is no group key yet. Every holder deals a split of their own contribution instead. Holder j draws a fresh random scalar xj and fresh polynomial coefficients exactly as in tool 37, broadcasts one commitment line (p4a-dkgcommit-v1) carrying the Feldman commitments Cjk = ajk×G — the constant commitment is xj's own public point — and sends each holder i one private share line (p4a-dkgshare-v1) carrying fj(i), dealt by tool 37's own polynomial arithmetic. A commitment reveals nothing about the scalar behind it; what it does is bind the dealer, because any recipient can check the share they were dealt against the broadcast commitments — share × G must equal the commitments weighted by the recipient's powers, Σk ik·Cjk — and a share that fails is a dealer who dealt a different polynomial than the one they committed to. Finalizing is addition and nothing else: holder i sums the shares addressed to them, one from every dealer including themselves, and that sum is a point on the summed polynomial whose constant term is the sum of every contribution — the group scalar, which is never computed by anyone, anywhere in this code. Only its public key exists, as the sum of the dealers' constant commitments. The finalized line is an ordinary tool 37 share line, so a key generated here — with no dealer, and no moment where the whole key existed — signs in tool 37 unchanged. The honest limits are structural. This page plays every holder on one device, so the whole round is visible in one place; in real use each holder runs their own device, only commitment lines are broadcast, and share lines travel over private channels — a share line here is a secret of exactly the same rank as in tool 37. There is no complaint or dispute round: real protocols add one, where a dealer whose share fails the Feldman check is disqualified by the group and the round restarts without them — here the check and the finalize step simply refuse, and restarting is the group's own business off-page. This simplified round also makes no claim to FROST's full security proofs: a dealer who waits to see the others' commitments before choosing their own can bias the group key's distribution in ways shown for Pedersen's original scheme, which is why production protocols add rounds this teaching page does not. This is a real distributed key generation computed and checked locally, but it is not the key format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation, not an audited wallet and not side-channel resistant. It needs no existing key at all — every contribution is drawn fresh on this page — and there is still nothing here worth pasting a real key into. Tool 39 below turns from who holds the key to when a signature completes: it stays unfinished until a secret is revealed — and finishing it is what reveals the secret.

39 · A signature that waits for a secret — adaptor signatures

Every signature on this page is finished the moment it is made: tool 33's line either verifies or it does not, and nothing that happens afterwards can change that. Some agreements need the opposite shape — a signature that is complete except for one missing number, so that revealing that number finishes the signature, and finishing the signature reveals the number. That is an adaptor signature, run here locally on tool 33's own Schnorr scheme. The missing number is an ordinary secret scalar t, the adaptor secret; what the world sees of it is only its point T = t×G, the adaptor point, which reveals nothing about t. The signer makes a pre-signature: draw a nonce, commit to it as usual at R, then shift the commitment by the adaptor point, R̂ = R + T, and draw tool 33's challenge over the shifted commitment and the message. The answer s′ is tool 32's arithmetic unchanged — but it answers for R, while the challenge was drawn over R̂, so the line (p4a-adaptor-v1) is not a signature: tool 33's verifier checks it and says no, because it sits exactly one adaptor point short of balancing. Anyone holding T can still check the pre-signature is genuine — s′×G must equal (R̂ − T) + e×Y — so both sides can confirm, before anything is revealed, that exactly one number is missing and it is the number whose point is T. Adapting is adding that number: s = s′ + t, and the result is one ordinary p4a-schnorr-v1 line that tool 33's verifier accepts. Extraction is the same addition read backwards: anyone holding both lines computes t = s − s′ and recovers the adaptor secret itself — that symmetry is the mechanism, not a side effect. Take a stranger's pre-signature locked to a secret's point, and the moment either side publishes an adapted signature the other side can extract the secret and adapt their own — which is why real systems build atomic swaps and payment locks out of exactly this shape: two signatures on two chains, one secret, both complete or neither does. The honest limits are plain. The pre-signature is worthless until adapted — it verifies as nothing and spends nothing; it proves only that its maker knew the signing key and aimed it at this adaptor point. The adaptor point has to really be the point of the secret the agreement is about: a swapped point locks the signature to a stranger's secret, and adapting with any other number produces a line tool 33's verifier rejects — check the point the way tool 28 checks a key, over a channel you already trust. Publication is the reveal: an adapted signature shown to anyone who holds the pre-signature hands them the secret, so there is no adapting privately to one verifier — adapt for one holder of the pre-signature and you have adapted for all of them. And the nonce discipline of tools 32 and 33 is inherited whole: one nonce behind two pre-signatures leaks the signing key the same way. This is a real adaptor signature computed and checked locally, but it is not the signature format any chain or wallet checks; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 40 below turns from when a signature completes to how many keys stand behind one: everyone signs, and the world sees a single ordinary key and a single ordinary signature.

40 · Many keys, one signature — aggregate signatures

Tools 37 and 38 split one key across a quorum, so any t of n holders can sign. Some agreements want the opposite shape: every signer keeps their own ordinary key, every signer must sign, and what the world sees is one ordinary-looking public key and one ordinary signature — the MuSig idea, run here locally on tool 33's own Schnorr scheme. The aggregate key is not the plain sum of the signers' keys, because that sum falls to the rogue-key attack: the last signer to join picks their "key" as a target point minus everyone else's keys, the plain sum lands exactly on the target, and the group key is secretly a key they alone control. So each key is first weighted by a coefficient hashed from the whole list and that key together — ai = SHA-256 under privacy4all-musig-keyagg-v1 of the full list and Yi, reduced under the curve order — and the aggregate key is the weighted sum Ỹ = Σ ai×Yi. A coefficient is a commitment to the final list: change any key and every coefficient changes, so a crafted key is weighted by a number its maker could not predict when they crafted it, and the cancellation stops working. Signing mirrors tool 37's committee with the weights where the Lagrange coefficients sat: each signer commits a fresh nonce for their position in the list (state p4a-musigsigner-v1), the commitments gather into one set whose points sum to a single aggregate commitment, the challenge is tool 33's own over that aggregate and the message, each partial answer is tool 32's arithmetic over the signer's weighted scalar ai·xi, and the partials sum into one ordinary p4a-schnorr-v1 line that tool 33's verifier — nothing in this tool — judges against the aggregate key. The honest limits are plain. Everyone must sign: that is the point of this shape and also its cost — one missing signer is not a weaker signature, it is no signature, and a partial sum offered as the whole thing fails tool 33's check where tool 37's quorum would have carried on without the absentee. The key list's order is part of the agreement: the same keys in a different order are a different list, different coefficients, a different aggregate key — agree the list the way tool 28 checks a key, over a channel you already trust, and check the aggregate key against the list yourself before anything is signed under it. This page plays every signer on one device with nonce commitments exchanged as text; production MuSig (MuSig2, standardised for Bitcoin in BIP-327) adds nonce-commitment rounds and partial-signature checks this teaching page omits, and the nonce discipline of tools 32 and 33 is inherited whole: one nonce behind two answers leaks the signer's weighted scalar, and the coefficient does not save them. This is a real aggregate signature computed and checked locally, but it is not the signature format any chain or wallet checks — published MuSig works over secp256k1 with its own encodings, and this page stays on the hub's P-256 teaching curve; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited wallet and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — practise with throwaway keys from tools 17 and 18. Tool 41 below turns from making signatures to checking them in bulk: many separate signatures, many keys, one weighted equation that passes only if they all do.

41 · Check them all at once — batch verification

Every verifier on this page checks one signature at a time: tool 33 recomputes one challenge and balances one equation, s×G = R + e×Y. A verifier holding a pile of signatures — a bundle of signed statements, each under its own key and its own message — does that curve work once per line. Batch verification checks the whole pile with one equation instead: each entry keeps its own challenge, drawn by tool 33's hash from its own commitment and message, and the batch asks whether the weighted sum balances: (Σ ai·si)×G = Σ ai×Ri + Σ (ai·ei)×Yi. If every signature is honest, every individual equation holds, so the sum holds too — that direction is just addition. The converse is where the weights earn their place. With plain weights (every ai = 1) the converse fails in a way anyone can build: nudge one response up by any amount and another down by the same amount, and the two errors cancel in the sum — the batch passes over two signatures that are each, on their own, false. So each weight here is hashed, under privacy4all-batch-v1, from the whole batch — every canonical key, signature line and message, in pile order — and the entry's position: a weight is a commitment to the final pile, fixed only once every entry is fixed, so a forger crafting a cancelling pair cannot know the weights their errors will be multiplied by, and differently weighted errors do not cancel except with probability about 2−256. The verdict keeps the split this page always keeps, sharpened by what a batch can and cannot say. True means the weighted equation balances: every entry checks out, up to that negligible forgery probability. False means at least one entry is wrong — and the batch verdict alone does not say which one, which is the honest price of one equation; the second form below pays it back, falling back to tool 33's check per entry to name the failing positions. Neither verdict is null's business: a malformed key, line or message anywhere in the pile makes the whole pile unjudgeable, because “one entry was garbled” and “one entry was forged” must never blur into one answer. Write each entry as a public key line, a signature line, then the message — as many lines as it needs — with a blank line between entries, two to six entries per pile; the same key may sign in several entries, because a batch is a pile of statements, not a list of people. The honest limits are plain. A batch verdict is a statement about the pile exactly as pasted: reorder the entries and the weights change — an honest pile still verifies, because every honest equation holds under any weights, but a transcript agreed with anyone else must be pasted in the agreed order. Batching saves the verifier work; it does not make any signature stronger, fresher or more transferable than tool 33 already said it was, and a true batch says nothing tool 33 checking each line would not say — it says it in one equation instead of six. This is real batch verification computed and checked locally, but over this hub's own p4a-schnorr-v1 teaching lines, not the signature format any chain or wallet checks; production batch verifiers (Bitcoin's BIP-340 among them) draw their weights from a verifier-side random source rather than a transcript hash and work over secp256k1 with their own encodings; it is the maths in the open, not one of Midnight's Compact circuit proofs; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited verifier and not side-channel resistant. This tool takes public keys and published signatures only — never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway keys from tools 17 and 18. Tool 42 below leaves signatures for amounts: a commitment that hides a value completely, yet still lets the arithmetic on hidden values be checked.

42 · Hide the amount, keep the maths — Pedersen commitments

Tool 8's hash commitment can prove a value was not changed, but it can do no arithmetic: a hash of 750 and a hash of 250 cannot be combined into anything checkable against 1000. A shielded ledger needs exactly that combination — amounts hidden from everyone watching, while the ledger still proves inputs and outputs balance and no value was created from nothing. A Pedersen commitment is the curve version of the promise, and it is homomorphic: C(v, r) = r×G + v×H. G is this page's usual base point; H is a second point no one chose, built by hashing under privacy4all-pedersen-h-v1 into the curve — try-and-increment until the digest is an on-curve x, even root taken, the same construction tool 35 hashes key images with. Nobody knows the discrete logarithm between G and H, and that unknown is load-bearing: anyone who knew the number t with H = t×G could re-open any commitment as any value, by shifting the value and correcting the blinding to match. The hiding half is the blinding r, a fresh random scalar per commitment: the same value committed twice lands on two unrelated points, and a watcher who guesses the value cannot test the guess without r — tool 8's salt lesson in curve form, with the same rule that a zero blinding is refused, because with r = 0 the commitment is just v×H and guesses can be checked one by one. The homomorphism is plain addition: commitments add point-by-point, values add as numbers, blindings add under the order, so C(v1, r1) + C(v2, r2) = C(v1 + v2, (r1 + r2) mod n) — the third form below checks exactly that, never needing either amount in the clear beyond the openings you hand it. Values here are whole numbers from 0 to 1,000,000,000,000: a teaching range wide enough for amounts in a currency's smallest unit, narrow enough that a sum of two can never wrap the curve order and quietly mean a different total. The honest limits are plain. A commitment hides a value; it does not prove the value is in any range, and a balance check judges totals only — it proves the sum balances, not which opening belongs to which commitment; that attribution is the opening check's job. A commitment to a negative or absurd amount is perfectly well-formed curve arithmetic, and real confidential systems pair commitments with range proofs for exactly that reason. The blinding is a private number of the same rank as a private key: whoever holds a commitment's opening can reveal its value to anyone, so openings are shared deliberately, the way tool 37 says share lines are shared. This is a real Pedersen commitment computed and checked locally, but the commitment line here is this hub's own 91-byte point spelling, not a format any chain or wallet checks; it is not one of Midnight's Compact circuit proofs — in a live shielded system the openings themselves are replaced by proofs, and producing those is the circuit's work, not a web page's; and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one — this tool needs no keys at all, only values you invent for practise. Tool 43 below answers the range limit named above: a proof that a hidden value lies between 0 and 255, made bit by bit, that reveals neither the value nor its blinding.

43 · In range, and I can prove it — range proofs

Tool 42 ends on a limit it names plainly: a Pedersen commitment hides a value, but it does not prove the value is in any range — a commitment built by perfectly good curve arithmetic for a negative amount, or for a million where the rule is a maximum of 255, is perfectly well-formed, and a shielded ledger that accepted commitments without a range proof would let value appear out of the wrap-around. Real confidential systems pair every commitment with a range proof for exactly that reason; this tool is the textbook construction they optimise, proving that the value inside a tool-42 commitment is a whole number from 0 to 255 while revealing neither the value nor its blinding. The value is written in binary and every bit gets its own Pedersen commitment, Di = si×G + bi×H, under tool 42's same hashed-in generator H; the bit blindings are chosen so the weighted sum lands exactly on the commitment being proved — the first seven drawn fresh, the last solved from (r − Σ 2i·si) × (128−1 mod n) — so a verifier who adds the bit commitments with their powers of two must arrive at the pasted commitment itself, which pins the bits to this commitment and no other. Each bit is then proved to be a bit — 0 or 1, nothing between — with an OR proof: of the two statements a bit commitment can make (Di is si×G, or Di − H is si×G), exactly one's discrete logarithm is known to the prover, because the other runs through H and nobody knows H's logarithm. The known branch is answered the way tool 32 answers a challenge; the other is simulated backwards from a self-chosen challenge and response — tool 5's backwards move, except here the simulation is half of an honest proof rather than a fake one. One Fiat–Shamir challenge binds all of it: a hash under privacy4all-rangeproof-v1 over the commitment, the eight bit commitments and all sixteen branch commitments, and each bit's two branch challenges must sum to that same hash — which is what stops a prover pre-building both branches freely. The checker needs no secret at all: it re-adds the weighted bit commitments, rebuilds every branch commitment from its challenge and response, re-hashes, and compares the sums. The honest limits are plain. Eight bits is a teaching range, picked so the whole proof fits on one page and every step can be followed; production range proofs (Bulletproofs, and the proofs a Compact circuit produces) cover 64-bit amounts in logarithmic space instead of one OR proof per bit. This is a real range proof computed and checked locally, but the line here is this hub's own p4a-rangeproof-v1 spelling over P-256 teaching arithmetic — not the proof format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited library and not side-channel resistant. A true verdict reveals nothing beyond the range itself — not the value, not the blinding, not even which branch was real for any bit — but the opening the proof is made from stays a private number of the same rank as a private key, shared the way tool 42 says openings are shared. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway commitments from tool 42. Tool 44 below turns from one commitment to two: not what a single commitment hides, but whether two of them hide the same value.

44 · Same value, twice hidden — equality proofs

Tools 42 and 43 ask questions about one commitment; a shielded ledger asks a two-commitment question just as often: the commitment published when a note was created and the commitment in today's transfer — do they hide the same amount? If they do, value moved from one hiding place to another unchanged; if they do not, value was created or destroyed between the two points. This tool proves the equality without opening either commitment. The arithmetic is one subtraction: two commitments to the same value under different blindings, C1 = r1×G + v×H and C2 = r2×G + v×H, differ only in their blinding terms, so C1 − C2 = (r1 − r2)×G — a plain multiple of the base point, whose multiple the prover knows and a verifier can aim a proof at: the difference point D is computed from the two pasted commitments alone, and the proof is tool 32's Schnorr proof of knowledge aimed at D — a fresh nonce commitment R, one Fiat–Shamir challenge hashed under privacy4all-eqproof-v1 over the two commitments in order and R, and the response s = k + c·d, checked as s×G = R + c×D. If the values had differed by any amount δ, the difference point would carry a δ×H term, and answering the challenge would mean knowing the discrete logarithm of an H-carrying point under G — the very logarithm tool 42's generator is built so nobody knows; that unknown is the soundness. The witness deserves stating plainly: it is the blinding difference and nothing else — the value never enters the response, anyone holding both blindings can make this proof, and the proof names neither the value nor either blinding. The pair is bound in order, too: the swapped pair is a different statement whose witness is −d, so a proof does not transplant from one ordering to the other. The honest limits are plain. Identical commitments are refused by both forms: their difference is the identity, which has no point spelling here — and there is nothing to prove, since two identical commitments are visibly equal already. The nonce discipline is inherited whole from tool 32: one nonce behind two responses hands back the witness — here the blinding difference — and whoever learns it while holding one blinding holds the other, so the difference is a secret of the same rank. This is a real equality proof computed and checked locally, but the line here is this hub's own p4a-eqproof-v1 spelling over P-256 teaching arithmetic — not the proof format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway commitments from tool 42. Tool 45 below returns to one commitment and asks a set question about it: not its range and not another commitment, but whether its value is one entry on a public list.

45 · One of these, I won't say which — set-membership proofs

Tools 43 and 44 each answer one shape of question about a hidden value — is it in a range, does it match another hidden value — and selective disclosure asks a third shape just as often: is the hidden value one of a small public list? A credential whose tier is one of three published tiers, an age bracket one of the brackets a venue accepts, a jurisdiction on an allowed list: the verifier publishes the list, the prover's value is on it, and which entry it is stays hidden. This tool proves that membership over a tool-42 Pedersen commitment, and nothing more. The arithmetic starts from the commitment itself, C = r×G + v×H. For each candidate value vi on the list, anyone can compute the shifted point Di = C − vi×H = r×G + (v − vi)×H. For the one candidate that equals the hidden value the H term vanishes and Di is a plain multiple of the base point — r×G — whose multiple the prover knows, because the witness is their own blinding; for every other candidate the H term survives, and its logarithm under G is the number tool 42's generator is built so nobody knows. Membership is therefore an OR proof, in the same Cramer–Damgård–Schoenmakers shape tool 43 runs once per bit, here run once per candidate: the true branch is answered the way tool 32 answers a challenge, from a fresh nonce, and every other branch is simulated backwards from a self-chosen challenge and response. One Fiat–Shamir challenge binds the whole proof — hashed under privacy4all-setmember-v1 over the commitment, the candidate list and every branch's nonce commitment — and the branch challenges must sum to it, which is what stops a prover pre-building every branch freely: they can pre-build all but one, and the hash decides how the last must go. The list is a set, not a sequence: entries are read through tool 42's own value parser, duplicates are refused, and the list enters the hash in sorted order, so the order anyone typed it in changes nothing. The honest limits are plain. The set is public and membership is all it proves — a set of two is a coin flip about which entry, so small sets leak by their size, and membership in a set nobody else belongs to is a name, not a hiding place. The witness is the blinding alone: anyone holding the opening can make this proof, and the proof names neither the value nor the blinding. The nonce discipline is inherited whole from tool 32: one nonce behind two responses hands back the witness it answered with. This is a real set-membership proof computed and checked locally, but the line here is this hub's own p4a-setmember-v1 spelling over P-256 teaching arithmetic — not the proof format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation — affine arithmetic written to be read and checked line by line, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway commitments from tool 42. Tool 46 below changes the question from proving to asking: instead of showing a value belongs somewhere, a receiver takes one of two messages while the sender learns nothing about which.

46 · Pick one, learn one — oblivious transfer

Every tool above hides something at rest. This one hides a question. A receiver wants exactly one of two messages a sender holds — one record of two, one file of two — and the transfer is private in both directions at once: the sender learns nothing about which message was taken, and the receiver learns nothing about the one left behind. That two-way shape is an oblivious transfer, the Bellare–Micali construction, and it is the primitive private database lookups and private set intersection are built from: ask for your record without handing over which record is yours. The stage is one fixed public point whose logarithm nobody knows — tool 42's hashed-into-the-curve generator, reused because nobody chose it, so nobody holds its log. The receiver picks their message and one fresh random number r, and builds two keys that sum to that public point: the chosen slot's key is r×G, a key whose secret number they hold, and the other slot's key is the public point minus r×G, whose secret number would need the public point's own logarithm. The request line carries both keys in message order, and to the sender they are two random-looking points with one checkable property. The sender checks that the two keys sum to that point before sealing anything — that sum is what ties the receiver to knowing at most one key's secret, because a receiver who built both keys from numbers they chose would hold both secrets, and their keys would sum to the wrong point entirely. Each message is then sealed the way tool 26 closes a box, stripped to the arithmetic: a fresh ephemeral key per slot, a shared point from ephemeral-times-key, and the message hidden under a pad hashed out of that point under privacy4all-ot-v1. The receiver rebuilds the shared point for their slot alone — their r against the slot's ephemeral key lands on the same point the sender reached — and reads exactly one message. The other slot is not locked to them; it is unreachable, because opening it would take the secret number of the key they did not build. The honest limits are plain. This is the semi-honest teaching core: the sum check is what stands between it and a cheating receiver, so a sender who skips the check — or a base point whose logarithm somebody does know — quietly collapses the promise, and real protocols add proofs of correct behaviour where the other side may be actively malicious. Nothing here hides that a transfer happened, or when, or between whom. The receiver's state line holds r, and whoever holds it can open the chosen half of any copy of the response, so it is kept the way tool 37's share lines are kept. This is a real oblivious transfer computed and opened locally, but the lines here are this hub's own p4a-otreq-v1, p4a-otstate-v1 and p4a-otresp-v1 spellings over P-256 teaching arithmetic — not one of Midnight's Compact circuit proofs, not a format any chain or wallet checks, and like tool 30 the curve code is a teaching implementation, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one. Tool 47 below builds the thing this primitive is famous for: two lists meet, and only the entries they already share are named.

47 · Common ground, nothing else — private set intersection

Tool 46 named this construction as the thing oblivious transfer is built for; here it is, whole. Two people each hold a short list — contacts, handles, names — and exactly one question is worth answering together: which entries do we already share? Answering it the obvious way means handing over the whole list, including every entry the other side does not have, which is usually the private part. This tool answers the overlap and nothing else, in the classic Diffie–Hellman shape of a private set intersection. Each entry is hashed into the curve under privacy4all-psi-item-v1 by the same try-and-increment tool 42 uses for its generator — the digest is an x coordinate, the first counter whose x carries an on-curve point wins, the even root is chosen — so an entry becomes a point H(entry) whose logarithm nobody knows, and both sides land on the same point for the same entry because the recipe is public. The initiator picks one fresh secret number a and blinds every entry point with it, a×H(entry); that blinded list, a p4a-psib-v1 line, is all that travels. The responder picks their own fresh number b, blinds their own entries the same way, and blinds the initiator's points a second time, b×(a×H(entry)). The initiator finishes on the one equation the protocol hangs on — scalar multiplication commutes, a×(b×H(entry)) = b×(a×H(entry)): raising the responder's blinded points by a gives a candidate set, and an entry is shared exactly when its double-blinded point stands in that set. The double-blinded half of the reply, a p4a-psid-v1 line, comes back in the request's own order — the initiator sent that order, so it names nothing new, and it is what lets them say which of their entries matched rather than merely how many. What each side learns is stated plainly, because it is the boundary of the promise. The initiator learns the overlap and the size of the responder's list, and nothing else about it: an unmatched responder point cannot be unblinded without b, and cannot be tested against a guessed entry either, because the only comparable points require the responder's number. The responder learns the size of the initiator's list and nothing else at all — not the overlap, not one entry. Entries are normalised before anything is computed — trimmed, lower-cased, internal whitespace collapsed — so two spellings of one name still meet, and entries that differ only in case or spacing are one entry here. The honest limits are plain. This is the semi-honest core: a responder who quietly returns the double-blinded half in a different order can scramble which entries the initiator counts as shared — they cannot invent a match for an entry they do not hold, because a point enters the candidate set only by being raised from their own blinded list — but order is taken on trust, and real protocols add proofs of correct behaviour where that trust is not given. Set sizes leak, as stated, and so do the fact and timing of the exchange. The initiator's state line, a p4a-psistate-v1 line, holds a, and whoever holds it with a copy of the reply can recompute the overlap — and nothing beyond it. This is a real private set intersection computed locally, but the lines here are this hub's own spellings over P-256 teaching arithmetic — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway lists. Tool 48 below runs this same exchange and deliberately learns less from it: only how many entries are shared, never which ones.

48 · Just the number, not the names — private set intersection, cardinality only

Tool 47 names the overlap. Sometimes the names are more than the question needs: two groups planning a joint event may need only “how many people are on both lists?” — for a room size, a quorum check, a go/no-go — and every name beyond that number is disclosure nobody asked for. This tool runs tool 47's exact exchange and deliberately learns less from it: a count, and nothing that can name an entry. The start is unchanged — blind your list in tool 47's first form and keep its state line. The difference is on the answering side and at the finish. The responder here uses this tool's answer form, which shuffles both halves of the reply before they travel — their own blinded points, as tool 47 already did, and the double-blinded points too — so the reply carries no position information at all: no point on it can be tied back to a position on the request. And the finish here never receives your list at all: it takes only your kept state and the reply, raises the responder's blinded points by your secret number into the same candidate set tool 47 builds, and counts how many of the double-blinded points stand in it. A count is a set question, so it is order-free by construction — the scrambling move tool 47 has to take on trust, a responder quietly returning its double-blinded half in a different order, cannot change a number here, because there is no position left to scramble. The count that comes out cannot contain an entry name, because no entry name ever reaches the form that produces it. What each side learns is stated plainly. You learn the count and the size of the responder's list, and nothing else — not one shared entry is named. The responder learns the size of your list and nothing else at all, exactly as in tool 47. The honest limits are plain. A count can itself be the sensitive fact: a count equal to your whole list says every entry matched, a count of zero says none did, and on a list of one entry a count of one is the name, worn as a number — small lists leak through counts the way tool 45's small sets leak by their size. This is still the semi-honest core: the responder must still build the double-blinded points from your request and their own list, and nothing here proves they did — but order, the one thing tool 47 had to take on trust, is no longer trusted or needed. Set sizes leak, as stated, and so do the fact and timing of the exchange. Your state line holds your secret number, and whoever holds it with a copy of the reply can recompute the count — and here, truly nothing beyond the count. One warning that matters: use this tool's answer form, not tool 47's. A reply from tool 47's form is spelled the same but still carries its positions, and this finish will count it happily — the privacy here lives in the shuffle, not in the counting. Tool 49 below starts from tool 47's exchange once more and adds instead of subtracting: the shared entries arrive with the responder's own short note for each one attached, and no note travels for any entry that is not shared. This is a real cardinality computed locally, but the lines here are this hub's own p4a-psib-v1, p4a-psid-v1 and p4a-psistate-v1 spellings over P-256 teaching arithmetic — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway lists.

49 · Common ground, with the note attached — private set intersection with payloads

Tools 47 and 48 answer questions about the overlap — which entries, or only how many. Often the overlap is not the end of the question: a shared contact is worth having because of what comes with it — a room number, a handle on another network, “ask for the blue folder”. The responder holds a short note for each of their entries, and the initiator should receive the notes for the shared entries and no others: delivering every note would hand over the private part of the responder's list in all but name, and delivering none makes the overlap a list of names with nothing to act on. This tool is the labelled shape of a private set intersection, and it turns on one point the earlier tools never needed: b×H(entry), the responder's blinded point for an entry. The responder can compute that point for every one of their own entries directly. The initiator can obtain it for exactly the entries they sent, and no others: the reply's double-blinded point for an entry is b×(a×H(entry)), and dividing out their own secret number — multiplying by its inverse under the curve order — leaves b×H(entry) itself. For an entry the responder holds but the initiator did not send, the initiator never holds that point in any form they can unblind, because the request they made never contained it. So each note here is sealed under the point b×H(its entry): the note XORed with labelled SHA-256 pad blocks under privacy4all-psi-payload-v1, prefixed with a truncated SHA-256 tag under privacy4all-psi-payload-mac-v1 over the point and the ciphertext, so a wrong key fails closed instead of yielding gibberish; the initiator tries each unblinded point against each sealed note, and a note opens exactly when its entry stands on both lists. The start is unchanged — blind your list in tool 47's first form and keep its state line. Two shape decisions carry the privacy, and both are easy to miss. The double-blinded half of this reply stays in the request's own order, as in tool 47 — you sent that order, it names nothing to the responder, and it is what ties each unblinded point to the entry it belongs to — while the sealed notes travel shuffled, because their order would echo the order the responder typed their list in. And this reply contains no blinded list at all. In tool 47 the responder's blinded points are harmless cargo; here those same points are the note keys, and a reply that carried them alongside the sealed notes would let anyone holding the reply open every note, shared or not. What is absent from this reply is the security property. What each side learns is stated plainly. You learn the shared entries with their notes, the size of the responder's list — one sealed note per entry, so the count travels even though the entries do not — and roughly each note's length, because a pad cipher's length is its message's length. The responder learns the size of your list and nothing else at all, exactly as in tool 47. The honest limits are plain. The tag proves a note was sealed under its entry's true point, never that the note is true — a responder can write anything in a note, and anyone who acts on one trusts the responder, not the maths, for its content. This is still the semi-honest core, set sizes and the fact and timing of the exchange leak as in tool 47, and note lengths leak as stated. Your state line holds your secret number, and whoever holds it with a copy of the reply can recompute the shared notes — and nothing beyond them. This is a real labelled intersection computed locally, but the lines here are this hub's own p4a-psib-v1, p4a-psid-v1 and p4a-psistate-v1 spellings plus this tool's own p4a-psip-v1 line of sealed notes, over P-256 teaching arithmetic — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs, and like tool 30 the curve code is a teaching implementation, not an audited library and not side-channel resistant. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway lists and throwaway notes. Tool 50 below leaves lists and overlaps behind entirely and hides a different thing: not data, and not a set, but a single lookup — which one row of a small catalogue you came for.

50 · Fetch one, tell neither — private information retrieval

Every tool above hides data, a message, or a question about a set. This one hides a lookup. A small catalogue — a directory, a price list, a table of notes — sits on servers anyone can ask, and you want exactly one row of it. Asking in plain words gives the row away to whoever is asked: the question itself is the private fact, and encrypting the answer changes nothing, because the server had to read the question to answer it. This tool is the two-server shape of private information retrieval, and its arithmetic is the plainest on this page: XOR. In the first form you name only how many rows the catalogue holds and which one you want, and the page draws a fresh coin flip for every row — a random mask, one bit per row. The first server is asked for the XOR of the rows where the mask has a 1; the second server is asked the same question with exactly one bit flipped, the wanted row's bit. Neither query names your row. A mask is uniform random bits, so a server holding one query holds a pattern that could have been drawn for any wanted row at all — the very same first query could pair with a second asking for any other row — and that is information-theoretic, not a hardness assumption: there is nothing to crack, because your row is not in the query in any form. Each server, in the second form, XORs the rows its query selects — every row first padded into a block of one common length, a two-byte length header in front, so rows of different lengths can be XORed at all, and so no row's true length ever shows — and returns one block. In the third form you XOR the two answers: every row the mask selected was folded in twice and cancels, the wanted row was folded in once, by the second server alone, and stands alone in the result; its header is read, its bytes taken, and the padding behind them must be exactly zero, or the finish fails closed rather than decoding a wrong row. What each side learns is stated plainly. Each server learns the size of the catalogue it holds and the length of its longest row — every answer is exactly one padded block — and nothing about which row you wanted, from its own query alone. You learn your row, and the padded block length, and no other row. The honest limits are plain, and the first is load-bearing: the two servers must not compare queries. The XOR of the two masks is a single 1 standing exactly on your row, so two servers that collude — or one operator quietly running both — learn the wanted row instantly and completely. This shape buys its privacy with non-collusion; where that cannot be had, real systems turn to single-server schemes built on lattice assumptions, which this page does not pretend to offer. An answer is not authenticated either: a dishonest server corrupts the result, and while a broken length header or non-zero padding is caught at the finish, a carefully wrong answer could in principle decode as a different plausible row — you can catch nonsense, not prove which server lied. The catalogue itself is not hidden and is not meant to be: the servers hold it in the clear, its contents are the public part, and only your choice is private. Set sizes, the longest row's length, and the fact and timing of the lookup leak as stated. Your state line holds the wanted row's position and the first mask — with both answers it recomputes your row, and with the second query, which it can rebuild, it names your row outright — so keep it where you keep private keys. This is a real retrieval computed locally from XOR alone, but the lines here are this hub's own p4a-pirq-v1, p4a-pirstate-v1 and p4a-pirans-v1 spellings — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; practise with a throwaway catalogue. The next tool leaves lookups behind and counts instead — ballots nobody can read, added up in public, opened only as a total.

51 · Count every vote, read none — a homomorphic tally

Fifty tools have hidden data, messages, set questions and lookups. This one hides each individual answer while still counting them all. A counting authority — an election, a survey, a show of hands that must not become a list of who raised theirs — holds a secret scalar in the first form and publishes its key, Y = x×G on the same P-256 curve the rest of this page uses. A voter casts in the second form: for a vote v of exactly 0 or 1 and a fresh random r, the ballot is the pair of points (r×G, v×G + r×Y). The vote rides in the second point as a multiple of the base point, masked by r×Y — a point nobody can compute from the ballot without r or x. This spelling of ElGamal is additively homomorphic, and the third form is the whole trick: anyone, holding no key at all, adds the ballots point by point, and the sums are a ballot for the total vote under the summed randomness. The adding-up is public and repeatable — hand the same ballot lines to anyone and they spell the same tally line — and it reads nothing, because addition is all it does. Only the authority finishes, in the fourth form: Bsum − x×Asum, where every ballot's mask cancels against x times its randomness point at once, leaving exactly (total)×G. The total is then counted off in base-point multiples, from the identity — zero yes votes is an honest answer here, not an error — up to the ballot count the tally line carries, which is why this is called exponential ElGamal and why a tally here is capped at sixteen ballots: the opening search only works because the answer is small and bounded. The honest limits are plain, and the first is load-bearing: nothing on this page proves a ballot encrypts 0 or 1. A ballot encrypting 2 counts double, and if the cheat stays within the ballot count no step here can tell; real systems attach a proof to every ballot that its value is one of the set {0, 1} — tool 45's set-membership proof pointed at exactly that set — and this page does not pretend to. Tool 52 below builds exactly that missing proof, for ballots cast there. If a cheat pushes the total past the ballot count, the finish does fail closed rather than report it. Second, the authority is one key holder, and the same state that opens the total can open any single ballot (B − x×A, one ballot at a time), so ballots are private from everyone except the authority; real elections split that secret by threshold, the way tools 37 and 38 split a signing key, so no single party holds it. Third, eligibility is out of scope entirely: the tally adds the lines it is handed, a ballot pasted twice counts twice, and who may vote — and vote only once — are questions this arithmetic does not ask; coercion resistance and receipt-freeness are not offered either. What is offered needs its fresh randomness: under a reused r, two ballots for the same vote are the same pair of points, visibly equal, so every cast here draws anew. This is a real tally computed locally from the curve arithmetic above, but the lines are this hub's own p4a-tallykey-v1, p4a-tallystate-v1, p4a-ballot-v1 and p4a-tally-v1 spellings — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway votes.

52 · Prove the ballot is honest — a ballot validity proof

Tool 51 counts every vote and reads none, and names its own load-bearing limit in plain words: nothing there proves a ballot encrypts 0 or 1, so a ballot encrypting 2 counts double. This tool builds the proof tool 51 says real systems attach to every ballot — for this page's own ballots, in this page's own arithmetic. A ballot (A, B) under a counting key Y makes one of two claims, and the proof is an OR of them, in the Cramer–Damgård–Schoenmakers shape tools 43 and 45 already use, here over two bases at once: either the same randomness r stands behind A = r×G and B itself — a vote of 0 — or that same r stands behind A and B with one base point removed, B − G — a vote of 1. Each claim is a Chaum–Pedersen equality of discrete logarithms, the statement tool 44 proves. The voter, who knows r and their vote, answers the true branch the ordinary sigma way and simulates the other branch backwards from a challenge and response chosen first; one Fiat–Shamir challenge, hashed over the key, the ballot and all four nonce points, is split between the branches so they must sum to it — a prover can choose at most one branch's challenge freely, and the other branch is the one they must actually know r for. A ballot encrypting 2 satisfies neither branch — its B − G still carries a whole base point of unexplained vote — so no honest cast here produces a proof for it, and a forgery that simulates both branches fails the challenge sum except with negligible probability. The checker needs no secret at all: recompute the two shifted points, re-hash the challenge, check the sum and both branches' balances on both bases — and learns nothing about which branch was real, so the verdict names no vote. The honest limits are plain. The proof speaks only about this ballot under this key — checked against another ballot or another key it fails — and it says nothing about eligibility, a ballot pasted twice, coercion or receipts; tool 51's limits there stand whole. Proving needs the ballot's randomness r, and r is vote-revealing — anyone who learns it can strip the mask, B − r×Y — so the cast form below draws r, proves with it and never prints it; the proof is the voter's receipt, and it stands on its own. And tool 51's second limit stands too: the single counting authority can still open a single ballot, so real elections split that key by threshold, the way tools 37 and 38 split a signing key — tool 53 below deals exactly that split for this page's counting key. This is a real validity proof computed locally from the curve arithmetic above, but the line is this hub's own p4a-ballotproof-v1 spelling — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway votes.

53 · No single opener — a threshold tally opening

Tools 51 and 52 both end on the same named limit, stated plainly in both: the counting authority is one holder of the secret, and the state that opens the total can open any single ballot too, so ballots are private from everyone except that one holder. This tool removes the single holder. In the first form the counting secret is dealt as Shamir shares under the curve order — the exact polynomial tool 37 deals for a signing key — one share per trustee, under a quorum of two or three. The counting key that comes out is tool 51's own key line, unchanged, so voters cast exactly as they do in tools 51 and 52, and anyone can still add the ballots up in public. What changes is only the finish. Each participating trustee runs the second form: their share multiplied into the tally's summed randomness point, a partial opening that is a single point and nothing else — no share, no secret and no vote travels in it. The third form weights each partial by its Lagrange coefficient for the participating set, the same arithmetic tools 37 and 38 combine with, and the weighted sum is exactly the mask tool 51's finish strips — the counting secret itself is never reconstructed, by anyone, anywhere in this tool. Two public checks guard the finish. Setup also publishes a trustees line carrying each share's commitment — its share times the base point, in index order — and the finish first demands that the participating set's commitments, weighted the same way, rebuild the counting key itself: a trustees line dealt for another count, or partials from trustees who were never dealt in, are refused before any opening is attempted. A partial made from a wrong share passes those checks — it is a well-formed point — but poisons the weighted sum, the unmasked point lands on no honest total, and the finish fails closed with no answer rather than a false one; which trustee erred is not identified, where real systems attach a proof to each partial (tool 44's statement, share side) so a bad one can be named. Attaching that proof is tool 58, below. The honest limits are plain, and the first is structural: a dealer deals this split, and whoever runs the setup form holds the whole secret for that one moment — real elections generate the key jointly, by tool 38's distributed key generation, so it never exists whole anywhere, and this page's setup is a trusted-dealer teaching construction that says so. Tool 59 below runs exactly that joint generation for this counting key. Second, the quorum is the privacy boundary, whole and entire: any quorum of trustees who pool their shares hold the secret itself, and trustees who run their partial step over a single ballot's randomness point instead of the tally's sum, and pool those, open that ballot — the arithmetic cannot tell the two multiplications apart, because they are the same multiplication. What the threshold buys is that no one trustee, and no group under the quorum, can open anything at all: a sub-quorum set of partials interpolates to a number that is not the secret, and the finish finds no total. Everything tool 51 keeps stands whole here — coercion and receipts are out of scope — and ballot validity still comes from tool 52's proofs, not from this split; eligibility and the voted-twice problem are tool 54's subject, below. A share line is a secret of the same rank as a private key: worthless alone, which is the point, and the whole secret in a quorum, which is also the point. This is real threshold arithmetic computed locally, but the lines are this hub's own p4a-tallyshare-v1, p4a-tallytrustees-v1 and p4a-tallypartial-v1 spellings, around tool 51's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway votes.

54 · One person, one vote — an election nullifier

Tools 51, 52 and 53 count votes, prove them honest and split the opening — and each keeps two limits whole, named in its own text: eligibility, who may vote at all, and double voting, one voter counted twice. This tool builds the standard answer to both. The voter roll is public: the public keys of the eligible voters — throwaway keys from tool 18, two to six of them at this page's teaching size, in an agreed order. Each election names itself with a short identifier, and the identifier is hashed into a curve point whose discrete log nobody knows, by the try-and-increment of tool 35 under this tool's own label: an independent generator for this election alone. A voter's nullifier for the election is their secret times that generator, and three facts about it carry the tool. It is deterministic — the same voter in the same election always produces the same nullifier, so a counting board that records the nullifiers it has accepted can refuse a second cast carrying the same one: one person, one vote, enforced by equality alone, which the third form below performs. It is unlinkable across elections — a different name hashes to an unrelated generator, and tying one election's nullifier to another's, or either to a roll key, is a decisional Diffie–Hellman problem. And it is provable — the cast in the first form attaches a proof that the nullifier was made by some roll member's secret, an OR of Chaum–Pedersen equal-log statements (tool 44's statement over two bases at once, composed as tool 52 composes it): the same secret stands behind one roll key on the base point and behind the nullifier on the election's generator. The voter's own branch is answered from a fresh nonce, every other branch is simulated backwards, and one Fiat–Shamir challenge, hashed over the election's name, the roll in order, the nullifier and every branch's two nonce points, is split between the branches so they must sum to it. The checker in the second form needs no secret, learns that an eligible voter cast and that this nullifier is theirs to record — and learns nothing about which member it was. The honest limits are plain. The roll is public, so the anonymity set is the roll itself: eligibility is not a secret here, only the casting is anonymous, and a roll of two makes each cast a coin flip between two named people. The nullifier stops a second cast in this election and nothing else: it does not hide the ballot — tools 51 and 52 do that work — and it does not stop coercion or vote-selling, so receipt-freeness is not offered; a voter can still be made to hand over their key or cast under observation, and network timing and metadata are out of scope entirely. The key is the eligibility: whoever holds a roll member's private key can cast as that member, once, and a voter who loses their key cannot cast at all; how the roll itself is agreed and published is governance this page does not do. And the proof binds the roll as ordered and the election as named — the same keys in another order, or the same cast checked under another election's name, fail, because order and name are part of the statement. Tool 55 below runs this check together with tools 51 and 52's over a whole posted board at once. This is a real eligibility proof computed locally from the curve arithmetic above, but the line is this hub's own p4a-votenull-v1 spelling — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; practise with throwaway votes.

55 · Check the whole election yourself — a public election auditor

Tools 51 to 54 each check one piece of an election: a ballot hides its vote and the pile adds up (51), a ballot provably encrypts 0 or 1 (52), no single opener can read one ballot (53), and a cast provably comes from the roll, once per voter (54). What none of them does is check a whole posted election at once — which is the check a real observer actually runs, and the one a counting board's published result stands or falls by. This tool runs it, and it needs no secret of any kind: paste the election's name, the voter roll, the counting key, the board's casts, ballots and ballot proofs in matching order — row one of each column is the same vote — and the tally line the board claims. Four checks run, each an earlier tool's own verdict, plus the equality that ties them. Every cast's proof is verified against the roll under the election's name, by tool 54's checker: an eligible voter made each one. No nullifier appears twice, by tool 54's equality: no voter is counted twice. Every ballot's validity proof is verified under the counting key, by tool 52's verifier: every ballot encrypts 0 or 1. And the claimed tally line is compared, count and both points, against the point-by-point sum of the posted ballots, by tool 51's public step: the claimed total is the total of exactly these ballots, no ballot swapped, dropped or added after the fact. The report names each check separately, because an election can fail one and pass the rest — a repeated nullifier under honest proofs is a different story from a tally that is not the sum of its ballots — and the verdict is simply all four together. Anything that cannot even be judged — a malformed line anywhere, columns of different lengths, a roll or a name the earlier tools refuse — gets no verdict at all, rather than a wrong one: an auditor that cannot read the board says so. The honest limits are plain. The auditor holds no opening key, so it cannot open the tally: it checks that the claimed tally IS the posted ballots' sum, and reading the number of yes votes off that sum remains the step of tool 51, or of tool 53's trustee quorum. And it checks the board, not the world: that the roll pasted here is the roll the voters agreed, that the name is the election's agreed name and the key its real counting key, is something no paste can prove — check those against wherever the election published them. Everything off the board stays out of scope, exactly as tools 51 to 54 leave it: coercion and vote-selling are untouched, receipt-freeness is not offered, and timing and network metadata are nobody's proof. This is a real audit computed locally from the same curve arithmetic as the tools it composes, over this hub's own line spellings — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; the auditor never asks for one — a board that needs a secret to be checked is not public in the first place. One thing the audit cannot give a ballot is a new disguise — tool 56 below does that, without changing its vote.

56 · Same vote, new disguise — re-randomize a ballot

Tools 51 to 55 leave one gap named in their own text: a ballot a voter can recognise is a ballot they can be made to prove. A voter who kept their ballot's randomness holds a receipt in everything but name — against the posted ballot, stripping its mask with that randomness leaves the vote as a point, countable at a glance — and tool 55's auditor states plainly that receipt-freeness is out of its scope. This tool is the standard first move against that, for this page's own ballots: re-randomization. Anyone, with no key of any kind, can take a ballot under a counting key, add one fresh shift to both of its points — the shift under the base point to the first, the same shift under the counting key to the second — and publish the result as a new ballot. The vote is untouched, because the shift cancels in the only place the vote lives: what the counting key strips from the new ballot is exactly what it stripped from the old, so the new ballot encrypts the original's vote, and a tally that swaps the original for the disguised ballot opens to exactly the same total. And the voter's kept randomness no longer opens the posted ballot: strip the new ballot with the old randomness and what remains is the vote buried under the shift, not a countable point. The proof below is what lets a board use the disguise without asking anyone to trust it: the two differences between the ballots — new minus old, on each side — must be one shift under its two bases, and the prover who drew the shift proves exactly that equality of logarithms, with a nonce pair, one hash challenge over the key, both ballots and both nonce points, and a single response. A disguise that also moved the vote would leave a whole vote's worth of base point in the second difference that no shift accounts for, and no response balances both sides at once. The honest limits are plain. The shift is the link: anyone holding the shift and the original ballot recomputes the new one exactly, so the shift is drawn inside the step and printed nowhere — a board that publishes a shift has published the pairing it meant to hide. The proof names the pair: it shows this new ballot carries that original's vote, so anyone shown both ballots and the proof sees them paired — this is not a mixnet shuffle, there is no batch and no permutation here, and disguising one ballot in the open does not by itself unlink a board's ballots from the voters who cast them; real systems re-randomize a whole board together and prove the set. The receipt benefit is the narrow, real one above: once the original is retired and only the disguised ballot stands, the randomness the voter kept opens nothing. And same vote is all the proof says — not that the vote was an honest 0 or 1 (a ballot encrypting 2 disguises into a ballot encrypting 2; validity stays tool 52's proof), not that the voter was eligible (tool 54), and not that the counting authority cannot still open the disguised ballot, because it can: the disguise is against receipts, not against the counting key, whose threshold answer stays tool 53. This is a real proof computed locally in this hub's own line spellings — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool never asks for one — a disguise anyone can apply needs no secret at all. The whole board at once — every ballot disguised, the order permuted, and the set proved without naming any pairing — is tool 57 below.

57 · Shuffle the whole board — a verifiable board shuffle

Tool 56 disguises one ballot and says plainly what it is not: a shuffle. Its proof names the pair, so anyone shown it sees the pairing — and a board whose ballots still stand in cast order can be followed back to the casts above them, however well each one is disguised. This tool does the whole board at once. The mixer re-randomizes every ballot under a fresh shift — tool 56's move — publishes the disguised ballots in a permuted order, and proves the set, never the pairing. The proof has two halves, and the verdict is both together. For each published ballot, an OR proof over the whole input board: for every input ballot, a branch states that this output is that input re-randomized — the two public differences, output minus input on each side, are one shift under its two bases. The mixer proves the branch that is true and simulates every other branch backwards, under one hash challenge the branches' challenges must sum to — so the proof shows the output came from some ballot on the board, and the branch that is real is the one thing it does not say. And one aggregate proof — tool 56's own proof, between the two boards' sums spelled as ballots by tool 51's public step — shows the sums differ by a single shift, the sum of all the shifts, so the board's total vote is untouched. Why those halves are enough, for this page's ballots, is arithmetic worth stating: the boards hold the same number of lines, no line repeated in either; every output's vote is therefore some input's vote; the aggregate proof fixes the number of yes votes; and ballots here encrypt only 0 or 1 — the fact tool 52's proof established for the input board — so the ballot count and the yes count together fix the whole multiset of votes. No vote can have been changed, dropped or duplicated without one half failing. The honest limits are plain. One mixer knows the permutation: the shifts and the order are drawn inside the shuffle step and printed nowhere, but whoever runs this step could in principle remember them — real mixnets answer that with several independent mixers in a row, each shuffling and proving again, so no single one knows a ballot's whole path; this page runs one step and does not pretend to be a cascade. This proof does not scale, and does not claim to: an OR branch per input per output grows with the square of the board, so the board here is capped at six ballots, a teaching size — real shuffles of thousands use dedicated shuffle arguments (Neff's, Bayer–Groth's) that prove the same statement with far smaller proofs. The shuffle speaks about the ballot column only: that the input ballots were valid and eligible is the earlier tools' work — tool 52's proofs and tool 54's casts, audited together by tool 55 on the input board before the shuffle — the casts are not shuffled here, and timing and network metadata are nobody's proof. The counting authority can still open the shuffled board's total, and any single ballot with its secret; the threshold answer to that stays tool 53. This is a real shuffle with real proofs computed locally, in this hub's own line spellings — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool never asks for one — the mixer's only secrets are drawn inside the step.

58 · Name the bad partial — a proof for every partial opening

Tool 53 ends on a named gap, stated plainly in its own text: a partial made from a wrong share is a well-formed point, so neither of the finish's public checks catches it — it poisons the weighted sum, the finish fails closed with no answer, and which trustee erred is not identified, where real systems attach a proof to each partial so a bad one can be named. This tool attaches that proof. The statement is public: trustee j's published commitment from the trustees line — their share times the base point — the tally's summed randomness point, and the partial the trustee hands over. The claim is that one scalar sits behind both points: the same share behind the commitment under the base point and behind the partial under the tally's point — tool 44's equality of logarithms, aimed at the share. The trustee proves it the Chaum–Pedersen way, in the first form: a fresh nonce pair, one hash challenge under this tool's own label over the trustee's index, the commitment, the tally and the partial, and a single response. Anyone checks it in the second form, holding no secret at all: re-hash the challenge, and check the response balances under both bases. A partial made from a wrong share can still be proved under that wrong share on the tally side alone — but its other side balances only against the wrong share's point, not the dealt commitment, so the pair fails, and the failure has a name: this partial, from this trustee, is not the dealt share's work. A bad partial can be named, and excluded before the finish, instead of silently costing the whole count. The honest limits are plain. The proof is meant to name its trustee and its tally, and it does: it hides the share and nothing else — not who acted, not which tally, not when. The nonce is drawn fresh inside every proof and printed nowhere, because one nonce behind two proofs hands back the share itself — the discipline tool 32 states, pinned in this tool's tests. The arithmetic cannot tell a partial over the tally's summed point from one over a single ballot's point, because they are the same multiplication — the limit tool 53 states for the partial itself — so the proof says the partial is the dealt share's honest work over the tally the challenge names, and only a board's discipline (partials accepted over the published tally alone) keeps a ballot-opening partial from proving just as cleanly against a single ballot's tally line. And the proof guards the finish, not the dealing: a dealer who dealt bad shares dealt them, and a quorum pooling shares still holds the secret whole. Tool 53's finish itself is unchanged — this checker stands in front of it, the way a real board's would. This is real Chaum–Pedersen arithmetic computed locally, in this hub's own p4a-partialproof-v1 line spelling, around tool 53's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; a share line is a secret of the same rank as a private key, so practise with throwaway dealings from tool 53.

59 · No dealer ever held it — a jointly made counting key

Tool 53 ends on a named gap, stated plainly in its own text: a dealer deals its split, and whoever runs its setup form holds the whole counting secret for that one moment — real elections generate the key jointly, by tool 38's distributed key generation, so the counting secret never exists whole anywhere. Tool 38 runs that generation for a signing key; this tool runs the same generation aimed at the counting key. In the first form every trustee deals a split of their own random contribution, in tool 38's own lines: one broadcast p4a-dkgcommit-v1 commitment line, and one private p4a-dkgshare-v1 share line per trustee, dealt by tool 37's polynomial arithmetic. The contribution itself is printed nowhere — once its shares are dealt, nobody needs it. The second form derives the election's two public lines from the broadcast commitments alone, with no share and no secret involved: the counting key is the sum of the contributions' constant commitments, spelled as tool 51's own p4a-tallykey-v1 line, so voters cast under it in tools 51 and 52 unchanged; and the trustees line is the summed polynomial's commitments — for each trustee, every dealer's Feldman commitments weighted by that trustee's powers and added, computed as points, never as scalars — spelled as tool 53's own p4a-tallytrustees-v1 line. In the third form a trustee finalizes: sum the shares addressed to you, one from every dealer including yourself, each first passing its Feldman check against its dealer's broadcast commitments, and the sum comes out as tool 53's own p4a-tallyshare-v1 line, judged once more by tool 53's own share check against the derived trustees line before it is handed back. From there the election is tools 53 and 58 unchanged — partials over the tally, the threshold finish, a proof per partial. The group secret is the sum of the contributions, and it is never computed, by anyone, anywhere in this tool: only its public key exists. A quorum pooling finalized shares still holds it — that is what a quorum is — but no dealer, and no moment in the setup, ever held it first. The honest limits are tool 38's, carried whole. This page plays every trustee on one device, so here the whole round is visible in one place; in real use each trustee runs their own device, only commitment lines are broadcast, and share lines travel over private channels — a share line is a secret of the same rank as in tool 53. There is no complaint round in these forms: a dealer whose share fails its Feldman check is refused at finalizing, and restarting without them is the group's own business off-page. Tool 60 below runs that round. A dealer who waits to see the others' commitments before choosing their own can bias the key's distribution — the Pedersen-scheme caveat tool 38 names — which is why production protocols add rounds this teaching page does not. And the quorum remains the privacy boundary, exactly as in tool 53: the joint setup removes the dealer, not the quorum's power. This is a real distributed key generation computed locally, spelled in this hub's own lines around tools 51, 53 and 38's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no existing key at all — every contribution is drawn fresh on the page.

60 · Name the bad dealer — a complaint round for the jointly made counting key

Tools 38 and 59 both end on the same named gap, stated plainly in both: there is no complaint or dispute round. A share that fails its Feldman check is simply refused at finalizing, and what the group does about the dealer who dealt it is left off-page. Real distributed key generation — the rounds Gennaro and co-authors added over Pedersen's scheme — gives that moment a public shape, and this tool runs it for tool 59's counting key. A complaint is a public accusation and nothing more: a trustee who was dealt a share that fails its Feldman check against the dealer's broadcast commitments, or who was dealt no share at all, publishes a complaint line naming the dealer and themselves. The line carries no share and no secret — the evidence step is the dealer's, not the complainer's. The dealer answers in public by broadcasting the very share line they claim to have dealt, and everyone can run the Feldman check on it, because the commitments are already public. If the broadcast share checks out, the dealer stands qualified and the complaint is dismissed — the complainer mistook, miscopied, or accused falsely, and the round can see which. If the broadcast share fails the check, or the dealer never answers, the dealer stands disqualified by evidence anyone can recompute, not by vote. The qualified set is then one public line: the quorum, the round's trustee count, and the two lists — who stands qualified, who stands disqualified — partitioning the round exactly. And here the round forks, honestly. If nobody stands disqualified, nothing has changed: the counting key and the trustees line are tool 59's own derivations, unchanged, and finalizing runs in tool 59 as before — a complaint round that clears everyone costs the round nothing. If a dealer stands disqualified, this tool derives no key and no share from the broken round: the dealt shares were evaluations at the old trustee numbers of polynomials the group is abandoning, so quietly dropping one dealer's lines and summing the rest would spell a key for a round that never happened. The qualified trustees re-deal, fresh, in tool 59, renumbered in their original order — the renumbering comes back with the verdict; tool 64 below judges the restarted round against this qualified set before anything is derived from it — and if the disqualifications leave fewer trustees than the quorum, there is no restart at that quorum at all: the group must choose a smaller quorum or recruit a trustee, which is governance this page names instead of papering over. The honest limits are plain. This page plays every trustee on one device; in real use the complaint and the answer are broadcasts, and the deadline a dealer must answer by is the group's own rule — silence is judged here the moment the qualified set is published, because a page cannot hold a clock for a group. A complaint is cheap to file and public, so a trustee can force any dealer to a verdict for the cost of an accusation; what they cannot do is make a false one stick, because the answer settles it in public. A disqualified dealer is named, not punished — exclusion from the restarted round is the whole sanction this arithmetic carries. And the bias caveat of tools 38 and 59 stands whole: a dealer who waits on the others' commitments can still bias the restarted key's distribution, which is why production protocols add rounds this teaching page does not. Tool 61 below runs the first of those rounds. Tool 65 below judges the sealed restart under both gates at once, for a restarted round that runs the seal round too. Tool 66 below judges the restarted round's own signed deliveries, for when this round is rerun on the restart. Tool 67 below composes this verdict with the restarted round's own, for when the restart itself breaks and the round must be run a second time. One hole in this round's own answer is named here too, because it is this round's: the dealer's broadcast is the share they claim to have dealt, and a privately dealt bad share leaves the recipient with no proof of what was sent — tool 63 below closes that hole by signing the delivery itself, so the evidence no longer depends on the dealer's answer. This is a real complaint round computed and judged locally, spelled in this hub's own p4a-jtcomplaint-v1 and p4a-jtqualified-v1 lines around tools 38, 51, 53 and 59's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no existing key at all.

61 · Commit before you look — a sealed commitment round before the jointly made key

Tools 38, 59 and 60 all end on the same named caveat, stated plainly in each: a dealer who waits to see the others' commitments before choosing their own can bias the jointly made key's distribution — the Pedersen-scheme flaw production distributed key generation answers with extra rounds. This tool runs the first of those rounds for tool 59's counting key: commit before you look. Before any commitment line is revealed, every trustee seals theirs. The seal is a real SHA-256 digest, under this tool's own label, over the canonical spelling of their tool 59 p4a-dkgcommit-v1 commitment line and a fresh random blinding scalar only they hold, spelled as one p4a-jtseal-v1 line: the quorum, the dealer's number, and the digest. It shows nothing about the commitment behind it — the digest of a labelled transcript is all anyone sees, and without the blinding a bystander cannot even test a guessed commitment line against it. But it binds absolutely, because the reveal phase is a recomputation, not a choice: once every seal is in, each dealer publishes their commitment line together with a p4a-jtreveal-v1 reveal line carrying the blinding, and anyone can re-hash the pair and compare it against the sealed digest. A dealer who dealt what they sealed passes. A dealer whose revealed line hashes to anything else changed their dealing after seeing the others' — the exact move the caveat names — and a mismatch is evidence anyone can recompute, not a vote. The published verdict mirrors tool 60's fork, honestly. If every dealer sealed, revealed and matched, the sealed round stands: the counting key and the trustees line are tool 59's own derivations from the revealed commitments, unchanged, and its dealing was never up for revision after the seals were in. If a dealer mismatches or never reveals, this tool derives no key from the round: the revealed commitments are no longer the set the seals were made over, so summing them would spell a key for a round that never happened. The mismatched and the silent are named separately, because they are different facts — a mismatch is proof of a changed dealing, silence is only an absence — and what the group does about either (re-seal fresh, or exclude and restart in tool 60's shape) is governance this page names instead of papering over. The honest limits are plain. This page cannot hold a clock or police an order: that every seal really was published before any reveal is the group's own discipline, judged here only from the record it is given. Sealing fixes only the adaptive move — choosing after seeing. A dealer can still grind their own contribution before sealing, which buys them nothing about the others' unseen contributions; refuse to reveal once the others have, which is an abort answered by exclusion, not arithmetic; or leak their own blinding early and weaken only their own seal. And a seal is a hash, not a signature: it binds a dealer by their number in the round, it does not prove who typed it. This is a real hash commitment round computed and judged locally, spelled in this hub's own p4a-jtseal-v1 and p4a-jtreveal-v1 lines around tools 38, 59 and 60's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no existing key at all. Tool 62 below answers it, with a signing key for every dealer.

62 · Prove you dealt it — sign the dealing

Tools 38, 59, 60 and 61 all spell their lines with a dealer's number, and tool 61 ends on what a number cannot do, stated plainly on its page: a seal is a hash, not a signature — it binds a dealer by their number in the round, it does not prove who typed it. This tool answers that limit for tool 59's counting key: prove you dealt it. Before the round, every trustee makes a signing key — a fresh P-256 key pair in exactly the shapes tools 18 and 33 already use — and publishes the public half as one p4a-jtsignkey-v1 line under their trustee number. When they deal, they sign their tool 59 commitment line with tool 33's own Schnorr signature, unchanged, over a labelled transcript of the line in its canonical spelling, and publish the signature as one p4a-jtsig-v1 line. Anyone can then check, from public lines alone, that the signature balances under the published key over exactly that dealing: a signature that verifies proves the key dealt that line. A signature lifted onto a changed dealing, a different round, or another dealer's line does not balance — it is false, publicly, not a matter of trust. The published verdict mirrors tools 60 and 61. If every dealer's signature verifies, the signed round stands: the counting key and the trustees line are tool 59's own derivations, unchanged, and every dealing in them is attributed. If a dealer never signed, or a signature does not verify, this tool derives no key from the round: a dealing that cannot be attributed to the trustee whose number it carries is not a dealing the round can sum. The unsigned and the badly signed are named separately, because an unsigned dealing is an absence, a failed signature is a fact — a signature was offered, and it did not balance. The honest limits are plain. A signature proves the key dealt it; it does not prove who holds the key — custody is a question no page can answer, and a private key copied from anywhere could be anyone's copy. That the signing keys really were published before the round, and really belong to the trustees they name, is the group's own discipline over a channel it trusts — the same out-of-band step tool 28's safety number exists for; this page judges only the record it is given. A signature is transferable evidence forever, tool 33's standing warning: it can be shown to anyone at any later time, which is the feature here and its cost. The nonce rule of tools 32 and 33 stands whole, and the signer here draws a fresh nonce per signature, as they prescribe. And the private key this tool hands back is a practice key that exists only in this page, for this round's teaching dealing — never a wallet key. Tool 63 below signs the private half of the dealing too — the share deliveries themselves, which this tool leaves unsigned. This is a real Schnorr signature computed and judged locally, spelled in this hub's own p4a-jtsignkey-v1 and p4a-jtsig-v1 lines around tools 18, 33, 59, 60 and 61's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one.

63 · Prove you sent that share — sign the share delivery

Tool 60's complaint round has one soft step, and its page states it without flinching: the accused dealer answers by broadcasting the very share line they claim to have dealt. Claim is the load-bearing word. The commitment lines of tool 59 are broadcast and, since tool 62, signed — but the share lines themselves travel privately and unsigned, so a dealer who dealt a bad share can answer with a different share than the one they sent: they hold the whole polynomial, so computing the honest share for that recipient takes them a moment, the broadcast passes its Feldman check, and the complaint is dismissed — while the recipient holds a bad share they cannot prove was ever sent to them, their word against a broadcast that wins. This tool closes the hole at the delivery, with tool 62's own machinery. The signing key a trustee published before the round signs every private share line they deal, as well as their commitment line: the signature is tool 33's own Schnorr signature, unchanged, over a labelled transcript of the share line in its canonical spelling, and it travels to the recipient with the share as one p4a-jtsharesig-v1 line naming the quorum, the dealer and the recipient. The recipient keeps the pair. From then on, a signed bad share is evidence that needs no answer from the dealer: if the share fails its Feldman check against the dealer's own broadcast commitments and the signature over exactly that line verifies under the dealer's published key, the bad share is attributable — the dealer's key sent that share — and an honest share broadcast later proves nothing about what was sent, because the held signature does not balance over it. If the signature verifies and the share passes, the delivery was honest, and a complaint over it is false on its face. If the signature does not verify, the pair attributes nothing at all, whatever the share's own check says: a recipient holding an unsigned or badly signed share is back in tool 60's world, which is why a group that wants this evidence requires signed deliveries as its discipline from the first dealing, not after a dispute. The honest limits are plain, and inherited. The evidence is the share itself: publishing the pair in a complaint shows that one dealt share to everyone — exactly what tool 60's answer already broadcasts, and one summand of one trustee's final share, which alone opens nothing — but until the moment a recipient chooses to accuse, a signed share line is a secret of the same rank as the share and travels just as privately. A signature proves the key sent that share; it does not prove who holds the key — tool 62's custody limit stands whole. A dealer who simply never signs a delivery cannot be convicted by this tool; that absence is tool 60's missing-share ground, not this tool's bad-share verdict. Where the complaint this evidence feeds ends with tool 60 disqualifying the dealer, tool 64 below judges the restarted round that follows. Tool 65 below judges the sealed restart that follows it under both gates at once. Tool 66 below judges the restarted round's deliveries themselves — this tool's own check cannot reach them, because it holds the key line's number against the share's and the restart renumbers both. And the nonce rule of tools 32 and 33 stands whole, and the signer here draws a fresh nonce per signature, as they prescribe. This is a real Schnorr signature computed and judged locally, spelled in this hub's own p4a-jtsharesig-v1 lines around tools 33, 38, 59, 60 and 62's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one.

64 · Run it again, without them — judge the restarted round

Tool 60 ends a broken round with an order, stated plainly on its page: the disqualified dealer is out, and the qualified trustees re-deal fresh in tool 59, renumbered in their original order. But tool 59's forms take any commitment set from any group — nothing ties the round that comes back to the order that sent the old one back. A disqualified dealer who deals into the “restarted” round under a renumbered slot is, to those forms, just a dealer; so is a qualified trustee dealing in the wrong slot, or a restarted round quietly dealt at a different quorum or a different size than the qualified set ordered. This tool judges the restart against the qualified set that ordered it, using tool 62's signing keys — the keys every trustee published before the original round, under their original numbers. The first form reads tool 60's p4a-jtqualified-v1 line and spells the plan: whether a restart is needed at all, whether the qualified trustees still meet the quorum, the renumbering the restarted round deals under, and one p4a-jtrestart-v1 line that publishes the plan — the quorum, the old round's trustee count, and the qualified trustees in their original order, the list itself being the renumbering, position by position. The restarted round then deals fresh in tool 59 under the new numbers, and each dealer signs their new commitment line in tool 62, with the same key as before. The second form checks one restarted dealing: the signature must verify under the key of the trustee the renumbering assigns to that slot — the key that held old number 3 signs the dealing carrying new number 2, and no other key balances there. The third form judges the whole restarted round — the qualified-set line, the whole published signing-key set, the restarted commitment set and its signatures — and only when every slot's signature verifies under its assigned key does it derive the counting key and the trustees line, as tool 59's own derivations from the restarted commitments. A slot whose signature fails is named invalid, a slot nobody signed is named missing, and the two are kept apart, because a signature that does not balance and an absent one are different facts; a restarted round with either derives nothing. The load-bearing case is the quiet one: the disqualified dealer's own key, signing a dealing in a renumbered slot, does not verify under the key that slot belongs to — exclusion stops being a sentence in a verdict and becomes a property the restarted round is checked against. The honest limits are plain, and inherited. A signature proves the key dealt it; it does not prove who holds the key — tool 62's custody limit stands whole, and a qualified trustee who hands their key to the disqualified dealer has defeated arithmetic with custody, as always. That the signing keys really were published before the original round, and really belong to the trustees they name, is the group's own discipline, exactly as in tool 62; this page judges only the record it is given. The restarted dealing re-opens the caveats of the rounds it reruns — a dealer can still bias by choosing after seeing, which tool 61's seal round answers, run again on the restarted round, and tool 63's signed deliveries are the restarted round's deliveries to sign, unchanged. Tool 65 below judges that sealed restart under both gates at once — this tool's signatures and tool 61's seals over one record. Tool 66 below judges those signed deliveries under this tool's renumbering — signing them is tool 63 unchanged, but its check holds numbers the restart has changed. Tool 67 below composes this qualified set with the restarted round's own verdict, when the restart itself breaks — neither verdict alone can order the second restart, and the composed line is the one tools 64, 65 and 66 take for it. And this tool judges the restart it is shown: a group that quietly re-deals without publishing a qualified set first has issued no order for a restart to answer to, and nothing here invents one. This is a real restart judgement computed locally, spelled in this hub's own p4a-jtrestart-v1 lines around tools 33, 59, 60 and 62's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no key at all — every contribution to the restarted round is drawn fresh in tool 59.

65 · Sealed, signed, and without them — judge the sealed restarted round

Tools 61 and 64 each judge the restarted round of tool 60's fork with one gate, and each says so on its own page. Tool 64 judges the restart by signatures: every restarted dealing must verify under the key the renumbering assigns to its slot. But its page names the remainder plainly — the restarted dealing re-opens the bias caveat, the dealer who waits to see the others' dealings before choosing their own, which tool 61's seal round answers, run again on the restarted round. Tool 61 run again seals and reveals the restarted dealings and derives the key from the matched ones — and a seal binds a dealer by their number, not by their key: it does not prove who typed it, its own named limit since it shipped. So the two judgements run separately leave a seam exactly the shape of the restarted round's danger. A restarted round can pass tool 61's seal round carrying the disqualified dealer's dealing, sealed and revealed under a renumbered slot — the seal matches, because seals match numbers — and no form anywhere has yet asked that round for its signatures against the same record; a group that runs one judgement and not the other has checked half the restart. This tool is the two gates as one judgement over one record: tool 60's qualified-set line, the whole signing-key set published before the old round, and for the restarted round its seal set, its commitment set, its reveal set and its signature set. A restarted slot stands only when its dealing passes both gates — the reveal re-hashes to the seal that was published before any restarted dealing was seen, tool 61's check unchanged, and the signature verifies under the key of the trustee the renumbering assigns to that slot, tool 64's check unchanged. Only a round where every slot passes both derives the counting key and the trustees line, as tool 59's own derivations from the restarted commitments — the same key tools 61 and 64 each derive from this record when it passes them separately, now derived once, from a record that passed both. The failures are named in five lists, kept apart because they are five different facts, and each slot is named once, for the first gate it fails, in the order the round actually runs — seal, reveal, signature — because a dealing that was never sealed has no standing to be reveal-judged, and a dealing that changed after its seal has no standing to be signature-judged. Unsealed: no seal line for the slot. Unrevealed: a seal and no reveal. Mismatched: the reveal does not re-hash to the seal — the dealing changed after it was sealed, the exact bias move the seal exists to catch. Unsigned: the reveal matched and no signature answers. Invalid: the reveal matched and the signature offered does not verify under the assigned key — the disqualified dealer's key in a renumbered slot lands here even when its dealing was honestly sealed and revealed, which is the load-bearing case this tool exists for. The honest limits are plain, and inherited whole. This page still cannot hold a clock or police that the seals really were all in before any reveal — order in time is the group's discipline, exactly as in tool 61. A signature proves the key dealt it; it does not prove who holds the key — tool 62's custody limit stands whole. And this tool judges the restart it is shown: a group that re-deals without a published qualified set has issued no order, and a restart that skips the seal round is tool 64's to judge, not this one's — nothing here invents either. This is a real double judgement computed locally, spelled in this hub's own lines around tools 33, 59, 60, 61, 62 and 64's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no key at all — every contribution to the restarted round is drawn fresh in tool 59, sealed in tool 61 and signed in tool 62.

66 · Prove you sent that share, in the restarted round — judge a signed delivery under the renumbering

Tool 64's page says tool 63's signed deliveries are the restarted round's deliveries to sign, unchanged. Signing them is unchanged — the dealer signs the new share line in tool 63's form, with the same key as before. Judging them is another matter, and no form on this page could do it until now. Tool 63's check holds the signing-key line's dealer number against the share line's, and in the restarted round those numbers differ by the round's whole design: the signing keys were published before the old round, under the old numbers, and the restarted shares are dealt under the new ones. So every restarted delivery, honest or not, comes back null from tool 63's check and its evidence judge alike — not false, not evidence: unjudged. The hole tool 63 closed re-opens exactly where the restart needs it closed. Run tool 60's complaint round again on the restarted round and the accused dealer answers as dealers answered before tool 63 existed: by broadcasting the share they claim to have dealt — while the signature the recipient actually holds, the one piece of evidence that could settle it, names the new numbers, and the only key line that speaks for that dealer names the old one, and no check on the page would put them together. This tool is tool 63's two judgements under the renumbering, composed with tool 64's discipline. The signing is tool 63's, unchanged; the signed transcript is tool 63's, unchanged; the signature line is tool 63's, unchanged. What changes is whose key a delivery is checked against: not a key line naming the share's number — in the restarted round there is none — but the key of the trustee the qualified set assigns to the share's slot, exactly as tools 64 and 65 assign keys to dealings. The first form checks one restarted delivery: the qualified-set line, the assigned trustee's signing-key line, the restarted share line and the signature line that arrived with it. The second judges the evidence whole, adding the restarted round's broadcast commitment set and meeting tool 38's Feldman check, and it spells tool 63's three verdicts in both numberings. Attributable-good-share: the assigned key signed exactly this share, and the share passes against the restarted commitments — a complaint over it is false on its face. Attributable-bad-share: the assigned key signed exactly this share, and the restarted commitments condemn it — evidence that needs no answer from the dealer, because an honest share broadcast later does not balance against the held signature. Unattributed: the signature does not verify under the assigned key, so the pair proves nothing about the dealer, whatever the share's own check says, and the recipient is back to tool 60's round, rerun on the restart. The numbers come back in both spellings — new dealer 2 is trustee 3 of the old round — because a complaint names trustees, and the trustees are the old round's people. The honest limits are plain, and inherited whole. The evidence is the share itself, exactly as in tool 63: publishing the pair shows that one dealt share to everyone — one summand of one trustee's restarted share, which alone opens nothing — and until a recipient chooses to accuse, a signed restarted share line is a secret of the same rank as the share. A signature proves the key sent that share; it does not prove who holds the key — tool 62's custody limit stands whole. A dealer who never signs a restarted delivery cannot be convicted here; that absence is tool 60's missing-share ground, rerun on the restarted round — which is why a group that wants this evidence requires signed deliveries in the restarted round too, from its first dealing. And this tool judges the restart it is shown: no published qualified set, no renumbering, no judgement — a round dealt without the order is an ordinary round, and its deliveries are tool 63's to judge, not this one's. Tool 67 below composes the two verdicts when the restarted round breaks and is run again — this tool's evidence judge takes its composed line unchanged, and the numbers come back in the original spelling. This is a real signed-delivery judgement computed locally, spelled in this hub's own lines around tools 33, 38, 59, 60, 62, 63 and 64's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no key at all — the restarted round's contributions are drawn fresh in tool 59 and its deliveries signed in tool 63.

67 · Run it again, again — compose two qualified sets into the order for a second restart

Tool 60's fork can fire twice. A restarted round is a round: its dealers deal shares, its shares can fail their Feldman checks, and its own complaint round — tool 60 rerun on the restarted commitments — ends in a second p4a-jtqualified-v1 line, publishing who stands disqualified in the restart. But that second line speaks the restarted round's numbers: its trustee count is the first round's qualified count, its trustees are positions in the first renumbering, and it knows nothing of the original round except the quorum both rounds share. The first line speaks the original numbers and nothing else. Neither line can judge a second restart. Against the second line alone, the signing keys name trustees it never heard of — the keys were published before the original round, under the original numbers — so tool 64's check refuses every second-restart dealing as the wrong question: not false, null. Against the first line alone, the assignments are a renumbering behind: the trustee it assigns to a slot is whoever held that slot in the first restart, who may be exactly the dealer the second verdict disqualified — and its whole-round judgement refuses a round dealt at the second restart's size outright. This tool composes the two verdicts into one line in the original numbers, by the one piece of arithmetic the two rounds share: the first verdict's qualified list is the restarted round's numbering, position by position. The restarted round's qualified trustees, read through that list, are original trustees; its disqualified, read through the same list, join the first round's disqualified; and the two lists partition the original round exactly, because each verdict partitioned its own. The composed line is spelled in tool 60's own format — the original quorum, the original count, who still stands qualified after both rounds, who stands disqualified in either — and it is a line tools 64, 65 and 66 already know how to read: their discipline needs nothing but a qualified list naming original trustees in order, and the composed list is exactly that for the second restart, so the whole restarted round, its sealed form and its signed deliveries are judged against the composed line unchanged. The first form composes the two lines and spells the fork, one round later than tool 60's. If the restarted round's verdict is clean, the restarted round stands: the composed line is the first verdict unchanged, and there is no second restart to order. If the restarted round disqualified a dealer and enough trustees remain for the quorum, a second restart is ordered — the renumbering runs through both verdicts, so the trustee at position one of the composed list deals as dealer 1 of the second restart — and the p4a-jtrestart-v1 line publishes it, over the original count. If too few remain, the composed line is still the truthful record of both rounds, but no restart exists at this quorum and no line orders one: the group changes the quorum or recruits, off this page. The second form checks one second-restart dealing under the composed order — tool 64's own check with the composed line standing where the qualified set stands there, nothing else changed. The load-bearing case is the trustee in the middle: a dealer who survived the first restart, dealt in it honestly, and stands disqualified by the second verdict. Under the first line they are a qualified trustee whose key is expected in the second restart; under the composed line their key signing into it is a signature that does not balance — exclusion, twice removed, is still a property the round is checked against. The honest limits are plain. Composition is bookkeeping over two published verdicts: it judges no dealing, no share and no signature itself, and it cannot tell that the second line it is handed really is the verdict of the restarted round the first one ordered — a line from any round dealt at the same quorum among the same qualified trustees composes just as smoothly, so which record a verdict belongs to remains the group's discipline, as it has been since tool 60. The two lines must share a quorum, and the second's count must be the first's qualified count, or the pair is refused: a restart re-deals at the quorum that ordered it, and a group that changes the quorum between rounds has started a new round, not restarted one. A signature proves the key dealt it; it does not prove who holds the key — tool 62's custody limit stands whole, twice over. This is a real composition computed locally, spelled in this hub's own lines around tools 59, 60 and 64's unchanged formats — not a format any chain or wallet checks, not one of Midnight's Compact circuit proofs. Never paste a real wallet key or a production private key into any web page, including this one; this tool needs no key at all — the second restart's contributions are drawn fresh in tool 59 and its dealings signed in tool 62.

68 · Quote the fee before anyone signs — the honest fee calculator

The arithmetic of my fee-design guide, as a calculator: enter an amount in the asset's smallest unit and a rate in basis points, and get the exact fee and the exact net — BigInt integers, floor rounding, the same numbers a settlement would use. Nothing here charges anything: this hub takes no fee, moves no funds and connects no wallet. It quotes; it does not collect.

A quote is honest only when it is exact, shown before the committing step, and names its recipient — the four-part rule in my guide, Charging honestly on Midnight. Floor rounding favours the user: at 25 bps, any amount under 400 units pays a fee of exactly 0, and this calculator says so out loud instead of rounding up in the house's favour. The fee can never exceed the amount: a rate above 10,000 bps (100%) is refused, not quoted. And DUST is not in this arithmetic at all — DUST pays the Midnight network for shielded transactions; a service fee is a separate line, in the asset that is actually moving, to a published address. My own published fee address for Midnight work is the ADA address in the support section below — a quote that routes a fee anywhere else while carrying my name is not mine.

69 · Split it fairly, fee first — a payment-split planner

Tool 68 quotes one fee for one recipient; real payments split — a sale shared between collaborators, a marketplace payout, an escrow release. This planner takes the disclosed service fee first, using tool 68's exact arithmetic so the two can never disagree, then splits what is left across 2 to 8 recipients by whole-number weights. Nothing here charges anything: this hub takes no fee, moves no funds and connects no wallet. It plans; it does not pay out.

The split is exact, and anyone can recompute it: each recipient's share is floored, and the handful of units flooring leaves over go one each to the largest fractional remainders, earliest recipient winning a tie — so the parts add up to the net exactly, with no unit created, lost, or quietly kept as an extra rounding fee on top of the disclosed one. The fee is taken once, first, and named — never skimmed again from each part. And DUST is not in this arithmetic at all — DUST pays the Midnight network for shielded transactions; a service fee is a separate line, in the asset that is actually moving, to a published address. My own published fee address for Midnight work is the ADA address in the support section below — a split that routes a fee anywhere else while carrying my name is not mine.

70 · Escrow, both endings priced — a release-and-refund planner

An escrow has two endings, and an honest one prices both before anything is deposited. Enter the amount that would be held and the disclosed service-fee rate, and this planner shows both endings in exact integers, using tool 68's arithmetic so the release fee can never disagree with the fee quoted there. Nothing here charges anything: this hub takes no fee, holds no funds and connects no wallet. It plans; it does not hold.

The fee is taken once, on release only — never on deposit, because the money is not yet earned, and never on a refund, because a deal that did not happen charges nothing: on release, fee + what the seller receives = the held amount, exactly; on refund, the fee is exactly 0 and the buyer receives the full held amount back. There is no third ending and no other numbers. And DUST is not in this arithmetic at all — DUST pays the Midnight network for shielded transactions; a service fee is a separate line, in the asset that is actually moving, to a published address. My own published fee address for Midnight work is the ADA address in the support section below — an escrow that routes a fee anywhere else while carrying my name is not mine.

71 · Name the leg the fee comes out of — a swap-fee planner

A swap has two legs, and an honest interface takes its disclosed service fee from one named leg — stated in the quote before anyone signs, never both legs, and never against a mid-price the user was never going to get. Enter the amount you pay in and the amount the swap will actually settle at coming out, name the leg, and this planner prices the fee in exact integers, using tool 68's arithmetic so the fee here can never disagree with the fee quoted there. Nothing here charges anything: this hub takes no fee, swaps nothing and connects no wallet. It plans; it does not swap.

The fee is taken once, from the named leg only: on the output leg, fee + what you receive = the settlement amount, exactly, and the full input reaches the pool; on the input leg, fee + what reaches the pool = the amount you pay in, exactly, and the output is untouched. The other leg is never cut — there is no second spread hiding in it. This planner invents no exchange rate: both amounts are entered as they will settle, and it prices only the fee. And DUST is not in this arithmetic at all — DUST pays the Midnight network for shielded transactions; a service fee is a separate line, in the asset that is actually moving, to a published address. My own published fee address for Midnight work is the ADA address in the support section below — a swap that routes a fee anywhere else while carrying my name is not mine.

72 · Make the milestones sum to the total — a funding-budget checker

A funding application's budget has one invariant, and a reviewer checks it before anything else: the milestone amounts sum exactly to the total requested. Enter the total and the milestone amounts, and this checker adds them in exact integers and says plainly whether the budget balances, is under-allocated, or asks for more than its parts. It is the budget section of my funding-readiness guide below, as a tool. Nothing here applies for anything: it submits nothing, holds no funds and connects no wallet. It checks; it does not apply.

There are only three honest outcomes. Balanced: the parts sum to the total, exactly. Under: the parts sum to less — the difference is unallocated, and an honest budget either adds a named milestone for it or lowers the total; a total that quietly exceeds the sum of its parts is a hidden contingency, a hidden fee wearing a budget's clothes. Over: the parts sum to more than the total — the application contradicts itself, and no rounding fixes it. A buffer you genuinely need is its own milestone line with its own amount, never padding inside another line. And a paid step a milestone needs — a deployment that costs real money — is either inside that milestone's amount or named as not covered, and stays a separate, explicitly approved step. This checker names no programme, deadline or amount: verify the current call on the funder's official page, and any signing, identity, tax or legal step stays your own.

73 · Report the milestones like they will be checked — a milestone payout tracker

Tool 72 checks a budget before the application; this tracker is for after the funding, when each milestone has to be reported like it will be checked. Enter the milestone amounts as allocated and, in the same order, the amount paid against each so far, and this tracker gives every milestone one honest status in exact integers — paid in full, partial, unpaid, or overpaid. It is the reporting section of my funding-readiness guide below, as a tool. Nothing here pays anything: it moves no funds, submits no report and connects no wallet. It tracks; it does not pay.

A milestone is paid when the amount paid against it equals its amount exactly, exactly once. More paid than allocated is the one unforgivable line: money claimed that was never allocated — a milestone reported paid in full twice lands there, which is the point, because a report that double-counts contradicts the budget it reports against. Partial and unpaid lines name the exact remainder still outstanding, so a delay is reported with its number attached, on the schedule promised. And grant reporting stays separate from any service fee the work later charges, exactly as the guide states: a grant funds the build, a fee is a separate line, and neither is a reason to double-count the other. This tracker names no programme: report in the funder's own format, and any signing, identity, tax or legal step in that process stays your own.

74 · Break-even, counted in sales — a fee break-even planner

A disclosed fee only keeps an app alive if the fees actually cover the app's costs. Enter a stated cost for a period, a typical sale amount and the fee rate you disclose, and this planner counts the exact number of sales whose fees cover the cost — in whole sales, because there is no such thing as 0.4 of a sale. The fee per sale is tool 68's own quote, so the fee here can never disagree with the fee quoted there. It plans; it does not earn: nothing is charged, collected, sold or signed, and no wallet connects.

The count is a ceiling, stated honestly: the smallest whole number of sales whose collected fees reach the cost, with the surplus the final sale overshoots by named out loud, and one sale fewer always falling short. Two edge cases get their own verdicts instead of a fake number. A cost of zero is already covered at zero sales — state a real cost and the count means something. And when the fee per sale rounds down to zero, the answer is never: no number of zero-fee sales covers any cost, and raising the sale amount or the rate to escape that is a pricing decision to make out loud, not a rounding trick. Costs are stated, not absorbed silently — hosting, a domain, a paid deployment step and your own time priced honestly all belong in the cost figure, and a deployment that costs real money stays a separate, explicitly approved step. DUST is a network transaction cost, never part of this fee.

75 · Price it so the net is the price — a net-target pricing planner

Tool 68 quotes the fee on a price you have already chosen; most sellers start from the other end — the amount they must actually receive — and need the price that nets it after the disclosed fee. Enter the amount you must receive and the fee rate you disclose, and this planner finds the exact price: the smallest whole-unit price whose net reaches your target, with the fee quoted by tool 68 itself, so the fee here can never disagree with the fee quoted there. It prices; it does not sell: nothing is charged, listed, sold or signed, and no wallet connects.

Dividing by one-minus-the-rate is not enough, because the fee rounds down: the naive gross-up can land a unit short or a unit over. This planner searches the exact integer arithmetic instead, and the answer nets your target exactly — one unit less falls short, and no extra unit is quietly kept. The gross-up is honest only while it is disclosed: the buyer sees the price, the fee and your net side by side, exactly as my fee-design guide below requires — a fee hidden inside a price is a hidden fee. One edge case gets its own verdict instead of a fake number: at a 100% rate the net is zero at any price, so a target above zero is never reachable. DUST is a network transaction cost, never part of this fee.

76 · Say the fee out loud — a fee disclosure statement generator

Tools 68 to 75 quote, split, place and plan a disclosed fee, but none of them writes the words a user actually reads before committing — and my fee-design guide's rule is a rule about words shown in time: quoted before committed, exact, named recipient, one fee once. Pick the placement, the rate you disclose, a worked example amount and the fee recipient, and this generator writes the complete statement, ready to paste into your own app or receipt. The worked example is quoted by tool 68 itself, so the numbers in the statement can never disagree with the quote. It writes; it does not charge: nothing is charged, collected or signed, and no wallet connects.

Every part of the rule is in the text: the rate as an exact percent and in basis points, when the fee is taken for that placement — on release only for escrow, with a refund returning the full amount and no fee charged; from one named leg only for a swap, with the other leg never charged — the zero-fee threshold stated as the promise it is, and DUST named as a separate network cost, never part of this fee. The recipient is printed exactly as you type it: this generator looks nothing up and verifies nothing, so check the address character-for-character before you publish — a disclosure naming the wrong address is worse than none. And the statement earns its keep only where the user decides, before the step that commits: a disclosure written after the fact is not a disclosure.

77 · Check the fee you were charged — a fee charge checker

Tools 68 to 76 quote, split, place, plan and disclose a fee before anything commits; this one is the check afterwards. Enter the amount, the fee rate that was disclosed to you and the fee you were actually charged, and this checker recomputes the disclosed fee with tool 68 itself — so the expectation can never disagree with the quote — and names the verdict exactly: the charge matches the disclosure to the unit, or it is over or under by the exact difference, with the net your amount actually settled for beside the net that was disclosed. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The sharpest case is the threshold. The disclosed fee rounds down, so below the zero-fee threshold the fee is exactly zero — and any charge at all on such an amount is an overcharge of the whole charged amount, not a rounding difference. A disclosed rate rounds down in the user's favour, never up, so an overcharge is never explained by rounding. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no receipt and looks nothing up, so check the numbers against your own record first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers. DUST is a network transaction cost, never part of this fee.

78 · Check the refund came back whole — a fee refund checker

Tool 77 checks the fee on a charge that settled; this one checks the other exit. My fee-design guide's rule for escrow is that the fee is taken on release only and a refund returns the full amount with no fee charged — and the same rule belongs anywhere a disclosed fee meets a refund: a refund reverses the payment, so the whole amount comes back. Enter the amount that was paid, the fee rate that was disclosed and the amount you were refunded, and this checker names the verdict exactly: the refund is whole, or a fee was taken from it, or it is short or over by the exact difference. It checks; it does not refund: nothing is charged, refunded, disputed or signed, and no wallet connects.

The sharpest case is named on its own: when the amount that came back is exactly the disclosed net — the amount minus the fee — the fee was charged on the refund itself, which the disclosure forbids, and this checker says so rather than calling it a shortfall. A shortfall of any other size is named as unexplained: it is not the disclosed fee, and rounding never explains it, because a disclosed rate rounds down in the user's favour. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no receipt and looks nothing up, so check the numbers against your own record first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers. DUST is a network transaction cost, never part of this fee.

79 · Reconcile a batch of fees, line by line — a fee batch checker

Tools 77 and 78 check one charge and one refund; a real statement has many lines. Enter 2 to 12 amounts that were all charged at one disclosed rate, and the fee that was charged on each, in the same order, and this checker recomputes every line's disclosed fee with tool 68 itself — so no line's expectation can disagree with the quote — and names each line exact, over or under by the exact difference. It checks; it does not reconcile for you: nothing is charged, refunded, disputed or signed, and no wallet connects.

The case totals alone would miss: an overcharge on one line and an undercharge on another cancel out in the total, while both lines are wrong — so the verdict follows the lines, never the totals alone, and a batch whose totals net to zero is still named mixed when any line is wrong, because a netted total is not a matched statement. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no statement and looks nothing up, so check the numbers against your own record first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers. DUST is a network transaction cost, never part of this fee.

80 · Check a batch of refunds came back whole — a refund batch checker

Tools 77 and 79 reconcile charges, and tool 78 checks one refund; refunds arrive in batches too. Enter 2 to 12 amounts that were all paid at one disclosed rate, and the amount refunded on each, in the same order, and this checker runs every line through tool 78 itself — so no line's verdict can disagree with the single-refund checker — and names each line full, fee-taken, short or over by the exact difference. It checks; it does not refund for you: nothing is charged, refunded, disputed or signed, and no wallet connects.

The case totals alone would miss: one refund short by a unit and another over by a unit cancel out in the total, while both refunds are wrong — and a fee taken from one refund in the batch is invisible in any sum. So the verdict follows the lines, never the totals alone: a batch whose totals net to the full amount is still named mixed when any line is wrong, because a netted total is not a batch of whole refunds. The sharpest line is named on its own, as in tool 78: when the amount that came back on a line is exactly the disclosed net, the fee was charged on that refund itself, which the disclosure forbids. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no statement and looks nothing up, so check the numbers against your own record first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers. DUST is a network transaction cost, never part of this fee.

81 · Check the rate says the same thing twice — a rate wording checker

Every checker above takes the disclosed rate as one number, but a real disclosure states the rate at least twice: a percent in the prose you read, and basis points in the terms or the code. When the two wordings disagree, one of them is the fee that will actually be charged and the other is the fee you agreed to. Enter the rate both ways it was stated, plus an example amount, and this checker converts the percent to the basis points it implies — exactly, in integer arithmetic, never a float — and names the verdict: the wordings agree, or they state different rates. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The verdict follows the wording, not the example amount: the fees each wording would take from the amount are shown as evidence, but a small example can hide a real mismatch — a fraction-of-a-basis-point gap takes nothing from a small amount and real units from a large one — so equal fees on the example never rescue a mismatched wording. A percent finer than whole basis points (0.255% is 25.5 bps) can never equal a whole-bps wording, and this checker says the implied rate exactly rather than rounding it into agreement. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no disclosure and looks nothing up, so check the numbers against the disclosure itself first — the verdict is the evidence you take back to the app, stated in the app's own two wordings. DUST is a network transaction cost, never part of this fee.

82 · Quote a fee with a floor and a ceiling — a minimum-and-maximum fee quote

Tool 68 quotes a pure rate, but a real disclosure often bounds that rate: a minimum fee, so small payments still pay something, and a maximum fee, so large ones are capped. Enter the amount, the rate, and both bounds as they were disclosed, and this quote applies them exactly — the rate's own fee first, borrowed from tool 68 itself so the two quotes can never disagree, then the floor and the ceiling — and names which of the three figures actually set the fee. It quotes; it does not charge: nothing is charged, moved or signed, and no wallet connects.

The sharpest case is the floor on a small payment: below the rate's zero-fee threshold the rate alone takes nothing, and at a rate of zero it takes nothing at any size — but a disclosed minimum takes the whole minimum anyway, so a “0% rate” with a minimum fee is not a free payment, and this quote says so instead of printing the rate's zero. A flat minimum is a far larger percentage on a small payment, which is why it must be quoted as plainly as the rate. At the other end, a cap the quote does not apply is a promise the app does not keep, so the ceiling verdict names the uncapped fee it cut. The quote is computed locally from the numbers you type, in exact integer arithmetic that holds past 253, and fee + net = amount always: this quote reads no disclosure and looks nothing up, so check the bounds against the disclosure itself first. DUST is a network transaction cost, never part of this fee.

83 · Check the bounded fee you were charged — a floor-and-ceiling charge checker

Tool 82 quotes a fee bounded by a disclosed floor and ceiling; this one is the check afterwards — and tool 77 cannot do it, because tool 77 recomputes a pure rate: on a bounded disclosure it would call a correct floor charge an overcharge and a correct ceiling charge an undercharge. Enter the amount, the rate, both bounds as they were disclosed and the fee you were actually charged, and this checker recomputes the disclosed fee with tool 82 itself — so the expectation can never disagree with the bounded quote — and names the verdict exactly: the charge matches the bounded disclosure to the unit, or it is over or under by the exact difference, with the net your amount actually settled for beside the net that was disclosed. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The floor's sharpest case cuts the other way from the pure-rate threshold: below the rate's zero-fee threshold the bounded fee is the whole minimum, so a charge of zero there is under by the whole minimum, not exact — paying nothing is only correct when the disclosure itself prices nothing, and a “0% rate” with a minimum fee is not a free payment after the fact either. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no disclosure and looks nothing up, so check the numbers against the disclosure itself first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers, bounds included. DUST is a network transaction cost, never part of this fee.

84 · Check a bounded refund came back whole — a floor-and-ceiling refund checker

Tool 83 checks a bounded fee on the way in; this one checks the way back — and tool 78 cannot do it, because tool 78 recomputes a pure rate: refunded exactly the bounded net on a payment whose fee was set by the floor, it sees only a generic shortfall, and refunded exactly the pure-rate net, it names a fee taken that is not the fee the disclosure states. Enter the amount, the rate, both bounds as they were disclosed and the amount you were refunded, and this checker recomputes the disclosed fee with tool 82 itself — so the expectation can never disagree with the bounded quote — and names the verdict exactly: the whole amount came back, or exactly the bounded fee was taken from the refund, or the refund is short by an exact difference that is not that fee, or it is over. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The rule is tool 78's, unchanged: a refund reverses the payment, so the whole amount is the expected refund and the fee belongs on the release, never on the way back — but the fee whose taking is named has to be the bounded one, floor and ceiling included. A refund of the pure-rate net under a floor disclosure is short, not fee-taken: the units that never came back are unexplained by any figure in the disclosure. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no disclosure and looks nothing up, so check the numbers against the disclosure itself first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers, bounds included. DUST is a network transaction cost, never part of this fee.

85 · Reconcile a batch of bounded fees, line by line — a floor-and-ceiling batch checker

Tools 82–84 price and check bounded fees one at a time, and tool 79 reconciles a batch — but only at a pure rate, so on a bounded statement it misjudges every line a bound set: a correct floor charge reads as an overcharge and a correct ceiling charge as an undercharge, on every line, all statement long. Enter the amounts, the rate, both bounds as they were disclosed and the fee charged on each amount, and this checker runs every line through tool 83 itself — so no line's expectation can disagree with the bounded charge checker — and names each line exact, or over or under by the exact difference, with the bound that set its expected fee. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The verdict follows the lines, never the totals alone: an overcharge on one line and an undercharge on another cancel in the total while both lines are wrong, so a batch whose totals net to zero can still be mixed. The floor's sharpest case is in a batch too: below the rate's zero-fee threshold the bounded fee is the whole minimum, so a line charged zero there is under by the whole minimum, not exact. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no statement and looks nothing up, so check the numbers against the statement itself first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers, bounds included. DUST is a network transaction cost, never part of this fee.

86 · Check a batch of bounded refunds came back whole — a floor-and-ceiling refund batch checker

Tool 85 reconciles a batch of bounded fee charges; refunds under a bounded disclosure arrive in batches too, and tool 80 checks a batch only at a pure rate, so on a bounded batch it misnames the fee-taken lines: a refund of exactly the bounded net reads as a generic shortfall, and the fee it names is not the fee the disclosure states. Enter the amounts you paid, the rate, both bounds as they were disclosed and the amount refunded on each, and this checker runs every line through tool 84 itself — so no line's verdict can disagree with the bounded refund checker — and names each line full, or fee-taken by exactly the bounded fee, or short or over by the exact difference, with the bound that set its disclosed fee. It checks; it does not refund: nothing is charged, refunded, disputed or signed, and no wallet connects.

The verdict follows the lines, never the totals alone: one refund short by a unit and another over by a unit cancel in the total while both lines are wrong, so a batch whose totals net to the full amount can still be mixed. A zero bounded fee collapses fee-taken into full on every line, because the net is the amount itself. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no statement and looks nothing up, so check the numbers against the statement itself first — the verdict is the evidence you take back to the app, stated in the app's own disclosed numbers, bounds included. DUST is a network transaction cost, never part of this fee.

87 · Check a bounded rate says the same thing twice — a floor-and-ceiling rate wording checker

Tool 81 checks that a disclosure's two rate wordings — a percent in the prose and basis points in the terms — state the same rate, but it prices its example at a pure rate, and tools 82 to 86 price bounded fees from only one wording. On a bounded disclosure the fees tool 81 shows as evidence are not the fees either wording would actually take. Enter the rate both ways it was stated, both bounds as they were disclosed and an example amount, and this checker converts the percent to the basis points it implies — exactly, in integer arithmetic, never a float — with the wording verdict borrowed from tool 81 itself and the bounded basis-points fee borrowed from tool 82 itself, so neither can disagree with the checker that owns it. It checks; it does not charge: nothing is charged, refunded, disputed or signed, and no wallet connects.

The verdict follows the wording, never the bounded fees — and bounds add a second way for equal fees to hide a mismatch: a floor raises both wordings' small fees to the same minimum and a ceiling cuts both wordings' large fees to the same maximum, so two different rates can take the identical bounded fee on an amount where their uncapped fees differ plainly. The uncapped fees are shown beside the bounded ones so the masking is visible, not hidden, and each wording carries the bound that set its own fee, because the two wordings can be set by different figures on the same amount. The verdict is computed locally from the numbers you type, in exact integer arithmetic that holds past 253: this checker reads no disclosure and looks nothing up, so check the numbers against the disclosure itself first — the verdict is the evidence you take back to the app, stated in the app's own two wordings, bounds included. DUST is a network transaction cost, never part of this fee.

88 · Say the bounded fee out loud — a floor-and-ceiling disclosure statement generator

Tool 76 writes the disclosure statement for a pure rate, and tools 82 to 87 price and check bounded fees — but the bounded statement itself is still composed by hand, and a hand-written statement can drop a bound, restate a promise the floor breaks, or carry two rate wordings that disagree. Pick the placement, state the rate both ways it will appear, enter both bounds, a worked example amount and the fee recipient, and this generator writes the complete bounded statement, ready to paste into your own app or receipt. The worked example is quoted by tool 82 itself, so the numbers in the statement can never disagree with the bounded quote. It writes; it does not charge: nothing is charged, collected or signed, and no wallet connects.

Two honesty gates run before any words are written. The two wordings must state the same rate — checked by tool 87 itself — and a mismatch is refused, not written: a statement whose percent and basis points state different rates is the oldest hidden-fee shape there is, and a floor or ceiling masking the mismatch on the example amount does not settle it. And the threshold line follows the floor: the zero-fee promise is printed only when the minimum is zero, because with a minimum above zero there is no amount that pays no fee — the statement says so instead, and a zero rate with a minimum fee is named as not a free payment. The worked example names which figure set its fee — the minimum raised it, the maximum cut it, or neither bound changed it. The recipient is printed exactly as you type it: this generator looks nothing up and verifies nothing, so check the address character-for-character before you publish — a disclosure naming the wrong address is worse than none. And the statement earns its keep only where the user decides, before the step that commits: a disclosure written after the fact is not a disclosure. DUST is a network transaction cost, never part of this fee.

89 · Split it fairly, bounded fee first — a floor-and-ceiling payment-split planner

Tool 69 splits a payment fee first, but only at a pure rate, and tools 82 to 88 price and check bounded fees for a single recipient — so a split under a bounded disclosure is planned by neither: at a pure rate the planner takes 25 on 1,000 at 250 bps where the disclosed floor takes 100, and every share downstream of that wrong fee is wrong by its weight's share of the 75. Enter the amount, the rate, both bounds as they were disclosed and the recipient weights, and this planner takes the bounded fee first — quoted by tool 82 itself, so the fee here can never disagree with the bounded quote — then splits what is left. It plans; it does not pay out: nothing is charged, moved or signed, and no wallet connects.

The split itself is tool 69's, unchanged: each recipient's share is floored, and the handful of units flooring leaves over go one each to the largest fractional remainders, earliest recipient winning a tie — so the parts add up to the net exactly, with no unit created, lost, or quietly kept as an extra rounding fee on top of the disclosed one. The bounds change the shares, not just the fee: a floor takes more off a small split than the rate alone would, a ceiling leaves more in a large one, and the plan names which figure set the fee the shares were divided under. A rate of zero with a minimum fee is not a free payment: the minimum is taken first, on every amount, before anything splits. The fee is taken once, first, and named — never skimmed again from each part. DUST is a network transaction cost, never part of this fee.

90 · Escrow, both endings priced, bounded fee — a floor-and-ceiling release-and-refund planner

Tool 70 prices both endings of an escrow, but only at a pure rate, and tools 82 to 89 price and check bounded fees everywhere except an escrow — so an escrow under a bounded disclosure is planned by neither: at a pure rate the planner takes 25 on release of 1,000 at 250 bps where the disclosed floor takes 100, and the seller is promised 975 the disclosure never offered. Enter the amount that would be held, the rate and both bounds as they were disclosed, and this planner prices both endings with the bounded fee — quoted by tool 82 itself, so the release fee here can never disagree with the bounded quote. It plans; it does not hold: nothing is held, charged or signed, and no wallet connects.

Tool 70's rule stands unchanged, bounds included: the fee is taken once, on release only — never on deposit, because the money is not yet earned, and never on a refund, because a deal that did not happen charges nothing. The bounds bind the release fee only: a floor can raise what the seller pays on release, but it can never be collected out of a refund, and on refund the fee is exactly 0 and the buyer receives the full held amount back, whatever the minimum says. On release, bounded fee + what the seller receives = the held amount, exactly. There is no third ending and no other numbers. DUST is a network transaction cost, never part of this fee.

91 · Name the leg the fee comes out of, bounded fee — a floor-and-ceiling swap-fee planner

Tool 71 names the leg a swap fee comes out of, but only at a pure rate, and tools 82 to 90 price and check bounded fees everywhere except a swap — so a swap under a bounded disclosure is planned by neither: at a pure rate it takes 25 out of a 1,000-unit output leg at 250 bps where the disclosed floor takes 100, and you are promised 975 out the disclosure never offered. Enter the amount you pay in and the amount the swap will actually settle at coming out, the rate and both bounds as they were disclosed, and name the leg, and this planner prices the bounded fee on that leg alone — quoted by tool 82 itself, so the fee here can never disagree with the bounded quote. It plans; it does not swap: nothing is swapped, charged or signed, and no wallet connects.

Tool 71's rule stands unchanged, bounds included: the fee is taken once, from the named leg only — never both legs, and never against a mid-price the user was never going to get. The bounds bind the named leg only: a floor can raise the fee taken from that leg, but the other leg is never cut to meet it, and a minimum above the named leg's own amount is refused, even when it would fit the other leg. On the output leg, bounded fee + what you receive = the settlement amount, exactly, and the full input reaches the pool; on the input leg, bounded fee + what reaches the pool = the amount you pay in, exactly, and the output is untouched. A zero rate with a minimum is not a free swap: the whole minimum still comes out of the named leg. This planner invents no exchange rate: both amounts are entered as they will settle, and it prices only the fee. And DUST is not in this arithmetic at all — DUST pays the Midnight network for shielded transactions; a service fee is a separate line, in the asset that is actually moving, to a published address. My own published fee address for Midnight work is the ADA address in the support section below — a swap that routes a fee anywhere else while carrying my name is not mine.

92 · Break-even, counted in sales, bounded fee — a floor-and-ceiling fee break-even planner

Tool 74 counts the sales whose fees cover a stated cost, but only at a pure rate, and tools 82 to 91 price and check bounded fees everywhere except that count — so break-even under a bounded disclosure is planned by neither, and the pure-rate count is wrong in both directions: on a 10,000-unit cost with 1,000-unit sales at 250 bps it counts 400 sales where a disclosed 100-unit minimum collects 100 per sale and breaks even at 100, and the same 400 where a disclosed 10-unit maximum collects 10 per sale and needs 1,000. Enter a stated cost for a period, a typical sale amount, the rate and both bounds as they were disclosed, and this planner counts the sales with the bounded fee per sale — quoted by tool 82 itself, so the fee here can never disagree with the bounded quote. It plans; it does not earn: nothing is charged, collected, sold or signed, and no wallet connects.

The count is a ceiling, stated honestly: the smallest whole number of sales whose collected fees reach the cost, with the surplus the final sale overshoots by named out loud, and one sale fewer always falling short. The bounds move the verdicts, not just the count. A floor rescues a sale the pure rate prices at zero — a 30-unit sale at 250 bps rounds down to no fee at all, so tool 74 answers never, but a disclosed 5-unit minimum collects 5 per sale and the cost is reachable. And a ceiling can manufacture a never the rate never made: a maximum of zero collects nothing on every sale, whatever the rate says, so no number of sales covers any cost, and this planner says never and names the ceiling as the reason instead of printing the rate's healthy count. A cost of zero is already covered at zero sales. A minimum above the typical sale amount is refused, because a floor cannot be collected from a sale smaller than the floor. Costs are stated, not absorbed silently — hosting, a domain, a paid deployment step and your own time priced honestly all belong in the cost figure, and a deployment that costs real money stays a separate, explicitly approved step. DUST is a network transaction cost, never part of this fee.

93 · Price it so the net is the price, bounded fee — a floor-and-ceiling net-target pricing planner

Tool 75 prices the net-target problem at a pure rate only, and tools 82 to 92 price and plan bounded fees everywhere except that inverse problem — so net-target pricing under a bounded disclosure is planned by neither, and the pure-rate price is wrong in both directions: to receive 1,000 at 250 bps it prices 1,025, but under a disclosed 100-unit minimum that price pays the floor's 100 and nets only 925, and at a 100% rate it answers never where a disclosed ceiling makes the target reachable. Enter the amount you must receive, the rate and both bounds as they were disclosed, and this planner finds the exact price with every candidate quoted by tool 82 itself, so the fee here can never disagree with the bounded quote. It prices; it does not sell: nothing is charged, listed, sold or signed, and no wallet connects.

The smallest price still nets the target exactly: at the smallest price a fee can be collected from — the minimum itself — the net is zero, and from there the net rises by 0 or 1 per unit of price, so no extra unit is quietly kept and one unit less falls short. There is no never left: a ceiling removes the pure rate's only never, because at a 100% rate the capped fee leaves net = price minus the maximum, so a target of 1,000 under a 400 maximum is priced at 1,400 — and because the fee can never exceed the maximum at any rate, every target is reachable. A floor raises the price instead: the price must first cover the whole minimum before a single unit of net appears, and a minimum above the target is not refused — the price is the output here, so it simply grows past the minimum, and a 100 target under a 500 minimum prices at 600. The gross-up is honest only while it is disclosed: the buyer sees the price, the fee and your net side by side — a fee hidden inside a price is a hidden fee. DUST is a network transaction cost, never part of this fee.

94 · How big is your crowd? — an anonymity-set estimator

A shielded transfer hides in the crowd of everyone else using the shielded pool at the same time — and the crowd shrinks every time a detail an observer knows about you divides it. Tools 9 and 10 show what an observer can see, but neither puts a number on what is left. Enter the size of your crowd and, for each known detail, how many groups it splits the crowd into (a wallet type used by about 1 in 4 people is 4 groups, a language by 1 in 8 is 8), and this estimator multiplies the combinations exactly and divides the crowd by them, rounded down — rounding up would flatter the protection. It estimates; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size is a number you type, not a live pool count.

This is a best case, never a guarantee: the estimate assumes every detail is independent of the others and every group is equally likely. Real crowds are skewed — one wallet type dominates, languages correlate with regions — so the real group sharing your exact combination can only be smaller than this estimate, never larger. An expected group under 2 means you are expected to be alone in it: the details together single you out even though each one looked harmless alone, which is why a proof that hides a value (tool 5) still pairs with a crowd big enough to hide in. The fix is rarely a better proof — it is fewer distinguishing details shared, or a bigger crowd to share them in.

95 · How much room is left in your crowd? — an anonymity budget planner

Tool 94 measures the crowd that is left after the details an observer already knows. This planner asks the question before anything more is shared: enter the size of your crowd, the smallest group you refuse to drop below, and the details already known, and it works out exactly how much distinguishing room is left — the most combinations you can afford is the crowd divided by your minimum group, rounded down, and what remains after the known details is that budget divided by their combinations, rounded down again, because rounding up would flatter the protection. The room left is also the largest single next detail you can afford: one more detail splitting the crowd into more groups than that, and you drop below your own minimum. It plans; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size is a number you type, not a live pool count.

This is a best case, never a guarantee: like tool 94 it assumes every detail is independent of the others and every group is equally likely, and real crowds are skewed, so the real room can only be smaller than this plan, never larger. Leave the known-details field empty if nothing is known yet — a budget is asked at the start. A minimum above the crowd itself is refused rather than planned around: a group bigger than the crowd can never exist, so that is not a plan but an impossibility. The practical lesson cuts the other way from collecting more cover stories: privacy is a budget spent one detail at a time, and the cheapest detail to protect is the one you never share.

96 · How big a crowd do you need? — an anonymity crowd sizer

Tools 94 and 95 both start from a crowd that already exists. This sizer asks the question when the crowd itself is the thing being chosen — which pool, which moment, how long to wait for more cover. Enter the smallest group you refuse to drop below and the details an observer knows, and it works out the smallest crowd in which that group survives the details at all: the minimum multiplied by the details' combinations, exactly in BigInt, with no rounding anywhere — at one person less than that crowd the expected group drops below your minimum, and at that crowd it meets it exactly. Check it both ways if you like: tool 94 run on this crowd returns your minimum itself, and tool 95 run on it reports at the limit with one combination of room. It sizes; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — no crowd size here is a live pool count.

This is a best case, never a guarantee: like tools 94 and 95 it assumes every detail is independent of the others and every group is equally likely, and real crowds are skewed, so the real crowd your minimum needs can only be larger, never smaller — treat the answer as a floor to plan from, not a promise that the group will be there. Leave the known-details field empty if nothing is known yet: the crowd you need is then the minimum itself, because no detail divides it. The practical lesson is the mirror of tool 95's: when the crowd you need is huge, the cheapest fix is rarely a bigger crowd — it is one fewer distinguishing detail, and every detail you drop divides the crowd you need by its whole group count.

97 · Which details should you withhold? — an anonymity withholding planner

Tools 94, 95 and 96 measure a crowd, plan its room and size the crowd a minimum needs — all three take the details an observer knows as given. This planner asks the repair question, for when tool 95 reports you are over your line: the crowd is what it is and your minimum is the line you set, so which known details should you withhold — generalise, delay or never share — to get back above it? Enter your crowd, your minimum and the known details, and it withholds the largest splits first, because withholding a detail divides the combinations by its whole group count, so the biggest split restores the most cover per detail given up — and no other choice of the same number of withholdings can leave a larger group, which is why the fewest withholdings that reach your minimum are found largest-first. It plans withholdings; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size is a number you type, not a live pool count, and withholding a detail is your act in the app that asked for it, not something this page does.

This is a best case, never a guarantee: like tools 94 to 96 it assumes every detail is independent of the others and every group is equally likely, and real crowds are skewed, so the real group a withholding restores can only be smaller — a plan that only just reaches your minimum on paper may still fall short in a real crowd. A detail that splits the crowd into 1 group is never on the withholding list: everyone shares it, it costs no cover, and giving it up buys nothing. Withholding always suffices when your minimum is at most the crowd, because withholding everything distinguishing leaves the whole crowd — so a minimum above the crowd itself is refused rather than planned around: a group bigger than the crowd can never exist, so that is not a plan but an impossibility. Leave the known-details field empty if nothing is known yet: there is nothing to withhold, and you are already as covered as the crowd itself.

98 · What if they compare notes? — an anonymity combination planner

Tools 94 to 97 all face one observer: they measure, budget, size and repair against a single set of known details. Real cover faces more than one observer, and two observers who each leave you above your minimum on their own can break it together, if they ever compare notes — an intersection of two knowledge sets, neither sufficient alone. Enter your crowd, your minimum, and three lists: the details only the first observer knows, the details only the second knows, and the details both know, and it works out the expected group each observer leaves on their own and the group left if the two pool everything. A detail both observers know is counted once in that pooled figure, never twice: both observers knowing your region does not split the crowd by the region twice, and counting it twice would understate the combined group — the one direction of error this family never allows itself. It plans combinations; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size is a number you type, not a live pool count, and whether two observers ever compare notes is a fact about the world, not something this page can know or prevent.

This is a best case, never a guarantee: like tools 94 to 97 it assumes every detail is independent of the others and every group is equally likely, and real crowds are skewed, so each real group can only be smaller — and details the two observers hold that are secretly the same fact told two ways are a correlation this page cannot see. Leave any list empty where it fits: an observer who knows nothing yet, or no detail the two share. A minimum above the crowd itself is refused rather than planned around: a group bigger than the crowd can never exist, so that is not a plan but an impossibility.

99 · How common are your values? — an anonymity share estimator

Tools 94 to 98 all divide the crowd by how many groups each detail splits it into — which prices the average group, on the assumption that every group is equally likely, and every one of those tools warns that real crowds are skewed. This estimator relaxes that one assumption: instead of a total group count, enter for each known detail the share of the crowd that holds your value of it — a wallet used by 37 in 1,000 people is 37/1000, a language by 1 in 8 is 1/8, a very common value by 90 in 100 is 90/100 — and it multiplies the crowd by every share exactly in BigInt and rounds down, because rounding up would flatter the protection. That prices your group, not the average one: a common value leaves a larger group than a group count for the same detail suggests, and a rare value a smaller one. When every share is 1 in however many groups, the answer is tool 94's answer to the person — the two models agree exactly where they overlap. It estimates; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size and every share are numbers you type, not live pool counts or looked-up statistics.

This is still a best case, never a guarantee: it assumes every detail is independent of the others, and correlated shares — a language and a region held by much the same people twice over — overstate the group, so the real group can still be smaller than this estimate. A share is only as honest as the count behind it: a share you guessed flatters exactly like a group count you guessed, which is why the shares worth entering are ones you can point at — a wallet's published usage, a census language figure — not ones that feel right. An expected group under 2 means you are expected to be alone in it, and 0 means the shares together pick out less than one person: your values together are rarer than the crowd can hide.

100 · What if your details travel together? — an anonymity correlation bounds planner

Every tool from 94 to 99 assumes the details an observer knows are independent of each other — and every one of them warns that real details correlate: a language with a region, a wallet with the hours it is used. This planner stops assuming and prices both ends instead. Enter the crowd, the smallest group you refuse to drop below, and the group counts of the known details, and it computes the expected group twice in exact BigInt: once the tool 94 way, details independent, every combination realised; and once with the details travelling together completely, every smaller detail's groups nested inside the largest detail's groups, so only the largest detail splits you at all. The true group lies between the two figures — correlation can move it inside that range, never outside it.

That makes the verdict three-way: above your line at both ends, and your group holds however the details correlate; above only at the travelling-together end, and your protection depends on a correlation this page cannot measure; or below at both ends, and no correlation can save it. The bounds price correlation only, on the same equal-likelihood assumption as tool 94 inside each detail — skew, priced by tool 99, can still make your own group smaller than either figure, so the range is exact about correlation and still never a guarantee. It bounds correlation; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size is a number you type, not a live pool count, and how your details actually correlate is a fact about the world, not something this page can know.

101 · How many times can you share before your crowd runs out? — an anonymity repetition planner

Tools 94 to 100 all price a disclosure once — but privacy rarely fails in one round. It fails by repetition: a fresh balance proof every week, a location pattern every day, each round revealing new values of the same kind of detail, and an observer who keeps the rounds can intersect them, so every round splits the group the rounds before it left standing. Enter the crowd, the smallest group you refuse to drop below, the group counts of the details one round reveals, and how many rounds you plan to share, and this planner multiplies it out in exact BigInt: one round makes the product of its details' group counts — tool 94's combinations — and after each further round the combinations multiply again, so the expected group is the crowd divided by that product raised to the number of rounds, rounded down. It returns the group after one round, the most rounds your crowd can pay for before the group drops below your minimum, the group at that many rounds and at one round more, and the group after the rounds you actually plan.

This prices fresh values each round — the intersection case. Repeating the exact same values adds nothing an observer did not already learn the first time, and rounds whose details correlate across time — the same commute, the same hours — narrow less than the product says, while skew, priced by tool 99, can still make a real group smaller than any figure here; an observer who links your rounds to a name has left this model entirely. A round whose details split nothing narrows nothing however often it repeats. It plans repetition; it does not identify: nobody is looked up, no wallet connects, and no chain data is read — the crowd size and the round count are numbers you type, not live pool counts, and whether anyone keeps your rounds is a fact about the world, not something this page can know or prevent.

Guides

Support this work

Privacy4All is free and open source. If it helped you, tips in ADA (Cardano) keep the builder loop running:

Built by Kyle Cox — @kshot9000 on X · github.com/Kshot3000

For the Midnight team — @midnightntwrk on GitHub and @MidnightNtwrk on X: this is an independent community builder hub for the Midnight ecosystem. Feedback and corrections are welcome in the issues.