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
- Public by default is the problem. On a normal blockchain anyone can read balances, counterparties and history forever. That works for open markets and badly for real life.
- Midnight splits the ledger. Midnight keeps a public state for what must be verifiable and a private state for what must stay yours, using zero-knowledge proofs — mostly generated on your own device.
- Selective disclosure is the product. Prove “over 18”, “paid in full” or “this message is from me” without revealing the birth date, the amount, or the rest of the conversation.
- NIGHT and DUST. NIGHT is Midnight’s token, held on Cardano; holding NIGHT generates DUST, the renewable resource that pays for shielded Midnight transactions.
Projects
Live flagships first, then the full catalogue of my Midnight and privacy work. Filter by what you need:
-
Night Messenger Live site
Free private direct messages on Midnight with selective disclosure — web + Android. The flagship Privacy4All app: talk first, reveal only what the conversation actually needs.
-
PlutusShield Live site
DeFi and smart-contract insurance spanning Cardano Preview + Midnight Preprod: Aiken validators for depeg and exploit-cover pools and a Compact policy registry on Midnight. Testnet only, unaudited, no real funds.
-
PRISM — CIP-113 Studio Live site
Design and research studio for programmable tokens, with a Midnight DApp Connector (v4) alongside CIP-30 wallet support and a live Koios explorer. Design/research only — no minting or signing.
-
NightDream Live site
Analytics desk with a dedicated Midnight / NIGHT desk: live NIGHT data and a DUST calculator alongside Cardano charts, DEX liquidity and portfolio views. Real live data, no demo figures.
-
Nocturne Repo
Private messaging and email on Midnight, built around selective disclosure — the longer-form companion to Night Messenger’s DMs.
-
ShieldPass Repo
Zero-knowledge compliance gate for Midnight dApps: prove you are KYC’d, sanctions-clear, outside blocked countries and over 18 without revealing any of it — the dApp learns only that the session passed its policy. Testnet MVP deployed on Midnight Preprod, built for the Midnight Buildathon; not audited, no real credentials.
-
Midnight GrokBot Agent Repo
My 24/7 Midnight build lab: Compact contract starters, a Lace wallet kit and an agent-escrow prototype for private-by-default applications.
-
Cardano + Midnight Builder Hub Repo
Earlier builder hub and the fleet’s showcase repo: agent escrow, live network monitors and privacy dashboards for Cardano and Midnight.
-
Midnight Bank (example fork) Fork
Zero-knowledge banking example on Midnight — private transfers, encrypted balances and selective disclosure — kept as a fork for study and upstream fix work.
-
Midnight Contracts (fork) Fork
Midnight example contracts in Compact / MeshJS, kept for learning, testing and upstream contributions.
-
Midnight Apps (fork) Fork
A collection of starter dApps on Midnight Network, kept as a fork for upstream fix work.
-
Midnight Awesome dApps (fork) Fork
Awesome list of Midnight Network dApps on the Cardano partner chain — ecosystem map, kept current via the fork.
-
Midnight RWA (fork) Fork
Real-world assets on Midnight (Brick Towers example) — how tokenised assets can stay private and compliant at the same time.
-
Midnight Sea Battle (fork) Fork
A ZK game on Midnight (Brick Towers example): the cleanest small demo of hiding game state while still proving every move was legal.
-
Midnight Faucet API (fork) Fork
The API behind the Midnight testnet faucet, open-sourced from midnight-faucet — kept as a fork for study and upstream fix work.
-
Midnight Docs (fork) Fork
Source for the official Midnight developer documentation site (docs.midnight.network), built with Docusaurus — kept as a fork for docs fixes and upstream contributions.
-
Compact (fork) Fork
The Compact programming language itself — the language Midnight smart contracts are written in — kept as a fork for study and upstream fix work.
-
Compact Testbed (fork) Fork
A testbed for Compact contracts on the Midnight Network — a place to try contract patterns before they go anywhere near a deployment.
-
Midnight Node (fork) Fork
The Midnight node software — the chain itself, bringing rational privacy to blockchain — kept as a fork for study and upstream fix work.
-
Midnight SDK (fork) Fork
The Midnight SDK for building dApps against the network — kept as a fork for study and upstream fix work.
-
Example ZK Loan (fork) Fork
An example dApp for zero-knowledge loans on Midnight: make a loan case with ZK proofs instead of handing over your full financial history — kept as a fork for study.
-
VaxZK (fork) Fork
A Midnight dApp where health authorities issue vaccine certificates and holders prove vaccination status without exposing sensitive personal data — selective disclosure applied to health credentials. Kept as a fork for study.
-
Cardano4All — sister hub Live site
Midnight is Cardano’s partner chain, so the Cardano side of my work lives in its own hub: analytics, DeFi, CIP-113 tokens, staking and developer utilities.
No projects match that filter yet — try “all”.
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.
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.
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.
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.
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.
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.
No tools match that search yet — try fewer words, or clear the search to see all 101 tools.
Guides
- Getting started building on Midnight — the official docs, Compact, Lace and testnets, in the order I’d learn them.
- Your first Compact contract — install the toolchain, read a real contract line by line, compile it, and register tNIGHT for DUST before your first deploy.
- Charging honestly on Midnight — designing a disclosed service fee: quoted before committed, exact integer maths in basis points, and why DUST is not your fee.
- Getting funded to build on Midnight — preparing a grant, accelerator, fellowship or hackathon application: deliverables a reviewer can verify, and milestones that sum exactly to the total requested.
- Reviewing a Compact contract for privacy leaks — a reviewer's checklist built on the official security guidance: every disclose() justified, hashes that don't hide, single-use commitment randomness, witnesses treated as claims, and the disclosures read together.
- Operating a Midnight dApp after launch — a maintainer's checklist built on the official proof-server and version-mismatch guidance: a version inventory checked against the compatibility matrix, upgrades treated as migrations, the proving path guarded, and users' local private state never stranded.
- The full project catalogue — every repo, what it does, and its honest status.
Support this work
Privacy4All is free and open source. If it helped you, tips in ADA (Cardano) keep the builder loop running:
addr1q8hnl6vl5a6k3rw3n5g3jtte696zcl76kfatzv7gpswa9r0dj7fma6klq55y4ffm7tf0em09udnyhuk4ah92pl5x9jpqjae44v
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.