Association sets, ragequit and view keys
Association sets
The vault is built on 0xbow's Privacy Pools. An ASP key screens each deposit address against the public OFAC SDN list and posts the root of approved deposits. Every withdrawal proves membership in the current approved root, so withdrawn funds are provably not from an excluded deposit.
Ragequit
A deposit that is not approved can always leave through ragequit: a public withdrawal back to the address that deposited. No one else can claim it.
View keys
A View Key opens a single position or a date range for an auditor or a tax tool. Every other note stays encrypted, including the rest of that day.
Your browser holds one master view secret. Each note's copy is sealed with its own ephemeral key, so each note has its own 32-byte key, derived from the master secret and that note alone. A view key is a list of those note keys with the transaction that opened each position: one entry for a single position, one per position for a date range (UTC, by open or close). It never contains the master secret, and a note key cannot be turned back into it or into another note's key.
noteKey = HKDF-SHA256(X25519(viewSecret, epk), salt = epk, "gyges/note-key/v2")
copy = XChaCha20-Poly1305(noteKey, nonce, note, aad = "gyges/open" | "gyges/payout")
key = "gyges-vk-" + base64url({ v, chain, book, scope, notes: [{ tx, k, kc }] })Whoever holds the key pastes it into /view. The page reads the book's events from Elysium, decrypts each covered note, and checks it: the open copy must hash to the commitment the Opened event inserted and its entry must equal the signed mark; the payout copy must hash to the Closed payout commitment and equal the circuit's formula at the close mark and the funding index of that block. It then offers a JSON statement: opens, closes, payouts, marks, fees, funding, PnL and transaction hashes, with the result of each check. All of it runs in the browser; nothing is sent to a server. A key shows notes, it cannot close a position or spend a payout: neither copy holds a spend secret.
Make keys in the app: it finds your positions on chain with your master secret, then exports a key for one of them or for a date range.