@sig-net/midnight 0.24.0-rc.3 → 0.24.0-rc.4

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.
@@ -1,5 +1,13 @@
1
1
  import type * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
2
2
 
3
+ export enum HashDomain { requestId = 0,
4
+ attestationDigest = 1,
5
+ evmType2TxHeader = 2,
6
+ evmType2TxWord = 3,
7
+ evmType2TxAccessEntry = 4,
8
+ evmType2TxStorageKey = 5
9
+ }
10
+
3
11
  export enum OutputKind { executed = 0, failed = 1, unviable = 2 }
4
12
 
5
13
  export type Witnesses<PS> = {
@@ -180,6 +188,67 @@ export type PureCircuits = {
180
188
  }
181
189
  },
182
190
  mpcResponseKey_0: __compactRuntime.Secp256k1Point): boolean;
191
+ constructSignBidirectionalEventV1_1_0_0_34_34(request_0: { keyVersion: bigint,
192
+ sender: { bytes: Uint8Array
193
+ },
194
+ path: Uint8Array,
195
+ algo: number,
196
+ txParamType: number,
197
+ txParams: { chainId: bigint,
198
+ nonce: bigint,
199
+ maxPriorityFeePerGas: bigint,
200
+ maxFeePerGas: bigint,
201
+ gasLimit: bigint,
202
+ to: Uint8Array,
203
+ value: bigint,
204
+ calldata: { is_some: boolean,
205
+ value: { selector: Uint8Array,
206
+ noWords: bigint,
207
+ words: Uint8Array[]
208
+ }
209
+ },
210
+ accessListEntryCount: bigint,
211
+ accessList: { address: Uint8Array,
212
+ storageKeyCount: bigint,
213
+ storageKeys: Uint8Array[]
214
+ }[]
215
+ },
216
+ executionDest: Uint8Array,
217
+ signatureDest: number,
218
+ params: Uint8Array,
219
+ outputDeserializationSchema: Uint8Array,
220
+ respondSerializationSchema: Uint8Array
221
+ }): { keyVersion: bigint,
222
+ sender: { bytes: Uint8Array
223
+ },
224
+ path: Uint8Array,
225
+ algo: number,
226
+ txParamType: number,
227
+ txParams: { chainId: bigint,
228
+ nonce: bigint,
229
+ maxPriorityFeePerGas: bigint,
230
+ maxFeePerGas: bigint,
231
+ gasLimit: bigint,
232
+ to: Uint8Array,
233
+ value: bigint,
234
+ calldata: { is_some: boolean,
235
+ value: { selector: Uint8Array,
236
+ noWords: bigint,
237
+ words: Uint8Array[]
238
+ }
239
+ },
240
+ accessListEntryCount: bigint,
241
+ accessList: { address: Uint8Array,
242
+ storageKeyCount: bigint,
243
+ storageKeys: Uint8Array[]
244
+ }[]
245
+ },
246
+ executionDest: Uint8Array,
247
+ signatureDest: number,
248
+ params: Uint8Array,
249
+ outputDeserializationSchema: Uint8Array,
250
+ respondSerializationSchema: Uint8Array
251
+ };
183
252
  }
184
253
 
185
254
  export type Circuits<PS> = {
@@ -366,6 +435,68 @@ export type Circuits<PS> = {
366
435
  }
367
436
  },
368
437
  mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
438
+ constructSignBidirectionalEventV1_1_0_0_34_34(context: __compactRuntime.CircuitContext<PS>,
439
+ request_0: { keyVersion: bigint,
440
+ sender: { bytes: Uint8Array
441
+ },
442
+ path: Uint8Array,
443
+ algo: number,
444
+ txParamType: number,
445
+ txParams: { chainId: bigint,
446
+ nonce: bigint,
447
+ maxPriorityFeePerGas: bigint,
448
+ maxFeePerGas: bigint,
449
+ gasLimit: bigint,
450
+ to: Uint8Array,
451
+ value: bigint,
452
+ calldata: { is_some: boolean,
453
+ value: { selector: Uint8Array,
454
+ noWords: bigint,
455
+ words: Uint8Array[]
456
+ }
457
+ },
458
+ accessListEntryCount: bigint,
459
+ accessList: { address: Uint8Array,
460
+ storageKeyCount: bigint,
461
+ storageKeys: Uint8Array[]
462
+ }[]
463
+ },
464
+ executionDest: Uint8Array,
465
+ signatureDest: number,
466
+ params: Uint8Array,
467
+ outputDeserializationSchema: Uint8Array,
468
+ respondSerializationSchema: Uint8Array
469
+ }): Promise<__compactRuntime.CircuitResults<PS, { keyVersion: bigint,
470
+ sender: { bytes: Uint8Array
471
+ },
472
+ path: Uint8Array,
473
+ algo: number,
474
+ txParamType: number,
475
+ txParams: { chainId: bigint,
476
+ nonce: bigint,
477
+ maxPriorityFeePerGas: bigint,
478
+ maxFeePerGas: bigint,
479
+ gasLimit: bigint,
480
+ to: Uint8Array,
481
+ value: bigint,
482
+ calldata: { is_some: boolean,
483
+ value: { selector: Uint8Array,
484
+ noWords: bigint,
485
+ words: Uint8Array[]
486
+ }
487
+ },
488
+ accessListEntryCount: bigint,
489
+ accessList: { address: Uint8Array,
490
+ storageKeyCount: bigint,
491
+ storageKeys: Uint8Array[]
492
+ }[]
493
+ },
494
+ executionDest: Uint8Array,
495
+ signatureDest: number,
496
+ params: Uint8Array,
497
+ outputDeserializationSchema: Uint8Array,
498
+ respondSerializationSchema: Uint8Array
499
+ }>>;
369
500
  }
370
501
 
371
502
  export type Ledger = {