Skip to content

[P1][M] Adapt zkx402 config attachment to x402 v2 route schema (accepts[]) #68

Description

@markballew

Summary

Ensure zkx402 extensions (proofPolicy, proofCosts, access control) are attached consistently when x402 v2 uses accepts[] route definitions.

Acceptance criteria

  • Decide and document where zkx402 config lives in v2:
    • per-route vs per-accept-option (and how conflicts are resolved)
  • Demo policy/cost files still apply correctly (or migration path provided)
  • Tests cover both discount tiers and hard gating under v2 route config

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions