Skip to content

fix: add memo and splits to challenge scope binding#234

Open
brendanjryan wants to merge 1 commit intomainfrom
brendanjryan/challenge-scope-memo-splits
Open

fix: add memo and splits to challenge scope binding#234
brendanjryan wants to merge 1 commit intomainfrom
brendanjryan/challenge-scope-memo-splits

Conversation

@brendanjryan
Copy link
Collaborator

Prevents cross-route credential replay where a credential issued for a no-splits (or no-memo) route is accepted on a route that requires splits or a specific memo.

The methodDetails fields memo and splits now participate in the scope comparison alongside amount, currency, and recipient.

Changes

  • server/Mppx.ts: Add memo and splits to the cross-route challenge scope check
  • server/Mppx.test.ts: Add test for no-splits credential replayed at splits route

Prevents cross-route credential replay where a credential issued for a
no-splits (or no-memo) route is accepted on a route that requires splits
or a specific memo. The methodDetails fields memo and splits now participate
in the scope comparison alongside amount, currency, and recipient.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/mppx@234

commit: a53c72b

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant