Repository navigation
docs: add ADR 014 on-chain verification for slashing evidence - #167
Conversation
Resolves the two critical blockers for slashing implementation: dual-key slash signatures (ecrecover at 3k gas instead of ~500k Ed25519 library) and optimistic challenge-response for BLAKE3 corruption. Adds unified SlashJudge contract interface and updates cross-references in ADRs 002, 003, 004, 005, 011, and architecture.md. Closes #4 Closes #143 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces ADR 014, which specifies the on-chain verification mechanisms for slashing evidence, including a dual-key signature scheme (Ed25519 and secp256k1) and an optimistic challenge-response protocol for content corruption. The feedback identifies a protocol gap where StreamEnd acknowledgements are proposed as counter-evidence without being defined as signed frames in the wire protocol. Additionally, there is a technical inconsistency regarding regional blacklist enforcement, as the node's region is currently not part of the on-chain state or the signed evidence required for adjudication by the SlashJudge contract.
There was a problem hiding this comment.
Pull request overview
Adds ADR 014 to define the PoC/production on-chain slashing evidence verification pipeline, and updates existing ADRs/architecture overview to reference the new slash_sig + SlashJudge design and revised gas estimates.
Changes:
- Add ADR 014 describing dual-key slash signatures (EIP-712 secp256k1
slash_sig) and corruption challenge mechanisms, plus the unifiedSlashJudgeinterface. - Update cross-references and wording across ADRs 002/003/004/005/011 and
adr/architecture.mdto reflect ADR 014’s decisions. - Update repo ADR numbering guidance (
CLAUDE.md) to reflect the next ADR number after 014.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| CLAUDE.md | Updates ADR numbering convention (next number now 015). |
| adr/architecture.md | Adds ADR 014 to the living index, glossary entries for slash_sig/SlashJudge, and marks the on-chain verification open question as decided. |
| adr/014-on-chain-verification.md | New ADR specifying on-chain verification approach (dual-key signatures + SlashJudge + corruption challenge paths). |
| adr/011-content-takedown.md | Replaces Ed25519-library assumption with ADR 014 dual-key ecrecover scheme for blacklist slashing evidence. |
| adr/005-protocol.md | Updates signer binding and StreamResponse narrative to reference optional slash_sig and ADR 014. |
| adr/004-tokenomics.md | Updates gas estimate entry to SlashJudge.submit*Challenge() (~50–60k). |
| adr/003-payments.md | Removes corruption evidence options section; replaces with ADR 014 resolution reference. |
| adr/002-content-addressing.md | Resolves on-chain verification open question by referencing ADR 014. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Define DeliveryReceipt (EIP-712 signed) as counter-evidence for corruption challenges, replacing unsigned StreamEnd reference - Clarify PoC corruption path is optimistic/economic, not cryptographic - Specify ABI encoding for SlashJudge bytes arguments - Clarify EIP-712 field sourcing (request-context fields, redirect zero-value) - Acknowledge regional blacklist scope as PoC limitation (region not on-chain) - Add slash_sig? to ADR 005 sequence diagrams for wire-format consistency - Fix grep-matching string in ADRs Affected section Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
ecrecoverat 3,000 gas vs ~500k–1M for Ed25519 library), single-round optimistic challenge-response for BLAKE3 corruption (PoC), interactive keccak256 Merkle proof design (production), and unifiedSlashJudgecontract interfacesubmitFraudProof()~250k toSlashJudge.submit*Challenge()~50–60kCloses #4
Closes #143
Test plan
grep -rn 'Ed25519 verification library\|on-chain Ed25519 verification library' adr/slash_sig/SlashJudgeappears in ADRs 004, 005, 011, 014, and architecture.md🤖 Generated with Claude Code