live experiments · hush your money
Playground
Run the research. Break the mock. Publish the evidence.
This is the lab bench for the Hush Your Money research. Some of it runs live in your browser, some of it is a clearly-labelled simulation, and all of it is anchored to the research record. The featured bench is our coordinator-free CashFusion round over Nostr — six phases, peer election, gift-wrapped registration, an onion mix-net, and a simulated broadcast.
00 · the bench
Experiment board
Six benches. One featured interactive experiment, one live network probe, one real chain record — and the research pages that back them.
CashFusion over Nostr
A six-phase round simulator: peer election, NIP-59 registration, onion mix-net, assembly and a simulated broadcast. No keys, no relay messages, no transaction.
EXP-01 · G1–G3L measured · G4 pendingopen bench →Relay reachability
Open a WebSocket handshake to the relays measured in G1/G3L. No NIP-01 REQ and no event published — the probe closes the socket.
EXP-02 · browser → public relaysopen bench →Real chain evidence
The G2b funding and round transactions on chipnet, linked on Selene. The only gate in the record with real chain transactions.
EXP-03 · 2 tx · network=chipnetopen bench →The Shielded Pool
The flagship Groth16 pool — two deployed verifier generations plus the 3-out v3 (184,528 constraints; verifier/hook/witness built; a chipnet demo pool is live); the current pool runs the pool rules inside the reviewed on-chain verifier. The browser acceptance passed; the 3-out demo SHIELD, TRANSFER and UNSHIELD are confirmed.
EXP-04 · flagship research · 3-out v3 measuredopen bench →Trusted Setup
The ceremony monitor and contribution-chain visualizer for the Powers-of-Tau setup that gates mainnet.
EXP-05 · gate 7 · in designopen bench →Mainnet fusion beta
The production UI is the remaining step: no production fusion UI exists yet. G4 stays pending until it does.
EXP-06 · not builtopen bench →01 · the featured experiment
CashFusion
over Nostr
Our coordinator-free variant of CashFusion. Peers self-elect a coordinator, register inputs as NIP-59 gift wraps over Nostr relays, onion-wrap outputs through every peer, verify the assembled transaction, and sign only their own inputs. The simulator below follows the six phases and the constants documented in the research.
Read the six-phase protocolwhat the simulator mirrors
- Six phases, peer election by lowest ephemeral pubkey, 1–5 inputs / 2–4 outputs per peer, onion layers through every peer.
- The per-peer fee model from the design constants. The real protocol uses a 60 s + blame phase timeout; the demo shortens it for the browser.
- The measured relay names and the G2b chain evidence are the reference; the simulated amounts and the mock txid are generated locally and are not research measurements.
[mock · deterministic simulation · no keys, no relay messages, no broadcast]
exp-01 · live console
P2P fusion round
Announce
ephemeral pubkeys → kind 22230
Election
lowest pubkey coordinates
Registration
inputs + output count as gift wraps
Mixnet
onion through every peer
Assembly + verify
outputs, fee, no inflation
Broadcast
sign own inputs, assemble tx
ec3af7a7d34bfde27acc…
5
in
2
out
5
layers
2c5637a67e21d883ae3d…
3
in
3
out
5
layers
17b360b59c03d7cda2d4…
4
in
4
out
5
layers
d6ba29bbab25c68a3afd…
2
in
3
out
5
layers
f006a56cbf5680a1f29c…
2
in
4
out
5
layers
nostr relays · ciphertext only
kind 1059 gift wraps · NIP-44 layers
chain · simulated broadcast
4124353ed89fccb9e083e7f26ba054b2129793119f3e0a6d5d47307c50eb5ea9
not broadcast · deterministic mock txid
round inspector
- peers
- 5
- inputs
- 16
- outputs
- 16
- signatures
- 16
- fee (model)
- 2,922 sats
- est. size
- 2,922 B
signature assembly
coordinator: P3 · fee model: nIn·148 + nOut·34 + ceil(10/peers)
round log
aria-livePress “run round” to simulate the six phases. Nothing leaves your browser.
What the simulation mirrors
- Six phases, peer election by lowest ephemeral pubkey, 1–5 inputs / 2–4 outputs per peer, onion layers through every peer.
- The per-peer fee model from the design constants; the real phase timeout is 60 s + blame, shortened here for the demo.
- The measured relay names and the G2b chain evidence are the reference; the simulated amounts and the mock txid are generated locally and are not research measurements.
What it does not do
- No real keys or signatures: peer pubkeys and the txid are deterministic mock hex from a local seed.
- No relay messages and no broadcast: the separate relay probe opens a handshake only.
- No G4: the mainnet opt-in beta is pending and no production fusion UI exists yet.
[mock · deterministic simulation; protocol and constants cited from /research/cashfusion#six-phases and P2P-FUSION-DESIGN.md §4]
02 · the live probe
Probe the relays
This is the one experiment on the page that talks to the network. It opens a WebSocket handshake to each relay and closes it. No NIP-01 REQ is sent and no event is published. Your browser connects directly, so each relay sees your IP — opt in only if that is acceptable.
relay.primal.net
not probedwss://relay.primal.net
G3L: accepted and delivered kind-1059 wraps.
nostr.mom
not probedwss://nostr.mom
G3L: accepted and delivered kind-1059 wraps.
offchain.pub
not probedwss://offchain.pub
G3L: accepted and delivered kind-1059 wraps.
relay.damus.io
not probedwss://relay.damus.io
G1 relay set (1/2 connected in the recorded run); G3L: rate-limits bursts and advertises NIP-42 AUTH.
nos.lol
not probedwss://nos.lol
G1 relay set (1/2 connected in the recorded run); G3L: rate-limits bursts.
[live · browser WebSocket handshake; relay behavior cited from G1/G3L in /research/cashfusion#lessons]
03 · the record
The evidence behind the simulation
The simulator is a teaching tool. The record is the point. G2b is the only gate with real chain transactions; G3 and G3L are dry-runs with fixture UTXOs.
Real chipnet broadcast
- Funding tx 253 B accepted; round tx 2 inputs / 4 outputs, 428 B, fee 2,000 sats ≈ 4.7 sat/B.
- This is the only gate in the set with real chain transactions; G3 and G3L are dry-runs with fixture UTXOs.
Same round over live public relays
- 5-party full round over wss://relay.primal.net, wss://nostr.mom and wss://offchain.pub: 10/10 signatures verified.
- A repeat run also passed. The round is still a dry-run — live relays, fixture UTXOs, no broadcast.
harness txid · dry-run (not broadcast)
13bc75cecaf0c6f845f8a6e6074c8b6f43909670c85f304b9f413d5989f70f0d
20d0c9b90571dd2ae11cd3a8d4de3219d02398c18aa42cc8a61f6bd52d8b9b6d
| gate | status | record |
|---|---|---|
| G1 | passed | Relay + crypto roundtrip — 4/4 checks: NIP-44, NIP-59, 3-hop onion, live relay gift-wrap. |
| G2a | passed | Two-party round, dry-run — 3/3 deterministic runs; 4/4 signatures verified; fee 3,000 sats. |
| G2b | on chain | Real chipnet broadcast — Funding 253 B + round 428 B, fee 2,000 sats ≈ 4.7 sat/B. |
| G3 | passed | N-party round — 5-party 10/10 signatures; 7-party 14/14 signatures. |
| G3L | passed | Live public relays — 5-party 10/10 signatures over primal, nostr.mom and offchain.pub. |
| G4 | pending | Mainnet opt-in beta — No production fusion UI exists yet. |
composition bench · design
Fusion first, then shield.
The composition story is already published on the CoinJoin page: a fusion round breaks the input→output link, then the shielded pool hides amounts and the graph. The button is design-only; the two halves are built separately.
Read the composition story04 · the honesty layer
Real, mocked, cited
A playground is only useful if the boundary is explicit. This is the boundary.
| surface | status | what it means |
|---|---|---|
| Interactive fusion round | mock | Deterministic browser simulation. No keys, no relay messages, no transaction. Peer pubkeys and the txid are generated locally from a seed. |
| Relay reachability probe | live | A WebSocket handshake from your browser to each relay, then close. No NIP-01 REQ and no event published. The relay sees your IP. |
| Relay names and behavior | cited | G1/G3L measurements recorded in P2P-FUSION-DESIGN.md §5 and /research/cashfusion#lessons. |
| G2b transactions | real | Chipnet funding and round transactions, linked to Selene. The only chain transactions in the gate record. |
| G3 / G3L txids | dry-run | Harness txids, not broadcast. The rounds used fixture UTXOs. |
| Mainnet fusion beta | not built | G4 is pending; no production fusion UI exists yet. |
| Shielded pool | live on chipnet | The role-2 pool is live on chipnet with a confirmed browser lifecycle; the 3-out v3 is measured and deployed as a chipnet demo (184,528 constraints; SHIELD e847ef56… → TRANSFER ef64f3dd… → UNSHIELD ec31a41c…); the 400 FT transfer note is undelivered; four failed locks are stuck, one is sweepable. See /research/shielded-pool#notes-management. |
| 3-out v3 | measured · chipnet demo | 184,528 constraints (+1,056, +0.58%), 201-B carrier, 9-field actionHash. The 1-of-1 demo setup, 3-out verifier (7,310/7,848 B), 201-B hook (39,082/37,930 op), 3-out witness, acceptance 21/21, red team 146/0 and a demo pool (SHIELD e847ef56… → TRANSFER ef64f3dd… → UNSHIELD ec31a41c…) are built; the new MPC (Gate 7) and the Nito client UI remain, while the 3-out blank path is live (vending aa2020bd…, first stranger buy 569a6e6d…, block 348,775); the 3-out witness path is built and byte-exact, and the proving assets are live. |
[verification contract · every claim is a file path, a command output, or a cited source; mocked surfaces are labelled]
05 · lab notes
What broke on the way
The expensive findings are the point of publishing the research. These are the defects the harness found — and the fixes that made the round pass.
BCH Schnorr is not final BIP-340
BCH's 2019 Schnorr uses e = SHA256(r ‖ compressed_pubkey33 ‖ m) with no BIP-0340 tag prefixes, and R must be normalized to the QR Y root. Noble's schnorr produces final BIP-340 signatures, which the BCH VM rejects with NULLFAIL.
read the finding →relay behaviorRelays do not echo
A relay does not send an event back to the connection that published it. With one shared socket for all peers, peers never receive each other's messages on real relays. The fix is one connection per peer.
read the finding →rate limitsFree relays throttle bursts
Observed verbatim: damus "banned: too many rate-limit violations, try again later"; nos.lol "rate-limited: slow down matey". A 5-party round emits ~100+ gift wraps, so publishing is paced at one event per 80 ms per connection.
read the finding →open gapNIP-42 AUTH is not implemented
damus now advertises NIP-42 AUTH. The NIP-59 spec recommends supporting it; the current relay pool does not authenticate. This is tracked as an open item, not a solved one.
read the finding →06 · sources
Read the record
/research/cashfusion
The full 11-section research record: protocol, adoption, architecture, phases, gate evidence, defect log, FAQ and sources.
P2P-FUSION-DESIGN.md
The architecture draft, protocol constants, gate record and defect logs.
web/tests/
The G1, G2a, G2b and G3 harnesses, plus the NIP-01 relay fixture and chipnet Electrum client.
NIP-59 + NIP-44
Gift wrap (kind 1059) and versioned encrypted payloads — the transport the round is built on.
BCH Schnorr spec (2019)
The draft-BIP-340 variant BCH actually enforces: compressed-pubkey challenge, QR-normalized R, no tag prefixes.
Selene · G2b round
The real chipnet round transaction from G2b, in the explorer used across the research suite.