Skip to content

ADR 003: Specify EIP-712 domain separator for voucher signatures #8

Closed

Description

@thiras

Priority: Must-fix before implementation

ADR 003 mentions EIP-712 typed data for vouchers ({channelId, amount, nonce, stablecoin, signature}) but doesn't specify the EIP-712 domain separator. The domain separator must include:

  • name — contract name string
  • version — version string
  • chainId — L2 chain ID
  • verifyingContract — StablePaymentChannel contract address

Without this, vouchers could be replayed across:

  • Different chains (if deployed on multiple L2s)
  • Different contract deployments (upgrades)
  • Test vs production environments

Recommendation

Add the full EIP-712 domain definition to ADR 003's contract spec section:

EIP712Domain({
    name: "StablePaymentChannel",
    version: "1",
    chainId: <L2_CHAIN_ID>,
    verifyingContract: <CONTRACT_ADDRESS>
})

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 007 (Watchtower — uses same voucher format)

Metadata

Metadata

Assignees

Labels

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