Skip to content

Commit

Permalink
add gas benchmark suite and minor edit to verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
nalinbhardwaj committed Sep 21, 2023
1 parent 4887c97 commit cf2faef
Show file tree
Hide file tree
Showing 17 changed files with 2,630 additions and 209 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: |
cd test-vectors
npm ci
npm start
npm run generate_wycheproof
npm test
git diff --exit-code
id: test
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"[solidity]": {
"editor.defaultFormatter": "JuanBlanco.solidity"
},
"coverage-gutters.coverageFileNames": ["lcov.info"]
"coverage-gutters.coverageFileNames": ["lcov.info"],
"solidity.compileUsingRemoteVersion": "v0.8.21+commit.d9974bed"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The secp256r1 elliptic curve, aka P256, is interesting because it's supported by

## Usage

**Address `0xA77aB3533750B0C4b229e441fEe37f13c65A2b1F`**
**Address `0xea923BEe7108728eA2708af25e9981272193a555`**

Available on any chain. If missing, see `deploy.sh`.

Expand All @@ -19,7 +19,7 @@ bytes32 hash; // message hash
uint256 r, s; // signature
uint256 x, y; // public key
address verifier = 0xA77aB3533750B0C4b229e441fEe37f13c65A2b1F;
address verifier = 0xea923BEe7108728eA2708af25e9981272193a555;
bytes memory args = abi.encode(hash, r, s, x, y);
(bool success, bytes memory ret) = verifier.staticcall(args);
assert(success); // never reverts, always returns 0 or 1
Expand Down
24 changes: 12 additions & 12 deletions broadcast/Deploy.s.sol/84531/run-latest.json

Large diffs are not rendered by default.

Loading

0 comments on commit cf2faef

Please sign in to comment.