@sig-net/midnight-contract 0.12.0 → 0.14.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.
@@ -168,13 +168,6 @@
168
168
  "type-name": "Struct",
169
169
  "name": "RespondBidirectionalEvent",
170
170
  "elements": [
171
- {
172
- "name": "attestationDigest",
173
- "type": {
174
- "type-name": "Bytes",
175
- "length": 32
176
- }
177
- },
178
171
  {
179
172
  "name": "signature",
180
173
  "type": {
@@ -453,13 +446,6 @@
453
446
  "type-name": "Struct",
454
447
  "name": "RespondBidirectionalEvent",
455
448
  "elements": [
456
- {
457
- "name": "attestationDigest",
458
- "type": {
459
- "type-name": "Bytes",
460
- "length": 32
461
- }
462
- },
463
449
  {
464
450
  "name": "signature",
465
451
  "type": {
@@ -7,26 +7,26 @@
7
7
  "type": "directory",
8
8
  "contract-info.json": {
9
9
  "type": "file",
10
- "size": 12893,
11
- "hash": "bcd4df22f8bbe7a284ad20c429a14e9d029b54a60968f9c70e5e9886b08364da"
10
+ "size": 12535,
11
+ "hash": "6639209984955a51737103b4c874f4e1e6a28fe1bcee59050af47d732cf00464"
12
12
  }
13
13
  },
14
14
  "contract": {
15
15
  "type": "directory",
16
16
  "index.d.ts": {
17
17
  "type": "file",
18
- "size": 9777,
19
- "hash": "aa8b30fda4740c37e47fd67708a59237953adab19cb041302bf990c4d6003629"
18
+ "size": 9395,
19
+ "hash": "d0e1076076703dfad7069a28c3b203e7cc047a5300f11cc299b7676dd885a57d"
20
20
  },
21
21
  "index.js": {
22
22
  "type": "file",
23
- "size": 105081,
24
- "hash": "8b4d82dd9e62be11b63855b7b3b44443760c37c27bad00a019bf3b77be0a3cdd"
23
+ "size": 104686,
24
+ "hash": "03d937daa0650c1f9098ff33389ba3d2e51e844c8d161a24ddef31394fb1dc15"
25
25
  },
26
26
  "index.js.map": {
27
27
  "type": "file",
28
- "size": 3081,
29
- "hash": "9efd70a7168561b45fbba922e09b8fc9b852f3c531e737d5c9544a7b345a0f39"
28
+ "size": 3080,
29
+ "hash": "c671a41a6150eec88501c39ea8241da9e3c8156f3af6dd97909e6bada4246741"
30
30
  }
31
31
  },
32
32
  "zkir": {
@@ -43,13 +43,13 @@
43
43
  },
44
44
  "respondBidirectional.bzkir": {
45
45
  "type": "file",
46
- "size": 1718,
47
- "hash": "93498ebcb78bf7c92a7215916538bf733a6d4c9b7173d20023f87b8ad3989b30"
46
+ "size": 1521,
47
+ "hash": "581ed602d329589b0d5bc7f6855250806dc7404e891e7f68cc6f4b1f2bf89e45"
48
48
  },
49
49
  "respondBidirectional.zkir": {
50
50
  "type": "file",
51
- "size": 4253,
52
- "hash": "2e5669b61cd6842da5e037cc0d20f0408deb6b97d391dc0175342856540bc0ea"
51
+ "size": 3855,
52
+ "hash": "eb305066a5e7a4294e9bae1fa2b10a5efdfb321a2309a28fd60cd5bc758cc508"
53
53
  },
54
54
  "signBidirectional.bzkir": {
55
55
  "type": "file",
@@ -76,13 +76,13 @@
76
76
  },
77
77
  "respondBidirectional.prover": {
78
78
  "type": "file",
79
- "size": 889222,
80
- "hash": "b742e066a2dfb13212cffa0dfb46ad2cac913cde7d75453001aad9f64c054302"
79
+ "size": 446657,
80
+ "hash": "46282484369288173a6d747a68d9539ddbbcecce1e6b304a9a827c40ed258a0f"
81
81
  },
82
82
  "respondBidirectional.verifier": {
83
83
  "type": "file",
84
84
  "size": 1353,
85
- "hash": "aa9b1666e95c9d66f4a8333f8cc72697afe7fd6359a850984e88743a6f667798"
85
+ "hash": "7c33e47a225e2a239371e7608bcdbae90d2195769bbe4d0e8ab47f868477712e"
86
86
  },
87
87
  "signBidirectional.prover": {
88
88
  "type": "file",
@@ -20,8 +20,7 @@ export type ImpureCircuits<PS> = {
20
20
  }): Promise<__compactRuntime.CircuitResults<PS, []>>;
21
21
  respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
22
22
  requestId_0: Uint8Array,
23
- respondBidirectionalEvent_0: { attestationDigest: Uint8Array,
24
- signature: { bigR: { x: Uint8Array,
23
+ respondBidirectionalEvent_0: { signature: { bigR: { x: Uint8Array,
25
24
  y: Uint8Array
26
25
  },
27
26
  s: Uint8Array,
@@ -47,8 +46,7 @@ export type ProvableCircuits<PS> = {
47
46
  }): Promise<__compactRuntime.CircuitResults<PS, []>>;
48
47
  respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
49
48
  requestId_0: Uint8Array,
50
- respondBidirectionalEvent_0: { attestationDigest: Uint8Array,
51
- signature: { bigR: { x: Uint8Array,
49
+ respondBidirectionalEvent_0: { signature: { bigR: { x: Uint8Array,
52
50
  y: Uint8Array
53
51
  },
54
52
  s: Uint8Array,
@@ -77,8 +75,7 @@ export type Circuits<PS> = {
77
75
  }): Promise<__compactRuntime.CircuitResults<PS, []>>;
78
76
  respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
79
77
  requestId_0: Uint8Array,
80
- respondBidirectionalEvent_0: { attestationDigest: Uint8Array,
81
- signature: { bigR: { x: Uint8Array,
78
+ respondBidirectionalEvent_0: { signature: { bigR: { x: Uint8Array,
82
79
  y: Uint8Array
83
80
  },
84
81
  s: Uint8Array,
@@ -136,16 +133,14 @@ export type Ledger = {
136
133
  isEmpty(): boolean;
137
134
  size(): bigint;
138
135
  member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
139
- lookup(key_0: { count: bigint, requestId: Uint8Array }): { attestationDigest: Uint8Array,
140
- signature: { bigR: { x: Uint8Array,
136
+ lookup(key_0: { count: bigint, requestId: Uint8Array }): { signature: { bigR: { x: Uint8Array,
141
137
  y: Uint8Array
142
138
  },
143
139
  s: Uint8Array,
144
140
  recoveryId: bigint
145
141
  }
146
142
  };
147
- [Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { attestationDigest: Uint8Array,
148
- signature: { bigR: { x: Uint8Array, y: Uint8Array },
143
+ [Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { signature: { bigR: { x: Uint8Array, y: Uint8Array },
149
144
  s: Uint8Array,
150
145
  recoveryId: bigint
151
146
  }
@@ -65,16 +65,15 @@ const _descriptor_7 = new _Signature_0();
65
65
 
66
66
  class _RespondBidirectionalEvent_0 {
67
67
  alignment() {
68
- return _descriptor_0.alignment().concat(_descriptor_7.alignment());
68
+ return _descriptor_7.alignment();
69
69
  }
70
70
  fromValue(value_0) {
71
71
  return {
72
- attestationDigest: _descriptor_0.fromValue(value_0),
73
72
  signature: _descriptor_7.fromValue(value_0)
74
73
  }
75
74
  }
76
75
  toValue(value_0) {
77
- return _descriptor_0.toValue(value_0.attestationDigest).concat(_descriptor_7.toValue(value_0.signature));
76
+ return _descriptor_7.toValue(value_0.signature);
78
77
  }
79
78
  }
80
79
 
@@ -267,22 +266,22 @@ export class Contract {
267
266
  if (!(typeof(contextOrig_0) === 'object' && contextOrig_0.callContext.currentQueryContext != undefined)) {
268
267
  __compactRuntime.typeError('respondBidirectional',
269
268
  'argument 1 (as invoked from Typescript)',
270
- 'signet-contract.compact line 97 char 1',
269
+ 'signet-contract.compact line 98 char 1',
271
270
  'CircuitContext',
272
271
  contextOrig_0)
273
272
  }
274
273
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
275
274
  __compactRuntime.typeError('respondBidirectional',
276
275
  'argument 1 (argument 2 as invoked from Typescript)',
277
- 'signet-contract.compact line 97 char 1',
276
+ 'signet-contract.compact line 98 char 1',
278
277
  'Bytes<32>',
279
278
  requestId_0)
280
279
  }
281
- if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.attestationDigest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.attestationDigest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.attestationDigest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
280
+ if (!(typeof(respondBidirectionalEvent_0) === 'object' && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
282
281
  __compactRuntime.typeError('respondBidirectional',
283
282
  'argument 2 (argument 3 as invoked from Typescript)',
284
- 'signet-contract.compact line 97 char 1',
285
- 'struct RespondBidirectionalEvent<attestationDigest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
283
+ 'signet-contract.compact line 98 char 1',
284
+ 'struct RespondBidirectionalEvent<signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
286
285
  respondBidirectionalEvent_0)
287
286
  }
288
287
  const context = __compactRuntime.copyCircuitContext(contextOrig_0);
@@ -1391,7 +1390,7 @@ export const contractReferenceLocations =
1391
1390
  { tag: 'publicLedgerArray', indices: { } };
1392
1391
  export const expectedVk = {
1393
1392
  'respond': '22938eaebc029fd624db271e92857b132977c0373bf2f9ce823e21d011973e0d',
1394
- 'respondBidirectional': 'aa9b1666e95c9d66f4a8333f8cc72697afe7fd6359a850984e88743a6f667798',
1393
+ 'respondBidirectional': '7c33e47a225e2a239371e7608bcdbae90d2195769bbe4d0e8ab47f868477712e',
1395
1394
  'signBidirectional': '3e603e64ac930b8e4e1412e0afb5b3769e3d9db62c3a0bace1fe367eb7dc868e',
1396
1395
  };
1397
1396
 
@@ -4,5 +4,5 @@
4
4
  "sourceRoot": "../../../",
5
5
  "sources": ["src/signet-contract.compact"],
6
6
  "names": [],
7
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA;;;;;;;;;;MAoCA,AAAA,iBAyBC;;;;;cAxBK,WAAoB;cACpB,cAAgD;;;;;;;;;;;;;;;;;;;;;;;;;yCADhD,WAAoB,gCACpB,cAAgD;;;;;;;;;yDADhD,WAAoB;yDACpB,cAAgD;;;;OAuBrD;MAID,AAAA,OAuBC;;;;;cAtBG,WAAoB;cACpB,yBAAgD;;;;;;;;;;;;;;;;;;;;;;;;;yCADhD,WAAoB,gCACpB,yBAAgD;;;;;;;;;+CADhD,WAAoB;+CACpB,yBA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AAsE;;;;;;;;;2CAAT;;;;;;;;;;;sIAA7D,KAAsE;;;gHAAF;;;;KAAE;IACtE;;;;;uCAAA;;;;;;;;;;;;;;;;4GAAoF;;;;;;uCAApF;;;;;;;;;;;;4GAAoF;;;;;;;;;;;;;;uCAApF;;;;;;;;;;;;;;;4GAAoF;;;;;;;;;;;;;;uCAApF;;;;;;;;;;;;;;;;;4GAAoF;;;;;;;;;KAAA;;;;;;;;;;;;;;;;"
8
8
  }
@@ -10,9 +10,7 @@
10
10
  { "name": "%respondBidirectionalEvent.5", "type": "Scalar<BLS12-381>" },
11
11
  { "name": "%respondBidirectionalEvent.6", "type": "Scalar<BLS12-381>" },
12
12
  { "name": "%respondBidirectionalEvent.7", "type": "Scalar<BLS12-381>" },
13
- { "name": "%respondBidirectionalEvent.8", "type": "Scalar<BLS12-381>" },
14
- { "name": "%respondBidirectionalEvent.9", "type": "Scalar<BLS12-381>" },
15
- { "name": "%respondBidirectionalEvent.10", "type": "Scalar<BLS12-381>" }
13
+ { "name": "%respondBidirectionalEvent.8", "type": "Scalar<BLS12-381>" }
16
14
  ],
17
15
  "outputs": [
18
16
  ],
@@ -26,30 +24,28 @@
26
24
  { "op": "constrain_bits", "val": "%respondBidirectionalEvent.6", "bits": 8 },
27
25
  { "op": "constrain_bits", "val": "%respondBidirectionalEvent.7", "bits": 248 },
28
26
  { "op": "constrain_bits", "val": "%respondBidirectionalEvent.8", "bits": 8 },
29
- { "op": "constrain_bits", "val": "%respondBidirectionalEvent.9", "bits": 248 },
30
- { "op": "constrain_bits", "val": "%respondBidirectionalEvent.10", "bits": 8 },
31
- { "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.11", "guard": null },
27
+ { "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.9", "guard": null },
32
28
  { "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
33
29
  { "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "0x04"] },
34
30
  { "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
35
31
  { "op": "impact", "guard": "0x01", "inputs": ["0x18"] },
36
- { "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.11"] },
37
- { "op": "cond_select", "output": "%t.12", "bit": "%t.11", "a": "0x00", "b": "0x01" },
38
- { "op": "impact", "guard": "%t.12", "inputs": ["0x70", "0x01", "0x01", "0x04"] },
39
- { "op": "impact", "guard": "%t.12", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
40
- { "op": "impact", "guard": "%t.12", "inputs": ["0x11", "0x01", "0x01", "0x08", "0x00"] },
41
- { "op": "impact", "guard": "%t.12", "inputs": ["0x91"] },
42
- { "op": "impact", "guard": "%t.12", "inputs": ["0xa1"] },
43
- { "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%count.13", "guard": null },
32
+ { "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.9"] },
33
+ { "op": "cond_select", "output": "%t.10", "bit": "%t.9", "a": "0x00", "b": "0x01" },
34
+ { "op": "impact", "guard": "%t.10", "inputs": ["0x70", "0x01", "0x01", "0x04"] },
35
+ { "op": "impact", "guard": "%t.10", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
36
+ { "op": "impact", "guard": "%t.10", "inputs": ["0x11", "0x01", "0x01", "0x08", "0x00"] },
37
+ { "op": "impact", "guard": "%t.10", "inputs": ["0x91"] },
38
+ { "op": "impact", "guard": "%t.10", "inputs": ["0xa1"] },
39
+ { "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%count.11", "guard": null },
44
40
  { "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
45
41
  { "op": "impact", "guard": "0x01", "inputs": ["0x51", "0x01", "0x01", "0x04", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
46
- { "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x08", "%count.13"] },
42
+ { "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x08", "%count.11"] },
47
43
  { "op": "impact", "guard": "0x01", "inputs": ["0x71", "0x01", "0x01", "0x04", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
48
44
  { "op": "impact", "guard": "0x01", "inputs": ["0x0e", "0x01"] },
49
45
  { "op": "impact", "guard": "0x01", "inputs": ["0xa2"] },
50
46
  { "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "0x05"] },
51
- { "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x02", "0x08", "0x20", "%count.13", "%requestId.0", "%requestId.1"] },
52
- { "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x05", "0x20", "0x20", "0x20", "0x20", "0x01", "%respondBidirectionalEvent.2", "%respondBidirectionalEvent.3", "%respondBidirectionalEvent.4", "%respondBidirectionalEvent.5", "%respondBidirectionalEvent.6", "%respondBidirectionalEvent.7", "%respondBidirectionalEvent.8", "%respondBidirectionalEvent.9", "%respondBidirectionalEvent.10"] },
47
+ { "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x02", "0x08", "0x20", "%count.11", "%requestId.0", "%requestId.1"] },
48
+ { "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x04", "0x20", "0x20", "0x20", "0x01", "%respondBidirectionalEvent.2", "%respondBidirectionalEvent.3", "%respondBidirectionalEvent.4", "%respondBidirectionalEvent.5", "%respondBidirectionalEvent.6", "%respondBidirectionalEvent.7", "%respondBidirectionalEvent.8"] },
53
49
  { "op": "impact", "guard": "0x01", "inputs": ["0x91"] },
54
50
  { "op": "impact", "guard": "0x01", "inputs": ["0xa1"] }
55
51
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sig-net/midnight-contract",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sig-net/midnight-integration",
@@ -42,7 +42,7 @@
42
42
  "@midnight-ntwrk/midnight-js": "5.0.0-beta.4"
43
43
  },
44
44
  "devDependencies": {
45
- "@sig-net/midnight": "^0.12.0",
45
+ "@sig-net/midnight": "^0.14.0",
46
46
  "@types/node": "^26.1.0",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "^4.1.9"