Skip to content

Reject negative payment challenge amounts#4

Open
samsamtrum wants to merge 1 commit into
vybenetwork:mainfrom
samsamtrum:reject-negative-payment-amounts
Open

Reject negative payment challenge amounts#4
samsamtrum wants to merge 1 commit into
vybenetwork:mainfrom
samsamtrum:reject-negative-payment-amounts

Conversation

@samsamtrum

Copy link
Copy Markdown

The trust policy parses challenge amounts with BigInt, but it only checked the upper cap. A negative atomic amount can pass that cap check and continue to signing.

This rejects negative challenge amounts before signing and adds a regression test for the policy path.

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