epic: wormhole, shielded balance and exits #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Miners can see the rewards sitting behind their wormhole address and move them to a transparent account from the wallet, with the Plonky2 proof generated locally. Without this the wallet is useless to the people who hold most of the newly minted QTC.
Facts the design rests on
derive_wormhole_from_mnemonic, its own coin-type constant). The preimage is public; spending needs a proof of knowledge of the secret.qp-wormhole-proverand friends (Plonky2). It needs circuit binaries fetched once (ensure_circuit_binariesin the Flutter SDK's Rust core), and proving is minutes of CPU. The Flutter SDK'sapi/wormhole.rsand quantus-cli'swormhole_lib.rsare the reference implementations.WormholeProofRecorderExtensionis on every extrinsic; it contributes no signed bytes.Operator-owned decisions
Definition of done
A miner restores their mining mnemonic, sees a shielded balance that matches what blackbeard.observer attributes to their preimage, generates a proof with a progress indicator, and sees the amount arrive in a transparent account on mainnet.
Children, in dependency order: #45 (wormhole derivation and shielded balance) → #46 (proof generation, circuit binaries) → #47 (exit). #46 needs the circuit-binary host decided.