-
Notifications
You must be signed in to change notification settings - Fork 63
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
1 parent
ddd89e4
commit 03b312a
Showing
14 changed files
with
7,620 additions
and
5,862 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ ignition/deployments | |
|
||
#Local verifier | ||
contracts/verifiers/local/* | ||
|
||
.yarn | ||
.yarnrc.yml |
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
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
11 changes: 11 additions & 0 deletions
11
contracts/contracts/mock/mockVerifierDscRsa65537Sha256_4096.sol
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pragma solidity >=0.7.0 <0.9.0; | ||
|
||
contract Mock_Verifier_dsc_rsa_65537_sha256_4096 { | ||
|
||
function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[2] calldata _pubSignals) public view returns (bool) { | ||
if (_pA[0] == 1) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
contracts/contracts/mock/mockVerifierProveRsa65537Sha256_2048.sol
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pragma solidity >=0.7.0 <0.9.0; | ||
|
||
contract Mock_Verifier_prove_rsa_65537_sha256 { | ||
|
||
function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[51] calldata _pubSignals) public view returns (bool) { | ||
if (_pA[0] == 1) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,8 +9,6 @@ | |
"author": "motemotech <[email protected]>", | ||
"scripts": { | ||
"test": "npx hardhat test", | ||
"test:local": "TEST_ENV=local npx hardhat test", | ||
"test:prod": "TEST_ENV=prod npx hardhat test", | ||
"deploy_all": "npx hardhat ignition deploy ignition/modules/Deploy_All.ts --network optimism --verify", | ||
"compile": "npx hardhat compile", | ||
"publish": "npm publish --access public" | ||
|
Oops, something went wrong.