@crisp-e3/contracts 0.7.2 → 0.8.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.
@@ -9,6 +9,7 @@ import { E3 } from "@enclave-e3/contracts/contracts/interfaces/IE3.sol";
9
9
  import { IEnclave } from "@enclave-e3/contracts/contracts/interfaces/IEnclave.sol";
10
10
  import { IE3Program } from "@enclave-e3/contracts/contracts/interfaces/IE3Program.sol";
11
11
  import { IDecryptionVerifier } from "@enclave-e3/contracts/contracts/interfaces/IDecryptionVerifier.sol";
12
+ import { IPkVerifier } from "@enclave-e3/contracts/contracts/interfaces/IPkVerifier.sol";
12
13
 
13
14
  contract MockEnclave {
14
15
  bytes public plaintextOutput;
@@ -21,7 +22,7 @@ contract MockEnclave {
21
22
  function request(address program) external {
22
23
  e3s[nextE3Id] = E3({
23
24
  seed: 0,
24
- threshold: [uint32(1), uint32(2)],
25
+ committeeSize: IEnclave.CommitteeSize.Micro,
25
26
  requestBlock: 0,
26
27
  inputWindow: [uint256(0), uint256(0)],
27
28
  encryptionSchemeId: bytes32(0),
@@ -29,10 +30,12 @@ contract MockEnclave {
29
30
  e3ProgramParams: bytes(""),
30
31
  customParams: abi.encode(address(0), nextE3Id, 2, 0, 0),
31
32
  decryptionVerifier: IDecryptionVerifier(address(0)),
33
+ pkVerifier: IPkVerifier(address(0)),
32
34
  committeePublicKey: committeePublicKey,
33
35
  ciphertextOutput: bytes32(0),
34
36
  plaintextOutput: plaintextOutput,
35
- requester: address(0)
37
+ requester: address(0),
38
+ proofAggregationEnabled: false
36
39
  });
37
40
 
38
41
  IE3Program(program).validate(nextE3Id, 0, bytes(""), bytes(""), abi.encode(address(0), nextE3Id, 2, 0, 0));
@@ -56,7 +59,7 @@ contract MockEnclave {
56
59
  return
57
60
  E3({
58
61
  seed: 0,
59
- threshold: [uint32(1), uint32(2)],
62
+ committeeSize: IEnclave.CommitteeSize.Micro,
60
63
  requestBlock: 0,
61
64
  inputWindow: [uint256(0), block.timestamp + 100],
62
65
  encryptionSchemeId: bytes32(0),
@@ -64,10 +67,12 @@ contract MockEnclave {
64
67
  e3ProgramParams: bytes(""),
65
68
  customParams: abi.encode(address(0), 0, 2, 0, 0),
66
69
  decryptionVerifier: IDecryptionVerifier(address(0)),
70
+ pkVerifier: IPkVerifier(address(0)),
67
71
  committeePublicKey: committeePublicKey,
68
72
  ciphertextOutput: bytes32(0),
69
73
  plaintextOutput: plaintextOutput,
70
- requester: address(0)
74
+ requester: address(0),
75
+ proofAggregationEnabled: false
71
76
  });
72
77
  }
73
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crisp-e3/contracts",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "contracts",
@@ -59,8 +59,8 @@
59
59
  "typechain": "^8.3.0",
60
60
  "typescript": "5.8.3",
61
61
  "viem": "2.30.6",
62
- "@crisp-e3/sdk": "^0.7.2",
63
- "@crisp-e3/zk-inputs": "^0.7.2"
62
+ "@crisp-e3/zk-inputs": "^0.8.0",
63
+ "@crisp-e3/sdk": "^0.8.0"
64
64
  },
65
65
  "scripts": {
66
66
  "compile": "hardhat compile",