@sig-net/midnight 0.23.0 → 0.24.0-rc.1
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/README.md +1 -1
- package/dist/compact-descriptors.d.ts +2 -2
- package/dist/compact-descriptors.d.ts.map +1 -1
- package/dist/compact-descriptors.js +10 -3
- package/dist/compact-descriptors.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +6 -4
- package/dist/ecdsa-attestation.d.ts.map +1 -1
- package/dist/ecdsa-attestation.js +8 -5
- package/dist/ecdsa-attestation.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +35 -0
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +10 -0
- package/dist/managed/contract/index.js +192 -107
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.d.ts +29 -5
- package/dist/mpc-output-cache.d.ts.map +1 -1
- package/dist/mpc-output-cache.js +40 -6
- package/dist/mpc-output-cache.js.map +1 -1
- package/dist/signature-requests-state-reader.d.ts +6 -13
- package/dist/signature-requests-state-reader.d.ts.map +1 -1
- package/dist/signature-requests-state-reader.js +9 -15
- package/dist/signature-requests-state-reader.js.map +1 -1
- package/dist/signet-evtype2tx-record-decoding.js +2 -2
- package/dist/signet-request-response-reader.d.ts +4 -2
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +9 -6
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +0 -2
- package/dist/signet-requests.d.ts.map +1 -1
- package/dist/signet-requests.js +1 -2
- package/dist/signet-requests.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +8 -9
- package/src/circuits.compact +10 -4
|
@@ -3,7 +3,9 @@ __compactRuntime.checkRuntimeVersion('0.18.0-rc.1');
|
|
|
3
3
|
|
|
4
4
|
const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
|
|
5
5
|
|
|
6
|
-
const _descriptor_1 = new __compactRuntime.
|
|
6
|
+
const _descriptor_1 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
7
|
+
|
|
8
|
+
const _descriptor_2 = new __compactRuntime.CompactTypeBytes(100);
|
|
7
9
|
|
|
8
10
|
class _AffinePoint_0 {
|
|
9
11
|
alignment() {
|
|
@@ -20,57 +22,57 @@ class _AffinePoint_0 {
|
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
const
|
|
25
|
+
const _descriptor_3 = new _AffinePoint_0();
|
|
24
26
|
|
|
25
|
-
const
|
|
27
|
+
const _descriptor_4 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
|
|
26
28
|
|
|
27
29
|
class _Signature_0 {
|
|
28
30
|
alignment() {
|
|
29
|
-
return
|
|
31
|
+
return _descriptor_3.alignment().concat(_descriptor_0.alignment().concat(_descriptor_4.alignment()));
|
|
30
32
|
}
|
|
31
33
|
fromValue(value_0) {
|
|
32
34
|
return {
|
|
33
|
-
bigR:
|
|
35
|
+
bigR: _descriptor_3.fromValue(value_0),
|
|
34
36
|
s: _descriptor_0.fromValue(value_0),
|
|
35
|
-
recoveryId:
|
|
37
|
+
recoveryId: _descriptor_4.fromValue(value_0)
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
toValue(value_0) {
|
|
39
|
-
return
|
|
41
|
+
return _descriptor_3.toValue(value_0.bigR).concat(_descriptor_0.toValue(value_0.s).concat(_descriptor_4.toValue(value_0.recoveryId)));
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
const
|
|
45
|
+
const _descriptor_5 = new _Signature_0();
|
|
44
46
|
|
|
45
47
|
class _RespondBidirectionalEvent_0 {
|
|
46
48
|
alignment() {
|
|
47
|
-
return
|
|
49
|
+
return _descriptor_5.alignment();
|
|
48
50
|
}
|
|
49
51
|
fromValue(value_0) {
|
|
50
52
|
return {
|
|
51
|
-
signature:
|
|
53
|
+
signature: _descriptor_5.fromValue(value_0)
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
toValue(value_0) {
|
|
55
|
-
return
|
|
57
|
+
return _descriptor_5.toValue(value_0.signature);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
const
|
|
61
|
+
const _descriptor_6 = new _RespondBidirectionalEvent_0();
|
|
60
62
|
|
|
61
|
-
const
|
|
63
|
+
const _descriptor_7 = __compactRuntime.CompactTypeSecp256k1Point;
|
|
62
64
|
|
|
63
|
-
const
|
|
65
|
+
const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
|
|
64
66
|
|
|
65
|
-
const
|
|
67
|
+
const _descriptor_9 = new __compactRuntime.CompactTypeBytes(2);
|
|
66
68
|
|
|
67
|
-
const
|
|
69
|
+
const _descriptor_10 = new __compactRuntime.CompactTypeBytes(1);
|
|
68
70
|
|
|
69
|
-
const
|
|
71
|
+
const _descriptor_11 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
|
|
70
72
|
|
|
71
|
-
const
|
|
73
|
+
const _descriptor_12 = new __compactRuntime.CompactTypeBytes(20);
|
|
72
74
|
|
|
73
|
-
const
|
|
75
|
+
const _descriptor_13 = __compactRuntime.CompactTypeSecp256k1Scalar;
|
|
74
76
|
|
|
75
77
|
class _ContractAddress_0 {
|
|
76
78
|
alignment() {
|
|
@@ -86,48 +88,47 @@ class _ContractAddress_0 {
|
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
const
|
|
91
|
+
const _descriptor_14 = new _ContractAddress_0();
|
|
90
92
|
|
|
91
|
-
const
|
|
93
|
+
const _descriptor_15 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
|
|
92
94
|
|
|
93
|
-
const
|
|
95
|
+
const _descriptor_16 = new __compactRuntime.CompactTypeBytes(128);
|
|
94
96
|
|
|
95
97
|
class _SignBidirectionalEventNotification_0 {
|
|
96
98
|
alignment() {
|
|
97
|
-
return
|
|
99
|
+
return _descriptor_4.alignment().concat(_descriptor_16.alignment());
|
|
98
100
|
}
|
|
99
101
|
fromValue(value_0) {
|
|
100
102
|
return {
|
|
101
|
-
version:
|
|
102
|
-
payload:
|
|
103
|
+
version: _descriptor_4.fromValue(value_0),
|
|
104
|
+
payload: _descriptor_16.fromValue(value_0)
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
toValue(value_0) {
|
|
106
|
-
return
|
|
108
|
+
return _descriptor_4.toValue(value_0.version).concat(_descriptor_16.toValue(value_0.payload));
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
const _descriptor_17 = __compactRuntime.CompactTypeSecp256k1Base;
|
|
112
|
+
const _descriptor_17 = new _SignBidirectionalEventNotification_0();
|
|
113
113
|
|
|
114
|
-
const _descriptor_18 = __compactRuntime.
|
|
114
|
+
const _descriptor_18 = __compactRuntime.CompactTypeSecp256k1Base;
|
|
115
115
|
|
|
116
|
-
const _descriptor_19 =
|
|
116
|
+
const _descriptor_19 = __compactRuntime.CompactTypeField;
|
|
117
117
|
|
|
118
118
|
class _tuple_0 {
|
|
119
119
|
alignment() {
|
|
120
|
-
return _descriptor_0.alignment().concat(
|
|
120
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment())));
|
|
121
121
|
}
|
|
122
122
|
fromValue(value_0) {
|
|
123
123
|
return [
|
|
124
124
|
_descriptor_0.fromValue(value_0),
|
|
125
|
-
|
|
126
|
-
_descriptor_1.fromValue(value_0)
|
|
125
|
+
_descriptor_1.fromValue(value_0),
|
|
126
|
+
_descriptor_1.fromValue(value_0),
|
|
127
|
+
_descriptor_2.fromValue(value_0)
|
|
127
128
|
]
|
|
128
129
|
}
|
|
129
130
|
toValue(value_0) {
|
|
130
|
-
return _descriptor_0.toValue(value_0[0]).concat(
|
|
131
|
+
return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]))));
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
|
|
@@ -135,17 +136,18 @@ const _descriptor_20 = new _tuple_0();
|
|
|
135
136
|
|
|
136
137
|
class _tuple_1 {
|
|
137
138
|
alignment() {
|
|
138
|
-
return _descriptor_0.alignment().concat(
|
|
139
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment())));
|
|
139
140
|
}
|
|
140
141
|
fromValue(value_0) {
|
|
141
142
|
return [
|
|
142
143
|
_descriptor_0.fromValue(value_0),
|
|
143
|
-
|
|
144
|
+
_descriptor_1.fromValue(value_0),
|
|
145
|
+
_descriptor_1.fromValue(value_0),
|
|
144
146
|
_descriptor_0.fromValue(value_0)
|
|
145
147
|
]
|
|
146
148
|
}
|
|
147
149
|
toValue(value_0) {
|
|
148
|
-
return _descriptor_0.toValue(value_0[0]).concat(
|
|
150
|
+
return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]))));
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
|
|
@@ -153,17 +155,18 @@ const _descriptor_21 = new _tuple_1();
|
|
|
153
155
|
|
|
154
156
|
class _tuple_2 {
|
|
155
157
|
alignment() {
|
|
156
|
-
return _descriptor_0.alignment().concat(
|
|
158
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_10.alignment())));
|
|
157
159
|
}
|
|
158
160
|
fromValue(value_0) {
|
|
159
161
|
return [
|
|
160
162
|
_descriptor_0.fromValue(value_0),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
_descriptor_1.fromValue(value_0),
|
|
164
|
+
_descriptor_1.fromValue(value_0),
|
|
165
|
+
_descriptor_10.fromValue(value_0)
|
|
163
166
|
]
|
|
164
167
|
}
|
|
165
168
|
toValue(value_0) {
|
|
166
|
-
return _descriptor_0.toValue(value_0[0]).concat(
|
|
169
|
+
return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_10.toValue(value_0[3]))));
|
|
167
170
|
}
|
|
168
171
|
}
|
|
169
172
|
|
|
@@ -171,17 +174,18 @@ const _descriptor_22 = new _tuple_2();
|
|
|
171
174
|
|
|
172
175
|
class _tuple_3 {
|
|
173
176
|
alignment() {
|
|
174
|
-
return _descriptor_0.alignment().concat(
|
|
177
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_9.alignment())));
|
|
175
178
|
}
|
|
176
179
|
fromValue(value_0) {
|
|
177
180
|
return [
|
|
178
181
|
_descriptor_0.fromValue(value_0),
|
|
179
|
-
|
|
180
|
-
|
|
182
|
+
_descriptor_1.fromValue(value_0),
|
|
183
|
+
_descriptor_1.fromValue(value_0),
|
|
184
|
+
_descriptor_9.fromValue(value_0)
|
|
181
185
|
]
|
|
182
186
|
}
|
|
183
187
|
toValue(value_0) {
|
|
184
|
-
return _descriptor_0.toValue(value_0[0]).concat(
|
|
188
|
+
return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_9.toValue(value_0[3]))));
|
|
185
189
|
}
|
|
186
190
|
}
|
|
187
191
|
|
|
@@ -189,16 +193,16 @@ const _descriptor_23 = new _tuple_3();
|
|
|
189
193
|
|
|
190
194
|
class _Secp256k1EcdsaSignature_0 {
|
|
191
195
|
alignment() {
|
|
192
|
-
return
|
|
196
|
+
return _descriptor_13.alignment().concat(_descriptor_13.alignment());
|
|
193
197
|
}
|
|
194
198
|
fromValue(value_0) {
|
|
195
199
|
return {
|
|
196
|
-
r:
|
|
197
|
-
s:
|
|
200
|
+
r: _descriptor_13.fromValue(value_0),
|
|
201
|
+
s: _descriptor_13.fromValue(value_0)
|
|
198
202
|
}
|
|
199
203
|
}
|
|
200
204
|
toValue(value_0) {
|
|
201
|
-
return
|
|
205
|
+
return _descriptor_13.toValue(value_0.r).concat(_descriptor_13.toValue(value_0.s));
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
208
|
|
|
@@ -206,17 +210,17 @@ const _descriptor_24 = new _Secp256k1EcdsaSignature_0();
|
|
|
206
210
|
|
|
207
211
|
class _Either_0 {
|
|
208
212
|
alignment() {
|
|
209
|
-
return
|
|
213
|
+
return _descriptor_8.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
|
|
210
214
|
}
|
|
211
215
|
fromValue(value_0) {
|
|
212
216
|
return {
|
|
213
|
-
is_left:
|
|
217
|
+
is_left: _descriptor_8.fromValue(value_0),
|
|
214
218
|
left: _descriptor_0.fromValue(value_0),
|
|
215
219
|
right: _descriptor_0.fromValue(value_0)
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
222
|
toValue(value_0) {
|
|
219
|
-
return
|
|
223
|
+
return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
|
|
220
224
|
}
|
|
221
225
|
}
|
|
222
226
|
|
|
@@ -427,32 +431,50 @@ export class Contract {
|
|
|
427
431
|
...Array.from(new Uint8Array(91), BigInt)],
|
|
428
432
|
Number) };
|
|
429
433
|
}
|
|
430
|
-
_calculateSignetAttestationDigest_0(requestId_0,
|
|
434
|
+
_calculateSignetAttestationDigest_0(requestId_0,
|
|
435
|
+
blockHeight_0,
|
|
436
|
+
serializedOutput_0)
|
|
437
|
+
{
|
|
431
438
|
return this._upgradeFromTransient_0(this._transientHash_0([requestId_0,
|
|
439
|
+
blockHeight_0,
|
|
432
440
|
1n,
|
|
433
441
|
serializedOutput_0]));
|
|
434
442
|
}
|
|
435
|
-
_calculateSignetAttestationDigest_1(requestId_0,
|
|
443
|
+
_calculateSignetAttestationDigest_1(requestId_0,
|
|
444
|
+
blockHeight_0,
|
|
445
|
+
serializedOutput_0)
|
|
446
|
+
{
|
|
436
447
|
return this._upgradeFromTransient_0(this._transientHash_1([requestId_0,
|
|
448
|
+
blockHeight_0,
|
|
437
449
|
2n,
|
|
438
450
|
serializedOutput_0]));
|
|
439
451
|
}
|
|
440
|
-
_calculateSignetAttestationDigest_2(requestId_0,
|
|
452
|
+
_calculateSignetAttestationDigest_2(requestId_0,
|
|
453
|
+
blockHeight_0,
|
|
454
|
+
serializedOutput_0)
|
|
455
|
+
{
|
|
441
456
|
return this._upgradeFromTransient_0(this._transientHash_2([requestId_0,
|
|
457
|
+
blockHeight_0,
|
|
442
458
|
100n,
|
|
443
459
|
serializedOutput_0]));
|
|
444
460
|
}
|
|
445
|
-
_calculateSignetAttestationDigest_3(requestId_0,
|
|
461
|
+
_calculateSignetAttestationDigest_3(requestId_0,
|
|
462
|
+
blockHeight_0,
|
|
463
|
+
serializedOutput_0)
|
|
464
|
+
{
|
|
446
465
|
return this._upgradeFromTransient_0(this._transientHash_3([requestId_0,
|
|
466
|
+
blockHeight_0,
|
|
447
467
|
32n,
|
|
448
468
|
serializedOutput_0]));
|
|
449
469
|
}
|
|
450
470
|
_verifyRespondBidirectionalEvent_0(requestId_0,
|
|
471
|
+
blockHeight_0,
|
|
451
472
|
serializedOutput_0,
|
|
452
473
|
respondBidirectionalEvent_0,
|
|
453
474
|
mpcResponseKey_0)
|
|
454
475
|
{
|
|
455
476
|
const digest_0 = this._calculateSignetAttestationDigest_3(requestId_0,
|
|
477
|
+
blockHeight_0,
|
|
456
478
|
serializedOutput_0);
|
|
457
479
|
return this._secp256k1EcdsaVerify_0(digest_0,
|
|
458
480
|
{ r:
|
|
@@ -460,13 +482,13 @@ export class Contract {
|
|
|
460
482
|
32,
|
|
461
483
|
respondBidirectionalEvent_0.signature.bigR.x,
|
|
462
484
|
'Secp256k1Scalar',
|
|
463
|
-
'Signet.compact line
|
|
485
|
+
'Signet.compact line 346 char 12'),
|
|
464
486
|
s:
|
|
465
487
|
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
466
488
|
32,
|
|
467
489
|
respondBidirectionalEvent_0.signature.s,
|
|
468
490
|
'Secp256k1Scalar',
|
|
469
|
-
'Signet.compact line
|
|
491
|
+
'Signet.compact line 347 char 12') },
|
|
470
492
|
mpcResponseKey_0);
|
|
471
493
|
}
|
|
472
494
|
_ethereumCaip2Id_0() {
|
|
@@ -480,7 +502,7 @@ export class Contract {
|
|
|
480
502
|
_numericAbiWord_0(value_0) {
|
|
481
503
|
const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
|
|
482
504
|
value_0,
|
|
483
|
-
'Signet.compact line
|
|
505
|
+
'Signet.compact line 436 char 17'),
|
|
484
506
|
BigInt);
|
|
485
507
|
return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
|
|
486
508
|
le_0[15],
|
|
@@ -562,7 +584,7 @@ export class Contract {
|
|
|
562
584
|
v_0[31]);
|
|
563
585
|
return ((t1) => {
|
|
564
586
|
if (t1 > 340282366920938463463374607431768211455n) {
|
|
565
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
587
|
+
throw new __compactRuntime.CompactError('Signet.compact line 488 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
|
|
566
588
|
}
|
|
567
589
|
return t1;
|
|
568
590
|
})(b15_0);
|
|
@@ -573,7 +595,7 @@ export class Contract {
|
|
|
573
595
|
((e, i) => e.slice(i, i+31))(word_0,
|
|
574
596
|
Number(0n)),
|
|
575
597
|
'Field',
|
|
576
|
-
'Signet.compact line
|
|
598
|
+
'Signet.compact line 494 char 12')
|
|
577
599
|
===
|
|
578
600
|
0n,
|
|
579
601
|
'ABI word is not a canonical Boolean');
|
|
@@ -582,33 +604,51 @@ export class Contract {
|
|
|
582
604
|
((e, i) => e.slice(i, i+1))(word_0,
|
|
583
605
|
Number(31n)),
|
|
584
606
|
'Field',
|
|
585
|
-
'Signet.compact line
|
|
607
|
+
'Signet.compact line 495 char 18');
|
|
586
608
|
__compactRuntime.assert(last_0 === 0n || last_0 === 1n,
|
|
587
609
|
'ABI word is not a canonical Boolean');
|
|
588
610
|
return last_0 === 1n;
|
|
589
611
|
}
|
|
590
|
-
_calculateSignetAttestationDigest1_0(requestId_0,
|
|
612
|
+
_calculateSignetAttestationDigest1_0(requestId_0,
|
|
613
|
+
blockHeight_0,
|
|
614
|
+
serializedOutput_0)
|
|
615
|
+
{
|
|
591
616
|
return this._calculateSignetAttestationDigest_0(requestId_0,
|
|
617
|
+
blockHeight_0,
|
|
592
618
|
serializedOutput_0);
|
|
593
619
|
}
|
|
594
|
-
_calculateSignetAttestationDigest2_0(requestId_0,
|
|
620
|
+
_calculateSignetAttestationDigest2_0(requestId_0,
|
|
621
|
+
blockHeight_0,
|
|
622
|
+
serializedOutput_0)
|
|
623
|
+
{
|
|
595
624
|
return this._calculateSignetAttestationDigest_1(requestId_0,
|
|
625
|
+
blockHeight_0,
|
|
596
626
|
serializedOutput_0);
|
|
597
627
|
}
|
|
598
|
-
_calculateSignetAttestationDigest32_0(requestId_0,
|
|
628
|
+
_calculateSignetAttestationDigest32_0(requestId_0,
|
|
629
|
+
blockHeight_0,
|
|
630
|
+
serializedOutput_0)
|
|
631
|
+
{
|
|
599
632
|
return this._calculateSignetAttestationDigest_3(requestId_0,
|
|
633
|
+
blockHeight_0,
|
|
600
634
|
serializedOutput_0);
|
|
601
635
|
}
|
|
602
|
-
_calculateSignetAttestationDigest100_0(requestId_0,
|
|
636
|
+
_calculateSignetAttestationDigest100_0(requestId_0,
|
|
637
|
+
blockHeight_0,
|
|
638
|
+
serializedOutput_0)
|
|
639
|
+
{
|
|
603
640
|
return this._calculateSignetAttestationDigest_2(requestId_0,
|
|
641
|
+
blockHeight_0,
|
|
604
642
|
serializedOutput_0);
|
|
605
643
|
}
|
|
606
644
|
_verifyRespondBidirectionalEvent32_0(requestId_0,
|
|
645
|
+
blockHeight_0,
|
|
607
646
|
serializedOutput_0,
|
|
608
647
|
respondBidirectionalEvent_0,
|
|
609
648
|
mpcResponseKey_0)
|
|
610
649
|
{
|
|
611
650
|
return this._verifyRespondBidirectionalEvent_0(requestId_0,
|
|
651
|
+
blockHeight_0,
|
|
612
652
|
serializedOutput_0,
|
|
613
653
|
respondBidirectionalEvent_0,
|
|
614
654
|
mpcResponseKey_0);
|
|
@@ -645,21 +685,21 @@ export const pureCircuits = {
|
|
|
645
685
|
if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
|
|
646
686
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
647
687
|
'argument 1',
|
|
648
|
-
'Signet.compact line
|
|
688
|
+
'Signet.compact line 235 char 3',
|
|
649
689
|
'struct ContractAddress<bytes: Bytes<32>>',
|
|
650
690
|
callerAddress_0)
|
|
651
691
|
}
|
|
652
692
|
if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
|
|
653
693
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
654
694
|
'argument 2',
|
|
655
|
-
'Signet.compact line
|
|
695
|
+
'Signet.compact line 235 char 3',
|
|
656
696
|
'Uint<0..256>',
|
|
657
697
|
requestsPathDepth_0)
|
|
658
698
|
}
|
|
659
699
|
if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
|
|
660
700
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
661
701
|
'argument 3',
|
|
662
|
-
'Signet.compact line
|
|
702
|
+
'Signet.compact line 235 char 3',
|
|
663
703
|
'Vector<4, Uint<0..256>>',
|
|
664
704
|
requestsPath_0)
|
|
665
705
|
}
|
|
@@ -681,7 +721,7 @@ export const pureCircuits = {
|
|
|
681
721
|
if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
|
|
682
722
|
__compactRuntime.typeError('evmAddressAbiWord',
|
|
683
723
|
'argument 1',
|
|
684
|
-
'Signet.compact line
|
|
724
|
+
'Signet.compact line 427 char 3',
|
|
685
725
|
'Bytes<20>',
|
|
686
726
|
addr_0)
|
|
687
727
|
}
|
|
@@ -695,7 +735,7 @@ export const pureCircuits = {
|
|
|
695
735
|
if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
|
|
696
736
|
__compactRuntime.typeError('numericAbiWord',
|
|
697
737
|
'argument 1',
|
|
698
|
-
'Signet.compact line
|
|
738
|
+
'Signet.compact line 433 char 3',
|
|
699
739
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
700
740
|
value_0)
|
|
701
741
|
}
|
|
@@ -709,7 +749,7 @@ export const pureCircuits = {
|
|
|
709
749
|
if (!(typeof(value_0) === 'boolean')) {
|
|
710
750
|
__compactRuntime.typeError('boolAbiWord',
|
|
711
751
|
'argument 1',
|
|
712
|
-
'Signet.compact line
|
|
752
|
+
'Signet.compact line 446 char 3',
|
|
713
753
|
'Boolean',
|
|
714
754
|
value_0)
|
|
715
755
|
}
|
|
@@ -723,7 +763,7 @@ export const pureCircuits = {
|
|
|
723
763
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
724
764
|
__compactRuntime.typeError('abiWordToUint128',
|
|
725
765
|
'argument 1',
|
|
726
|
-
'Signet.compact line
|
|
766
|
+
'Signet.compact line 454 char 3',
|
|
727
767
|
'Bytes<32>',
|
|
728
768
|
word_0)
|
|
729
769
|
}
|
|
@@ -737,18 +777,19 @@ export const pureCircuits = {
|
|
|
737
777
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
738
778
|
__compactRuntime.typeError('abiWordToBool',
|
|
739
779
|
'argument 1',
|
|
740
|
-
'Signet.compact line
|
|
780
|
+
'Signet.compact line 493 char 3',
|
|
741
781
|
'Bytes<32>',
|
|
742
782
|
word_0)
|
|
743
783
|
}
|
|
744
784
|
return _dummyContract._abiWordToBool_0(word_0);
|
|
745
785
|
},
|
|
746
786
|
calculateSignetAttestationDigest1: (...args_0) => {
|
|
747
|
-
if (args_0.length !==
|
|
748
|
-
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected
|
|
787
|
+
if (args_0.length !== 3) {
|
|
788
|
+
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
749
789
|
}
|
|
750
790
|
const requestId_0 = args_0[0];
|
|
751
|
-
const
|
|
791
|
+
const blockHeight_0 = args_0[1];
|
|
792
|
+
const serializedOutput_0 = args_0[2];
|
|
752
793
|
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
753
794
|
__compactRuntime.typeError('calculateSignetAttestationDigest1',
|
|
754
795
|
'argument 1',
|
|
@@ -756,115 +797,159 @@ export const pureCircuits = {
|
|
|
756
797
|
'Bytes<32>',
|
|
757
798
|
requestId_0)
|
|
758
799
|
}
|
|
759
|
-
if (!(
|
|
800
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
760
801
|
__compactRuntime.typeError('calculateSignetAttestationDigest1',
|
|
761
802
|
'argument 2',
|
|
762
803
|
'circuits.compact line 28 char 1',
|
|
804
|
+
'Uint<0..18446744073709551616>',
|
|
805
|
+
blockHeight_0)
|
|
806
|
+
}
|
|
807
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
|
|
808
|
+
__compactRuntime.typeError('calculateSignetAttestationDigest1',
|
|
809
|
+
'argument 3',
|
|
810
|
+
'circuits.compact line 28 char 1',
|
|
763
811
|
'Bytes<1>',
|
|
764
812
|
serializedOutput_0)
|
|
765
813
|
}
|
|
766
814
|
return _dummyContract._calculateSignetAttestationDigest1_0(requestId_0,
|
|
815
|
+
blockHeight_0,
|
|
767
816
|
serializedOutput_0);
|
|
768
817
|
},
|
|
769
818
|
calculateSignetAttestationDigest2: (...args_0) => {
|
|
770
|
-
if (args_0.length !==
|
|
771
|
-
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected
|
|
819
|
+
if (args_0.length !== 3) {
|
|
820
|
+
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
772
821
|
}
|
|
773
822
|
const requestId_0 = args_0[0];
|
|
774
|
-
const
|
|
823
|
+
const blockHeight_0 = args_0[1];
|
|
824
|
+
const serializedOutput_0 = args_0[2];
|
|
775
825
|
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
776
826
|
__compactRuntime.typeError('calculateSignetAttestationDigest2',
|
|
777
827
|
'argument 1',
|
|
778
|
-
'circuits.compact line
|
|
828
|
+
'circuits.compact line 36 char 1',
|
|
779
829
|
'Bytes<32>',
|
|
780
830
|
requestId_0)
|
|
781
831
|
}
|
|
782
|
-
if (!(
|
|
832
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
783
833
|
__compactRuntime.typeError('calculateSignetAttestationDigest2',
|
|
784
834
|
'argument 2',
|
|
785
|
-
'circuits.compact line
|
|
835
|
+
'circuits.compact line 36 char 1',
|
|
836
|
+
'Uint<0..18446744073709551616>',
|
|
837
|
+
blockHeight_0)
|
|
838
|
+
}
|
|
839
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
|
|
840
|
+
__compactRuntime.typeError('calculateSignetAttestationDigest2',
|
|
841
|
+
'argument 3',
|
|
842
|
+
'circuits.compact line 36 char 1',
|
|
786
843
|
'Bytes<2>',
|
|
787
844
|
serializedOutput_0)
|
|
788
845
|
}
|
|
789
846
|
return _dummyContract._calculateSignetAttestationDigest2_0(requestId_0,
|
|
847
|
+
blockHeight_0,
|
|
790
848
|
serializedOutput_0);
|
|
791
849
|
},
|
|
792
850
|
calculateSignetAttestationDigest32: (...args_0) => {
|
|
793
|
-
if (args_0.length !==
|
|
794
|
-
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected
|
|
851
|
+
if (args_0.length !== 3) {
|
|
852
|
+
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
795
853
|
}
|
|
796
854
|
const requestId_0 = args_0[0];
|
|
797
|
-
const
|
|
855
|
+
const blockHeight_0 = args_0[1];
|
|
856
|
+
const serializedOutput_0 = args_0[2];
|
|
798
857
|
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
799
858
|
__compactRuntime.typeError('calculateSignetAttestationDigest32',
|
|
800
859
|
'argument 1',
|
|
801
|
-
'circuits.compact line
|
|
860
|
+
'circuits.compact line 44 char 1',
|
|
802
861
|
'Bytes<32>',
|
|
803
862
|
requestId_0)
|
|
804
863
|
}
|
|
805
|
-
if (!(
|
|
864
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
806
865
|
__compactRuntime.typeError('calculateSignetAttestationDigest32',
|
|
807
866
|
'argument 2',
|
|
808
|
-
'circuits.compact line
|
|
867
|
+
'circuits.compact line 44 char 1',
|
|
868
|
+
'Uint<0..18446744073709551616>',
|
|
869
|
+
blockHeight_0)
|
|
870
|
+
}
|
|
871
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
872
|
+
__compactRuntime.typeError('calculateSignetAttestationDigest32',
|
|
873
|
+
'argument 3',
|
|
874
|
+
'circuits.compact line 44 char 1',
|
|
809
875
|
'Bytes<32>',
|
|
810
876
|
serializedOutput_0)
|
|
811
877
|
}
|
|
812
878
|
return _dummyContract._calculateSignetAttestationDigest32_0(requestId_0,
|
|
879
|
+
blockHeight_0,
|
|
813
880
|
serializedOutput_0);
|
|
814
881
|
},
|
|
815
882
|
calculateSignetAttestationDigest100: (...args_0) => {
|
|
816
|
-
if (args_0.length !==
|
|
817
|
-
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected
|
|
883
|
+
if (args_0.length !== 3) {
|
|
884
|
+
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
818
885
|
}
|
|
819
886
|
const requestId_0 = args_0[0];
|
|
820
|
-
const
|
|
887
|
+
const blockHeight_0 = args_0[1];
|
|
888
|
+
const serializedOutput_0 = args_0[2];
|
|
821
889
|
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
822
890
|
__compactRuntime.typeError('calculateSignetAttestationDigest100',
|
|
823
891
|
'argument 1',
|
|
824
|
-
'circuits.compact line
|
|
892
|
+
'circuits.compact line 52 char 1',
|
|
825
893
|
'Bytes<32>',
|
|
826
894
|
requestId_0)
|
|
827
895
|
}
|
|
828
|
-
if (!(
|
|
896
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
829
897
|
__compactRuntime.typeError('calculateSignetAttestationDigest100',
|
|
830
898
|
'argument 2',
|
|
831
|
-
'circuits.compact line
|
|
899
|
+
'circuits.compact line 52 char 1',
|
|
900
|
+
'Uint<0..18446744073709551616>',
|
|
901
|
+
blockHeight_0)
|
|
902
|
+
}
|
|
903
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
|
|
904
|
+
__compactRuntime.typeError('calculateSignetAttestationDigest100',
|
|
905
|
+
'argument 3',
|
|
906
|
+
'circuits.compact line 52 char 1',
|
|
832
907
|
'Bytes<100>',
|
|
833
908
|
serializedOutput_0)
|
|
834
909
|
}
|
|
835
910
|
return _dummyContract._calculateSignetAttestationDigest100_0(requestId_0,
|
|
911
|
+
blockHeight_0,
|
|
836
912
|
serializedOutput_0);
|
|
837
913
|
},
|
|
838
914
|
verifyRespondBidirectionalEvent32: (...args_0) => {
|
|
839
|
-
if (args_0.length !==
|
|
840
|
-
throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected
|
|
915
|
+
if (args_0.length !== 5) {
|
|
916
|
+
throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected 5 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
841
917
|
}
|
|
842
918
|
const requestId_0 = args_0[0];
|
|
843
|
-
const
|
|
844
|
-
const
|
|
845
|
-
const
|
|
919
|
+
const blockHeight_0 = args_0[1];
|
|
920
|
+
const serializedOutput_0 = args_0[2];
|
|
921
|
+
const respondBidirectionalEvent_0 = args_0[3];
|
|
922
|
+
const mpcResponseKey_0 = args_0[4];
|
|
846
923
|
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
847
924
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
848
925
|
'argument 1',
|
|
849
|
-
'circuits.compact line
|
|
926
|
+
'circuits.compact line 60 char 1',
|
|
850
927
|
'Bytes<32>',
|
|
851
928
|
requestId_0)
|
|
852
929
|
}
|
|
853
|
-
if (!(
|
|
930
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
854
931
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
855
932
|
'argument 2',
|
|
856
|
-
'circuits.compact line
|
|
933
|
+
'circuits.compact line 60 char 1',
|
|
934
|
+
'Uint<0..18446744073709551616>',
|
|
935
|
+
blockHeight_0)
|
|
936
|
+
}
|
|
937
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
938
|
+
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
939
|
+
'argument 3',
|
|
940
|
+
'circuits.compact line 60 char 1',
|
|
857
941
|
'Bytes<32>',
|
|
858
942
|
serializedOutput_0)
|
|
859
943
|
}
|
|
860
944
|
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)) {
|
|
861
945
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
862
|
-
'argument
|
|
863
|
-
'circuits.compact line
|
|
946
|
+
'argument 4',
|
|
947
|
+
'circuits.compact line 60 char 1',
|
|
864
948
|
'struct RespondBidirectionalEvent<signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
865
949
|
respondBidirectionalEvent_0)
|
|
866
950
|
}
|
|
867
951
|
return _dummyContract._verifyRespondBidirectionalEvent32_0(requestId_0,
|
|
952
|
+
blockHeight_0,
|
|
868
953
|
serializedOutput_0,
|
|
869
954
|
respondBidirectionalEvent_0,
|
|
870
955
|
mpcResponseKey_0);
|