@sig-net/midnight 0.24.1 → 0.25.0-rc.2
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 +6 -5
- package/dist/compact-descriptors.d.ts +5 -7
- package/dist/compact-descriptors.d.ts.map +1 -1
- package/dist/compact-descriptors.js +6 -18
- package/dist/compact-descriptors.js.map +1 -1
- package/dist/constants.d.ts +5 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -2
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +54 -11
- package/dist/ecdsa-attestation.d.ts.map +1 -1
- package/dist/ecdsa-attestation.js +90 -39
- package/dist/ecdsa-attestation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +251 -143
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +75 -46
- package/dist/managed/contract/index.js +604 -585
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.js +2 -2
- package/dist/mpc-output-cache.js.map +1 -1
- package/dist/signet-contract-events.d.ts +15 -8
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +7 -4
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-evtype2tx-record-decoding.js +2 -2
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +12 -4
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +2 -2
- package/dist/signet-requests.js +2 -2
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +109 -45
- package/src/circuits.compact +40 -32
|
@@ -5,7 +5,8 @@ export enum HashDomain { requestId = 0,
|
|
|
5
5
|
evmType2TxHeader = 2,
|
|
6
6
|
evmType2TxWord = 3,
|
|
7
7
|
evmType2TxAccessEntry = 4,
|
|
8
|
-
evmType2TxStorageKey = 5
|
|
8
|
+
evmType2TxStorageKey = 5,
|
|
9
|
+
attestedOutput = 6
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export enum OutputKind { executed = 0, failed = 1, unviable = 2 }
|
|
@@ -34,6 +35,25 @@ export type PureCircuits = {
|
|
|
34
35
|
requestsPath_0: bigint[]): { version: bigint,
|
|
35
36
|
payload: Uint8Array
|
|
36
37
|
};
|
|
38
|
+
calculateSignetAttestationDigestV1(requestId_0: Uint8Array,
|
|
39
|
+
blockHeight_0: bigint,
|
|
40
|
+
outputKind_0: OutputKind,
|
|
41
|
+
serializedOutputLength_0: bigint,
|
|
42
|
+
outputHash_0: Uint8Array): Uint8Array;
|
|
43
|
+
verifyRespondBidirectionalAttestationV1(respondBidirectionalEvent_0: { requestId: Uint8Array,
|
|
44
|
+
blockHeight: bigint,
|
|
45
|
+
outputKind: OutputKind,
|
|
46
|
+
serializedOutputLength: bigint,
|
|
47
|
+
outputHash: Uint8Array,
|
|
48
|
+
digest: Uint8Array,
|
|
49
|
+
signature: { bigR: { x: Uint8Array,
|
|
50
|
+
y: Uint8Array
|
|
51
|
+
},
|
|
52
|
+
s: Uint8Array,
|
|
53
|
+
recoveryId: bigint
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
mpcResponseKey_0: __compactRuntime.Secp256k1Point): boolean;
|
|
37
57
|
ethereumCaip2Id(): Uint8Array;
|
|
38
58
|
evmAddressAbiWord(addr_0: Uint8Array): Uint8Array;
|
|
39
59
|
numericAbiWord(value_0: bigint): Uint8Array;
|
|
@@ -41,26 +61,17 @@ export type PureCircuits = {
|
|
|
41
61
|
abiWordToUint128(word_0: Uint8Array): bigint;
|
|
42
62
|
checkedTruncationU128(x_0: Uint8Array): bigint;
|
|
43
63
|
abiWordToBool(word_0: Uint8Array): boolean;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
serializedOutput_0: Uint8Array): Uint8Array;
|
|
56
|
-
calculateSignetAttestationDigest32(requestId_0: Uint8Array,
|
|
57
|
-
blockHeight_0: bigint,
|
|
58
|
-
outputKind_0: OutputKind,
|
|
59
|
-
serializedOutput_0: Uint8Array): Uint8Array;
|
|
60
|
-
calculateSignetAttestationDigest100(requestId_0: Uint8Array,
|
|
61
|
-
blockHeight_0: bigint,
|
|
62
|
-
outputKind_0: OutputKind,
|
|
63
|
-
serializedOutput_0: Uint8Array): Uint8Array;
|
|
64
|
+
calculateAttestedOutputHash0(serializedOutput_0: Uint8Array): Uint8Array;
|
|
65
|
+
calculateAttestedOutputHash1(serializedOutput_0: Uint8Array): Uint8Array;
|
|
66
|
+
calculateAttestedOutputHash2(serializedOutput_0: Uint8Array): Uint8Array;
|
|
67
|
+
calculateAttestedOutputHash32(serializedOutput_0: Uint8Array): Uint8Array;
|
|
68
|
+
calculateAttestedOutputHash100(serializedOutput_0: Uint8Array): Uint8Array;
|
|
69
|
+
verifyAttestedOutput1(serializedOutput_0: Uint8Array,
|
|
70
|
+
attestedOutputLength_0: bigint,
|
|
71
|
+
attestedOutputHash_0: Uint8Array): boolean;
|
|
72
|
+
verifyAttestedOutput2(serializedOutput_0: Uint8Array,
|
|
73
|
+
attestedOutputLength_0: bigint,
|
|
74
|
+
attestedOutputHash_0: Uint8Array): boolean;
|
|
64
75
|
calculateEvmType2TxParamsDigestV1_1_0_0(txParams_0: { chainId: bigint,
|
|
65
76
|
nonce: bigint,
|
|
66
77
|
maxPriorityFeePerGas: bigint,
|
|
@@ -166,6 +177,7 @@ export type PureCircuits = {
|
|
|
166
177
|
blockHeight: bigint,
|
|
167
178
|
outputKind: OutputKind,
|
|
168
179
|
serializedOutputLength: bigint,
|
|
180
|
+
outputHash: Uint8Array,
|
|
169
181
|
digest: Uint8Array,
|
|
170
182
|
signature: { bigR: { x: Uint8Array,
|
|
171
183
|
y: Uint8Array
|
|
@@ -180,6 +192,7 @@ export type PureCircuits = {
|
|
|
180
192
|
blockHeight: bigint,
|
|
181
193
|
outputKind: OutputKind,
|
|
182
194
|
serializedOutputLength: bigint,
|
|
195
|
+
outputHash: Uint8Array,
|
|
183
196
|
digest: Uint8Array,
|
|
184
197
|
signature: { bigR: { x: Uint8Array,
|
|
185
198
|
y: Uint8Array
|
|
@@ -269,6 +282,27 @@ export type Circuits<PS> = {
|
|
|
269
282
|
requestsPath_0: bigint[]): Promise<__compactRuntime.CircuitResults<PS, { version: bigint,
|
|
270
283
|
payload: Uint8Array
|
|
271
284
|
}>>;
|
|
285
|
+
calculateSignetAttestationDigestV1(context: __compactRuntime.CircuitContext<PS>,
|
|
286
|
+
requestId_0: Uint8Array,
|
|
287
|
+
blockHeight_0: bigint,
|
|
288
|
+
outputKind_0: OutputKind,
|
|
289
|
+
serializedOutputLength_0: bigint,
|
|
290
|
+
outputHash_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
291
|
+
verifyRespondBidirectionalAttestationV1(context: __compactRuntime.CircuitContext<PS>,
|
|
292
|
+
respondBidirectionalEvent_0: { requestId: Uint8Array,
|
|
293
|
+
blockHeight: bigint,
|
|
294
|
+
outputKind: OutputKind,
|
|
295
|
+
serializedOutputLength: bigint,
|
|
296
|
+
outputHash: Uint8Array,
|
|
297
|
+
digest: Uint8Array,
|
|
298
|
+
signature: { bigR: { x: Uint8Array,
|
|
299
|
+
y: Uint8Array
|
|
300
|
+
},
|
|
301
|
+
s: Uint8Array,
|
|
302
|
+
recoveryId: bigint
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
272
306
|
ethereumCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
273
307
|
evmAddressAbiWord(context: __compactRuntime.CircuitContext<PS>,
|
|
274
308
|
addr_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
@@ -279,31 +313,24 @@ export type Circuits<PS> = {
|
|
|
279
313
|
checkedTruncationU128(context: __compactRuntime.CircuitContext<PS>,
|
|
280
314
|
x_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
|
|
281
315
|
abiWordToBool(context: __compactRuntime.CircuitContext<PS>, word_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
outputKind_0: OutputKind,
|
|
301
|
-
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
302
|
-
calculateSignetAttestationDigest100(context: __compactRuntime.CircuitContext<PS>,
|
|
303
|
-
requestId_0: Uint8Array,
|
|
304
|
-
blockHeight_0: bigint,
|
|
305
|
-
outputKind_0: OutputKind,
|
|
306
|
-
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
316
|
+
calculateAttestedOutputHash0(context: __compactRuntime.CircuitContext<PS>,
|
|
317
|
+
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
318
|
+
calculateAttestedOutputHash1(context: __compactRuntime.CircuitContext<PS>,
|
|
319
|
+
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
320
|
+
calculateAttestedOutputHash2(context: __compactRuntime.CircuitContext<PS>,
|
|
321
|
+
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
322
|
+
calculateAttestedOutputHash32(context: __compactRuntime.CircuitContext<PS>,
|
|
323
|
+
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
324
|
+
calculateAttestedOutputHash100(context: __compactRuntime.CircuitContext<PS>,
|
|
325
|
+
serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
326
|
+
verifyAttestedOutput1(context: __compactRuntime.CircuitContext<PS>,
|
|
327
|
+
serializedOutput_0: Uint8Array,
|
|
328
|
+
attestedOutputLength_0: bigint,
|
|
329
|
+
attestedOutputHash_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
330
|
+
verifyAttestedOutput2(context: __compactRuntime.CircuitContext<PS>,
|
|
331
|
+
serializedOutput_0: Uint8Array,
|
|
332
|
+
attestedOutputLength_0: bigint,
|
|
333
|
+
attestedOutputHash_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
307
334
|
calculateEvmType2TxParamsDigestV1_1_0_0(context: __compactRuntime.CircuitContext<PS>,
|
|
308
335
|
txParams_0: { chainId: bigint,
|
|
309
336
|
nonce: bigint,
|
|
@@ -414,6 +441,7 @@ export type Circuits<PS> = {
|
|
|
414
441
|
blockHeight: bigint,
|
|
415
442
|
outputKind: OutputKind,
|
|
416
443
|
serializedOutputLength: bigint,
|
|
444
|
+
outputHash: Uint8Array,
|
|
417
445
|
digest: Uint8Array,
|
|
418
446
|
signature: { bigR: { x: Uint8Array,
|
|
419
447
|
y: Uint8Array
|
|
@@ -429,6 +457,7 @@ export type Circuits<PS> = {
|
|
|
429
457
|
blockHeight: bigint,
|
|
430
458
|
outputKind: OutputKind,
|
|
431
459
|
serializedOutputLength: bigint,
|
|
460
|
+
outputHash: Uint8Array,
|
|
432
461
|
digest: Uint8Array,
|
|
433
462
|
signature: { bigR: { x: Uint8Array,
|
|
434
463
|
y: Uint8Array
|