Whistleblower claim protocol
Purpose
An insider who reports a violation should be paid, should not be front-run (not even by a Council member who reads the evidence), and should never have to reveal who they are. This module implements the paper's bounty claim protocol (Appendix A, "Bounty claim protocol", and the settlement section) as pure transitions on the Council's state. It reuses the epoch ledger: commitments are ledger leaves.
Data formats
| Object | Definition |
|---|---|
payout key pk_c |
a fresh x-only BIP340 key the claimant generates for this claim |
ciphertext C |
the evidence M encrypted to the Council's threshold encryption key (outside this module) |
| commitment leaf | value H(C) || pk_c (64 bytes); key taggedHash("Firebreak/bounty/commit", value) |
| delivery | { epoch, proof, ciphertext, payoutKey, claimBond } |
| evidence digest | SHA-256(M) after decryption; priority is decided among claims with the same digest |
| ownership proof | BIP340 signature by pk_c over taggedHash("Firebreak/bounty/owner", challenge) |
Parameters: claimWindow (in epochs), beta1, beta2. The Council's judgment is injected: assess(M) -> { operatorId, valid, knowinglyFalse? }. Decryption is injected too, as decrypt(C).
Message flow
The claimant generates
(sk_c, pk_c), encrypts the evidence to the Council's threshold key to getC, and postscommitmentLeaf(C, pk_c)to the ledger.The ledger closes the epoch; its root is anchored on Bitcoin and recorded with
anchor(state, record). The record must chain to the previous one.The claimant delivers
C,pk_c, the inclusion proof and an optional claim bondcthrough any channel:deliver(state, delivery, decrypt, assess). The Council checks:- that the epoch is anchored (otherwise
not-anchored); - that the leaf for
(C, pk_c)is in it (otherwisenot-included: a delivery that does not match its commitment fails here); - that the current epoch is at most
epoch + claimWindow(otherwisewindow-closed); - that the claim is new (otherwise
duplicate), that it decrypts (otherwiseundecryptable), and that its evidence has no winner yet (otherwisealready-resolved).
The Council then decrypts by threshold and assesses the evidence. If the evidence is unfounded, the claim bond is refunded at once. If it is knowingly false, the bond is forfeited to the pool. If it is credible, the claim waits for priority.
- that the epoch is anchored (otherwise
orderInspection(state, digest): the Council orders an inspection on the evidence. The priority winner is fixed and paidbeta1from the pool. Rival claims for the same digest are marked superseded and their bonds refunded.confirm(state, digest): the inspection or a slash confirms the violation. The operator's bond is slashed into the pool, andbeta2is paid, drawn first from the slashed bond. The winner's claim bond is refunded. Ordismiss(state, digest): no violation is confirmed. The bond is refunded and nobeta2is paid.If the claimant later reveals themselves to seek protection, they sign a challenge with
sk_c(proveOwnership/verifyOwnership).
Priority
Among credible claims with the same evidence digest, the commitment anchored in the earliest epoch wins. Within one epoch, the lowest commitment key (compared as bytes) wins. Commitment keys are hashes, so no claimant can choose a low one for evidence they did not already hold. A claim committed in epoch e may be delivered until epoch e + claimWindow, so the winner is final once the current epoch passes winner.epoch + claimWindow: no earlier commitment can still arrive. orderInspection refuses to pay before then (priority-not-final).
Claim stages
| Stage | Meaning | Bond |
|---|---|---|
| credible | waiting for priority | held |
| unfounded | the evidence was not valid | refunded |
| false | knowingly false | forfeited to the pool |
| superseded | lost on priority | refunded |
| inspection | won; beta1 paid |
held |
| confirmed | beta2 paid |
refunded |
| dismissed | not confirmed | refunded |
What the Council learns
The Council learns pk_c, a fresh key with no link to a person; the ciphertext and, by threshold decryption, the evidence; and the size of the claim bond. It never learns who the claimant is unless the claimant chooses to prove ownership of pk_c. The ledger learns only H(C) and pk_c.
Security properties and the tests that check them
The tests are in test/bounty/bounty.test.ts.
| Property | Test |
|---|---|
The honest flow pays beta1 on inspection and beta2 on confirmation to pk_c, with beta2 drawn from the slashed bond |
"pays the honest claimant..." |
| A front-runner who copies the evidence (re-encrypted, or the same ciphertext under its own key) and commits later loses, and gets only its bond back | "a front-runner who copies the evidence and commits later loses" |
| Ties within an epoch go to the lowest commitment key | "breaks a tie within one epoch by the lowest commitment key" |
| A delivery that does not match its commitment (other key, other ciphertext, wrong epoch) is rejected | "rejects a delivery that does not match its commitment" |
| A delivery before its epoch is anchored is rejected | "rejects a delivery before its commitment's epoch is anchored" |
| A delivery after the claim window is rejected | "rejects a delivery after the claim window" |
| No double payout: repeated orders, confirmations, deliveries and late claims are refused | "never pays twice..." |
Over arbitrary epochs of commits, deliveries (some tampered) and Council actions: value is conserved (pool + bonds + held claim bonds + paid out = initial + deposits); the pool never goes negative; each evidence digest receives at most one beta1 and one beta2, only to its winner; the winner is the earliest timely commitment, as computed by the test itself; and once there is a winner, no rival is left with its bond stuck |
"conserves value, pays each evidence at most one beta_1 and one beta_2..." (property) |
Interpretations
- When each tranche is paid.
beta1is paid when the Council orders an inspection, andbeta2on confirmation, following the settlement section. Appendix A saysbeta1is paid "on a finding". - "Drawn first from the slashed bond." The slashed bond enters the pool when the violation is confirmed.
beta2is recorded as coming from it, up to its size.beta1precedes any slash, so it comes from the pool. - Short pool. If the pool holds less than a tranche, the claimant is paid what the pool holds. The paper does not say what happens.
- Priority is decided per evidence digest. The paper says only that the anchored commitment fixes priority.
Out of scope
- Retaliation against claimants, and the protection the treaty promises once a claimant reveals themselves.
- Evidence authenticity beyond the injected
assess. The protocol decides who is paid, not whether the evidence is true. - Threshold encryption and decryption of
C, which are injected. - Censorship of commitments by the ledger operator. A claimant should be able to post through any party that can anchor.
Open questions for the paper's authors
- Evidence malleability. Priority compares evidence digests. Someone who reads the evidence (a Council member, after decryption) can change one byte and commit it as "new" evidence. That claim cannot win this digest, but it can compete as a separate claim against the same operator. Priority should probably be keyed by
(operator, offense)as the Council's assessment identifies them, not by bytes. - Several honest claimants with different evidence of one violation. After the first confirmation the operator's bond is gone. The paper does not say whether later claims are paid from the pool.
- The decision period. The paper gives the Council a fixed period to decide whether to order an inspection. The priority wait (
claimWindowepochs) must fit inside it.