Skip to content

Commit

Permalink
add r check (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColoCarletti authored Oct 6, 2023
1 parent f272068 commit 87186ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precompiles/P256Verify.yul
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ object "P256VERIFY" {
let x := calldataload(96)
let y := calldataload(128)

if or(iszero(fieldElementIsOnSubgroupOrder(r)), iszero(fieldElementIsOnSubgroupOrder(s))) {
if or(or(iszero(r), iszero(fieldElementIsOnSubgroupOrder(r))), iszero(fieldElementIsOnSubgroupOrder(s))) {
burnGas()
}

Expand Down

0 comments on commit 87186ca

Please sign in to comment.