A wormhole route: what enters, what leaves, and what is still inside #18
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?
Came out of the distribution table shipping a
sent oncolumn that read zero for every miner. That zero was not "nothing left" — it was "nothing left by a route the chain records", because a wormhole transfer does not record who sent it. The privacy is the chain's central feature and the observer currently has nothing to say about it.The mechanism, read off the runtime
A transfer inserts a commitment as a leaf; spending one proves a nullifier, which is then recorded so it cannot be spent twice. Every
NativeTransferredwe decode carries aleaf_index, so the two halves are joinable from events we already index.Measured on mainnet
And the flow, split by the extrinsic that produced each transfer and whether a sender was recorded:
Hidden-sender transfers in block initialisation are mining rewards. The 9,894 from
verify_*_batchare real payments with no recorded origin.Worth noting the ratio: 47,789 nullifiers consumed against 9,894 hidden-sender outputs. Notes are spent in batches far larger than the outputs they produce, which is consolidation and is itself worth showing.
What the route should carry
leaf_indexon transfers we already index rather than fromZkTree::LeafInserted, which is inSKIPPED_EVENTSbecause it fires every block and names no account.SegmentsDeniedandExitMintFailedhave never fired. A zero there is a finding, not a gap.MinerVolumeFeePaid, 713 events across 19 accounts.The thing to be careful about
Do not describe outstanding notes as "funds locked in the wormhole" without checking what a leaf actually commits to.
Balances::Locksis empty on this chain, and account balances are visibly real, so the relationship between a note and a balance needs establishing rather than assuming. Count what can be counted — notes created, notes spent, the difference — and say that, which is true, rather than a token figure that might not be.