@crisp-e3/contracts 0.3.0-test → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/CRISPProgram.sol +8 -8
- package/contracts/CRISPVerifier.sol +2141 -2160
- package/contracts/Mocks/MockCRISPProgram.sol +197 -212
- package/contracts/Mocks/MockEnclave.sol +5 -5
- package/contracts/Mocks/MockRISC0Verifier.sol +3 -3
- package/contracts/Mocks/RiscZeroGroth16Verifier.sol +3 -3
- package/package.json +3 -3
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
// or FITNESS FOR A PARTICULAR PURPOSE.
|
|
6
6
|
pragma solidity >=0.8.27;
|
|
7
7
|
|
|
8
|
-
import { IRiscZeroVerifier } from
|
|
9
|
-
import { Ownable } from
|
|
10
|
-
import { IE3Program } from
|
|
11
|
-
import { IEnclave } from
|
|
12
|
-
import { E3 } from
|
|
13
|
-
import { LazyIMTData, InternalLazyIMT, PoseidonT3 } from
|
|
8
|
+
import { IRiscZeroVerifier } from "risc0/IRiscZeroVerifier.sol";
|
|
9
|
+
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
|
|
10
|
+
import { IE3Program } from "@enclave-e3/contracts/contracts/interfaces/IE3Program.sol";
|
|
11
|
+
import { IEnclave } from "@enclave-e3/contracts/contracts/interfaces/IEnclave.sol";
|
|
12
|
+
import { E3 } from "@enclave-e3/contracts/contracts/interfaces/IE3.sol";
|
|
13
|
+
import { LazyIMTData, InternalLazyIMT, PoseidonT3 } from "@zk-kit/lazy-imt.sol/InternalLazyIMT.sol";
|
|
14
14
|
|
|
15
|
-
import { HonkVerifier } from
|
|
15
|
+
import { HonkVerifier } from "./CRISPVerifier.sol";
|
|
16
16
|
|
|
17
17
|
contract CRISPProgram is IE3Program, Ownable {
|
|
18
18
|
using InternalLazyIMT for LazyIMTData;
|
|
@@ -27,7 +27,7 @@ contract CRISPProgram is IE3Program, Ownable {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// Constants
|
|
30
|
-
bytes32 public constant ENCRYPTION_SCHEME_ID = keccak256(
|
|
30
|
+
bytes32 public constant ENCRYPTION_SCHEME_ID = keccak256("fhe.rs:BFV");
|
|
31
31
|
|
|
32
32
|
// The depth of the input merkle tree
|
|
33
33
|
uint8 public constant TREE_DEPTH = 20;
|