Skip to content

ADR 003: NodeId-to-Ethereum-address binding is completely unspecified #57

Closed

Description

@thiras

Category: Missing Specification

Severity: CRITICAL

File: adr/003-payments.md (~lines 507-513)

Client priority staking requires mapping a client's iroh NodeId to their Ethereum address. The spec says: "The client signs a message binding their NodeId to their Ethereum address and includes it in the StreamRequest."

What's missing:

  1. Message format — no schema for the binding message
  2. Signature scheme — ECDSA over keccak256? BLAKE3? ed25519?
  3. Replay protection — can a node replay a captured binding to impersonate the client's staking tier on another connection?
  4. Proof of possession — how does the node verify the connecting client actually owns both the NodeId and the Ethereum address?

Impact:
Without this spec, any node could:

  • Claim a client's staking tier by replaying a captured binding
  • Forge bindings if the signature scheme is ambiguous

Recommendation:
Specify the binding as an EIP-712 typed data message:

{nodeId: bytes32, ethAddress: address, nonce: uint64, expiry: uint64}

Signed by the client's Ethereum key. The node verifies the NodeId matches the connecting peer and the expiry hasn't passed.

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 005 (Wire Protocol — StreamRequest format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind: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