Skip to content

On-chain Ed25519 signature verification mechanism is unresolved #143

Closed

Description

@thiras

Summary

Multiple slash evidence paths depend on on-chain Ed25519 verification (iroh NodeId signatures), but the exact mechanism is flagged as an open question in ADR 002. EVM has no native Ed25519 precompile.

Problem

All slashing mechanisms — phantom announcements (ADR 005), rate bait-and-switch (ADR 003/005), blacklist violations (ADR 011), and corrupted delivery (ADR 002/003) — require on-chain verification of Ed25519 signatures from iroh NodeIds. The ADRs reference "an on-chain Ed25519 verification library" without specifying one.

On-chain Ed25519 verification on EVM is expensive (~500k–1M gas without a precompile) and not battle-tested at scale. Without a concrete, costed slash evidence path, the entire accountability model is theoretical.

ADRs Affected

  • 002-content-addressing.md (open question)
  • 003-payments.md (slash evidence paths)
  • 005-protocol.md (probe/stream signatures)
  • 011-content-takedown.md (blacklist slash evidence)

Recommendation

Add a dedicated section or mini-ADR evaluating:

  1. RIP-7212 ed25519 precompile — check status on Arbitrum
  2. Solidity-based Ed25519 library (e.g., ed25519-sol) — gas cost analysis
  3. Wrapper contract mapping NodeId → secp256k1 key — nodes register an secp256k1 key alongside their Ed25519 NodeId
  4. Optimistic challenge-response — submit commitment on-chain, node must counter off-chain, only verify in dispute
  5. ZK proof of Ed25519 signature — verify a succinct proof on-chain

Pick one for PoC. This blocks all slashing implementation.

Source

Comprehensive ADR architecture review (2026-04-03)

Activity

  1. added
    prio:critical
    design:adr
    kind:security
    design:missing-decision
    on Apr 2, 2026
  2. added a commit that references this issue on Apr 3, 2026
    d7bfe94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrdesign:missing-decisionkind:securityprio:critical

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions