Skip to content

ADR 003/005: Clarify voucher wire format vs on-chain format #10

Closed

Description

@thiras

Category: Cross-ADR Consistency

Two ADRs define the voucher format differently:

  • ADR 005 (wire protocol): Voucher {sig, amt} — two fields in the chunk loop
  • ADR 003 (payment model): {channelId, amount, nonce, stablecoin, signature} — five fields with EIP-712 typed data

These are likely consistent (ADR 005 is the wire abbreviation, ADR 003 is the full on-chain format), but this is never explicitly stated. A reader could think they're different structures.

Questions

  1. Does the wire Voucher {sig, amt} actually contain channelId and nonce implicitly (derived from the stream context)?
  2. Or is the full EIP-712 structure sent over the wire and ADR 005 just abbreviates?

Recommendation

Add a note to ADR 005 clarifying that Voucher in the chunk loop is the full EIP-712 signed structure from ADR 003, with a cross-reference.

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 005 (Wire Protocol)

Metadata

Metadata

Assignees

Labels

design:consistency

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions