-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
206 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ Our implementation was inspired by [Renaud Dubois/Ledger's FCL library](https:// | |
Available on any chain. If missing, see `deploy.sh`. | ||
|
||
Install with: | ||
|
||
- `forge install daimo-eth/p256-verifier` | ||
- add `p256-verifier/=lib/p256-verifier/src/` to remappings.txt | ||
|
||
|
@@ -33,7 +34,7 @@ uint256 x, y; // public key | |
bool valid = P256.verifySignature(hash, r, s, x, y); | ||
``` | ||
|
||
Alternately, calling `P256.verifySignatureAllowMalleability` ignores | ||
Alternately, calling `P256.verifySignatureAllowMalleability` ignores | ||
malleability of signatures, matching the behavior specified by the NIST standard | ||
exactly. | ||
|
||
|
@@ -51,7 +52,7 @@ Run `foundryup` to ensure you have the latest foundry. Then, | |
``` | ||
git clone --recurse-submodules [email protected]:daimo-eth/p256-verifier | ||
cd p256-verifier | ||
forge test -vv | ||
forge test --via-ir -vv | ||
``` | ||
|
||
This runs test input and output handling as well as all applicable Wycheproof | ||
|
@@ -87,7 +88,7 @@ npm test | |
# Validate that all vectors also work with EIP-7212 | ||
# Test the fallback contract... | ||
cd .. | ||
forge test -vv | ||
forge test --via-ir -vv | ||
# In future, execution spec and clients can test against the same clean vectors | ||
``` | ||
|
Oops, something went wrong.