Skip to content

Commit

Permalink
core/vm: add bn256ScalarMul testcase for zero scalar value (ethereum#…
Browse files Browse the repository at this point in the history
…26607)

EIP-196 allows a zero value in the scalar argument to precompile `0x07`. This change adds a test for that case.
  • Loading branch information
raulk authored and shekhirin committed Jun 6, 2023
1 parent 5fe8706 commit 5f9ef96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/vm/testdata/precompiles/bn256ScalarMul.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,12 @@
"Name": "cdetrio15",
"Gas": 6000,
"NoBenchmark": true
},
{
"Input": "039730ea8dff1254c0fee9c0ea777d29a9c710b7e616683f194f18c43b43b869073a5ffcc6fc7a28c30723d6e58ce577356982d65b833a5a5c15bf9024b43d980000000000000000000000000000000000000000000000000000000000000000",
"Expected": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"Name": "zeroScalar",
"Gas": 6000,
"NoBenchmark": true
}
]

0 comments on commit 5f9ef96

Please sign in to comment.