home / playground

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.

interactive simulationlive relay probereal chipnet evidence
real, mocked, cited — the boundary is on the page

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.

01 · the featured experiment

CashFusion
over Nostr

interactive simulationG1–G3L measuredG4 pending

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 protocol

what 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

simulation · no broadcast
peers
speed
01idle

Announce

ephemeral pubkeys → kind 22230

02idle

Election

lowest pubkey coordinates

03idle

Registration

inputs + output count as gift wraps

04idle

Mixnet

onion through every peer

05idle

Assembly + verify

outputs, fee, no inflation

06idle

Broadcast

sign own inputs, assemble tx

P1peer

ec3af7a7d34bfde27acc…

5

in

2

out

5

layers

P2peer

2c5637a67e21d883ae3d…

3

in

3

out

5

layers

P3coordinator

17b360b59c03d7cda2d4…

4

in

4

out

5

layers

P4peer

d6ba29bbab25c68a3afd…

2

in

3

out

5

layers

P5peer

f006a56cbf5680a1f29c…

2

in

4

out

5

layers

nostr relays · ciphertext only

relay.primal.netnostr.momoffchain.pubrelay.damus.ionos.lol

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-live

Press “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.

handshake only · no event published

relay.primal.net

not probed

wss://relay.primal.net

G3L: accepted and delivered kind-1059 wraps.

nostr.mom

not probed

wss://nostr.mom

G3L: accepted and delivered kind-1059 wraps.

offchain.pub

not probed

wss://offchain.pub

G3L: accepted and delivered kind-1059 wraps.

relay.damus.io

not probed

wss://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 probed

wss://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.

G2bon chain

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.
G3Lpassed · dry-run

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

gatestatusrecord
G1passedRelay + crypto roundtrip — 4/4 checks: NIP-44, NIP-59, 3-hop onion, live relay gift-wrap.
G2apassedTwo-party round, dry-run — 3/3 deterministic runs; 4/4 signatures verified; fee 3,000 sats.
G2bon chainReal chipnet broadcast — Funding 253 B + round 428 B, fee 2,000 sats ≈ 4.7 sat/B.
G3passedN-party round — 5-party 10/10 signatures; 7-party 14/14 signatures.
G3LpassedLive public relays — 5-party 10/10 signatures over primal, nostr.mom and offchain.pub.
G4pendingMainnet 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 story

04 · the honesty layer

Real, mocked, cited

A playground is only useful if the boundary is explicit. This is the boundary.

surfacestatuswhat it means
Interactive fusion roundmockDeterministic browser simulation. No keys, no relay messages, no transaction. Peer pubkeys and the txid are generated locally from a seed.
Relay reachability probeliveA 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 behaviorcitedG1/G3L measurements recorded in P2P-FUSION-DESIGN.md §5 and /research/cashfusion#lessons.
G2b transactionsrealChipnet funding and round transactions, linked to Selene. The only chain transactions in the gate record.
G3 / G3L txidsdry-runHarness txids, not broadcast. The rounds used fixture UTXOs.
Mainnet fusion betanot builtG4 is pending; no production fusion UI exists yet.
Shielded poollive on chipnetThe 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 v3measured · chipnet demo184,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.

06 · sources

Read the record