daimo-eth / p256-verifier

P256 signature verification solidity contract
https://p256.eth.limo
MIT License
147 stars 28 forks source link

fix: test uint256 parsing #8

Closed dcposch closed 10 months ago

dcposch commented 10 months ago

My mistake and huge props to @nalinbhardwaj for rewriting the entire verifier in Sage to find this bug... in the test suite.

nalinbhardwaj commented 10 months ago

leaving sage recreation here for posterity (hopefully never need to use it again lol): https://gist.github.com/nalinbhardwaj/852b5ed036a14b875de2bd8aa32609b4