@crisp-e3/contracts 0.15.0 → 0.16.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.
@@ -12,6 +12,7 @@ import { IDecryptionVerifier } from "@interfold/contracts/contracts/interfaces/I
12
12
  import { IPkVerifier } from "@interfold/contracts/contracts/interfaces/IPkVerifier.sol";
13
13
 
14
14
  contract MockInterfold {
15
+ bytes32 public constant ENCRYPTION_SCHEME_ID = keccak256("fhe.rs:BFV");
15
16
  bytes public plaintextOutput;
16
17
  bytes32 public committeePublicKey;
17
18
 
@@ -35,7 +36,7 @@ contract MockInterfold {
35
36
  committeeSize: IInterfold.CommitteeSize.Minimum,
36
37
  requestBlock: 0,
37
38
  inputWindow: [uint256(0), uint256(0)],
38
- encryptionSchemeId: bytes32(0),
39
+ encryptionSchemeId: ENCRYPTION_SCHEME_ID,
39
40
  e3Program: IE3Program(address(0)),
40
41
  paramSet: 0, // Insecure512
41
42
  customParams: abi.encode(address(0), nextE3Id, numOptions, 0, 0, 0),
@@ -72,7 +73,7 @@ contract MockInterfold {
72
73
  committeeSize: IInterfold.CommitteeSize.Minimum,
73
74
  requestBlock: 0,
74
75
  inputWindow: [uint256(0), block.timestamp + 100],
75
- encryptionSchemeId: bytes32(0),
76
+ encryptionSchemeId: ENCRYPTION_SCHEME_ID,
76
77
  e3Program: IE3Program(address(0)),
77
78
  paramSet: 0, // Insecure512
78
79
  customParams: abi.encode(address(0), 0, 2, 0, 0, 0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crisp-e3/contracts",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "contracts",
@@ -31,7 +31,7 @@
31
31
  "@zk-kit/lazy-imt.sol": "2.0.0-beta.12",
32
32
  "poseidon-solidity": "^0.0.5",
33
33
  "solady": "^0.1.13",
34
- "@interfold/contracts": "0.5.0"
34
+ "@interfold/contracts": "0.6.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@nomicfoundation/hardhat-keystore": "3.0.3",
@@ -53,8 +53,8 @@
53
53
  "typechain": "^8.3.0",
54
54
  "typescript": "5.8.3",
55
55
  "viem": "2.30.6",
56
- "@crisp-e3/zk-inputs": "^0.15.0",
57
- "@crisp-e3/sdk": "^0.15.0"
56
+ "@crisp-e3/sdk": "^0.16.0",
57
+ "@crisp-e3/zk-inputs": "^0.16.0"
58
58
  },
59
59
  "scripts": {
60
60
  "compile": "hardhat compile",