Skip to content

Privacy Deanonymization Bounds

The privacy metadata/anonymity-bound packet defines the fields and downgrade routes. The deanonymization-bound packet adds the residual model behind those floors.

Status on main (25 November 2026): this packet exists as a schema and fixtures under docs/governance/agent/. Its verifier script is archived outside this repository, and no code in crates/ or python/ implements it.

The model is intentionally narrow. It assumes a public observer with the declared metadata channels and no off-chain side information. If off-chain side information, compromised wallet infrastructure, or direct third-party RPC observation is present, the result downgrades or holds. The packet is controlled-testnet evidence only; it does not mutate registry state and does not transfer authority.

Residual Model

The count-based score assumes each remaining candidate is equally likely after conditioning on the observer’s information. With unequal probabilities the best single guess has probability max(p_i). The historical fixture field posterior_bps stores the rounded equal-weight estimate. No field measurement here validates equal weights.

All probabilities are represented as integer basis points. The verifier uses the equal-weight single-target estimate:

posterior_bps = ceil(10000 / candidate_count)

For 16 equally likely candidates the best guess is 6.25%. If one candidate has probability 40% and the other fifteen each have 4%, the same candidate count yields a 40% best guess. Worked probability fixture

The baseline route requires:

Bound v1 value
Maximum equal-weight single-channel estimate 1,250 bps
Maximum equal-weight joint estimate 625 bps
Activity window candidates 128
Same fee-class candidates 32
Same asset / policy candidates 16
Same timing-bucket candidates 16
Batch size 8
Timing bucket 300 seconds
Disclosure-hash reuse count 16
Joint metadata candidate count 16
Observation freshness 3,600 seconds

Under equal weights the batch-size floor gives the largest single-channel estimate: 1/8, or 1,250 bps. The baseline privacy route still requires a 16-candidate joint metadata cohort, so combining timing, fee, asset-policy, disclosure, and admission metadata must leave at least 16 candidates. Their equal-weight estimate is 625 bps at the floor. If the joint cohort falls below that floor, the flow is not baseline-private even if every single channel independently passes.

flowchart TD
  CandidateSet[Candidate shielded actions]
  Metadata[Declared metadata filters<br/>timing, fee class, asset policy,<br/>batch, disclosure, RPC]
  Residual[Residual candidate count]
  Posterior["Equal-weight estimate<br/>ceil(10000 / candidate_count)"]
  Bounds[Deanonymization bounds<br/>single-channel and joint floors]
  Decision[Privacy route<br/>baseline, hold, downgrade,<br/>disclosure, fail closed]

  CandidateSet --> Metadata --> Residual --> Posterior --> Bounds --> Decision

Routes

Condition Route
All floors and posterior bounds pass baseline-private
Joint metadata cohort below 16 downgrade-privacy-claim
Activity window below 128 downgrade-privacy-claim
Same fee-class below 32 downgrade-privacy-claim
Same asset / policy below 16 downgrade-privacy-claim
Batch below 8 or timing bucket below floor hold-for-batching
Unique disclosure hash explicit-disclosure-required
Direct third-party RPC observer hold-for-private-relay
Stale observation window hold
Ungoverned bound policy fail-closed
Declared external side information downgrade-privacy-claim

Fixture Coverage

The valid fixture covers the baseline route. Negative fixtures verify:

Fixture class Expected failure
Root mismatch bound-root mismatch
Statement hash mismatch attestation mismatch
Joint candidate shortfall baseline route rejected
Batch shortfall hold-for-batching required
Timing shortfall hold-for-batching required
Unique disclosure hash explicit disclosure required
Direct third-party RPC private relay required
Low activity window privacy claim downgraded
Fee-class shortfall privacy claim downgraded
Asset-policy shortfall privacy claim downgraded
Ungoverned policy fail closed
Stale observation hold
External side information privacy claim downgraded

Verification

# HISTORICAL: these commands were archived outside the repository during the
# open-source cleanup; see scripts/README.md.
scripts/privacy-deanonymization-bound-verify --fixtures
scripts/privacy-deanonymization-bound-verify --write-report
scripts/privacy-deanonymization-bound-verify --verify-report

The canonical valid fixture is:

docs/governance/agent/fixtures/privacy_deanonymization_bound/valid_deanonymization_bound.json

Current roots (computed by the archived verifier; not recomputed in the review of 25 November 2026):

Root Value
Valid packet hash 5c949e3fa40f33a8854129086a09b9b8870476f38f79a28b99793ef1bf166225204950415103d71e5bdb5558ed5cba55
Statement hash 806fbb22ef07b55ee058956b0f6848ced03fbcf4376784dc998b6e9b16db3a83e77ad415f266ac7a2f7ff91c80f6752a
Bound root hash 0799e5536a40bb053f19d1d95c5e2cd0bca6c341610c23ca97b1181299762c3046f6e278fff81f219a395d3e57c8aec9

Status

The next implementation step is to connect these bounds to real wallet batching telemetry, pool activity telemetry, relay selection, and shielded-asset policy gates.