Skip to content

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

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

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
Copy Markdown
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
Copy Markdown

pkg-pr-new bot commented Mar 24, 2026

Open in StackBlitz

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

commit: a53c72b

@brendanjryan
Copy link
Copy Markdown
Collaborator Author

pulled into #231

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant