@sig-net/midnight-contract 0.0.1 → 0.0.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.
@@ -4,15 +4,26 @@
4
4
  "runtime-version": "0.18.0-rc.0",
5
5
  "circuits": [
6
6
  {
7
- "name": "emitSignBidirectionalEvent",
7
+ "name": "notifyBidirectionalSignatureRequest",
8
8
  "pure": false,
9
9
  "proof": true,
10
10
  "arguments": [
11
11
  {
12
- "name": "signBidirectionalEvent",
12
+ "name": "requestId",
13
+ "type": {
14
+ "type-name": "Alias",
15
+ "name": "RequestId",
16
+ "type": {
17
+ "type-name": "Bytes",
18
+ "length": 32
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "notification",
13
24
  "type": {
14
25
  "type-name": "Struct",
15
- "name": "SignBidirectionalEvent",
26
+ "name": "SignBidirectionalNotification",
16
27
  "elements": [
17
28
  {
18
29
  "name": "version",
@@ -25,7 +36,7 @@
25
36
  "name": "payload",
26
37
  "type": {
27
38
  "type-name": "Bytes",
28
- "length": 224
39
+ "length": 65
29
40
  }
30
41
  }
31
42
  ]
@@ -330,6 +341,40 @@
330
341
  "type-name": "Bytes",
331
342
  "length": 32
332
343
  }
344
+ },
345
+ {
346
+ "name": "signBidirectionalNotificationIndex",
347
+ "index": 4,
348
+ "exported": true,
349
+ "storage": "Map",
350
+ "key": {
351
+ "type-name": "Alias",
352
+ "name": "RequestId",
353
+ "type": {
354
+ "type-name": "Bytes",
355
+ "length": 32
356
+ }
357
+ },
358
+ "value": {
359
+ "type-name": "Struct",
360
+ "name": "SignBidirectionalNotification",
361
+ "elements": [
362
+ {
363
+ "name": "version",
364
+ "type": {
365
+ "type-name": "Uint",
366
+ "maxval": 255
367
+ }
368
+ },
369
+ {
370
+ "name": "payload",
371
+ "type": {
372
+ "type-name": "Bytes",
373
+ "length": 65
374
+ }
375
+ }
376
+ ]
377
+ }
333
378
  }
334
379
  ]
335
380
  }
@@ -7,92 +7,92 @@
7
7
  "type": "directory",
8
8
  "contract-info.json": {
9
9
  "type": "file",
10
- "size": 7635,
11
- "hash": "99d983e2bb40700d15169dbb42b76b725503fbe8319ebf2f4d300ad656b1e74b"
10
+ "size": 8633,
11
+ "hash": "6c9b7bfed4149ef2b9adb72c039a32c881f385f437640fe3dff7b7ba2f4768c1"
12
12
  }
13
13
  },
14
14
  "contract": {
15
15
  "type": "directory",
16
16
  "index.d.ts": {
17
17
  "type": "file",
18
- "size": 6948,
19
- "hash": "c3eca9f9b2ac149a16434769080479a3bb90d14457b6479174beb7a2b648285e"
18
+ "size": 7447,
19
+ "hash": "57e23fbaf8474c004ada057df09d3398a0345a26a843911a5a95588d0c9b81d6"
20
20
  },
21
21
  "index.js": {
22
22
  "type": "file",
23
- "size": 90631,
24
- "hash": "37a18a718c7ee9df21b11b1c4c0aaebc1f3b074c1df0a902d5d07a7a1c495554"
23
+ "size": 84531,
24
+ "hash": "8ae44bde9e25000d76e25a663cda7b1cedc7bdf4e5978cac096f9ae7a5525397"
25
25
  },
26
26
  "index.js.map": {
27
27
  "type": "file",
28
- "size": 3302,
29
- "hash": "96a304c896fb00298abdffb985cae45e641752ae92134c035023abfa0f7db4f0"
28
+ "size": 3258,
29
+ "hash": "40d1f39539d07d1e011d8dac46bd89b0de547ea4307e7489bc8ac5b9e4d80581"
30
30
  }
31
31
  },
32
32
  "zkir": {
33
33
  "type": "directory",
34
- "emitSignBidirectionalEvent.bzkir": {
34
+ "notifyBidirectionalSignatureRequest.bzkir": {
35
35
  "type": "file",
36
- "size": 4680,
37
- "hash": "60ef0e2d3cc878a0a2848c9095e68a6d10ec48f100212296deb81e490f869398"
36
+ "size": 133,
37
+ "hash": "4aac47417255c1a525bdce018caef0bc734d8a2d13c39b6ece41f5375301303d"
38
38
  },
39
- "emitSignBidirectionalEvent.zkir": {
39
+ "notifyBidirectionalSignatureRequest.zkir": {
40
40
  "type": "file",
41
- "size": 66458,
42
- "hash": "691b8c191befa6f8a31aaba5925e475be3ed967d610899068dc9e1d0ad5a1750"
41
+ "size": 2038,
42
+ "hash": "f51972650b77993359be13954c7322e7e8a25b5fa29825dd6facc38f99640c87"
43
43
  },
44
44
  "postRespondBidirectional.bzkir": {
45
45
  "type": "file",
46
- "size": 3113,
47
- "hash": "feb2bdb14b2840cf2220102badbed0d4169f4a6f8a787d5c3475c88608d12c0c"
46
+ "size": 1436,
47
+ "hash": "a4d8a42c9425293824f0edbc6cf5ea1d5ecd8dc6fbb30cc536e110c77fb3f5ff"
48
48
  },
49
49
  "postRespondBidirectional.zkir": {
50
50
  "type": "file",
51
- "size": 40996,
52
- "hash": "58a69c3a72674f3a3fe97deff6803fcfaed573aca402bcc3d9c947d366b1dabb"
51
+ "size": 20224,
52
+ "hash": "c392e5d2038504de0341cfd3707c98bb200d2f011293fc2a402e88d1cf9ea5ed"
53
53
  },
54
54
  "postSignatureResponse.bzkir": {
55
55
  "type": "file",
56
- "size": 1464,
57
- "hash": "a255997d57d9be1dbdd71be7e4d961df2b76e0d73e4b8cf8516c8f8c14930a5b"
56
+ "size": 409,
57
+ "hash": "2e7d101ec696bdc1a953443b02d4919e84601cd832ecf78fa7da48eb22a09f88"
58
58
  },
59
59
  "postSignatureResponse.zkir": {
60
60
  "type": "file",
61
- "size": 22174,
62
- "hash": "1da096135eef73400ef5c82d38686b9afba3be1a58d2e3985e666f8c0e842294"
61
+ "size": 7046,
62
+ "hash": "cd77fda5cdb1798df4855ad675f222af6d29b9444be52b028be063c7d485807e"
63
63
  }
64
64
  },
65
65
  "keys": {
66
66
  "type": "directory",
67
- "emitSignBidirectionalEvent.prover": {
67
+ "notifyBidirectionalSignatureRequest.prover": {
68
68
  "type": "file",
69
- "size": 134792363,
70
- "hash": "03a0174e751a9c466388a5ebde5d11f1a380e65008b86a98667dd750333862d1"
69
+ "size": 279422,
70
+ "hash": "838883437ad8e18d791836c2c0f197956bce52f98cd1ec2e0956cc19bff78169"
71
71
  },
72
- "emitSignBidirectionalEvent.verifier": {
72
+ "notifyBidirectionalSignatureRequest.verifier": {
73
73
  "type": "file",
74
74
  "size": 1351,
75
- "hash": "97af5bb456fae0ea3daf411d8031e6ceefe1cdc6dc0349372c56414d53fb8d6e"
75
+ "hash": "d36e5392bc781c69b136080843b96458d170304502f346f0d784fa8e133a54c3"
76
76
  },
77
77
  "postRespondBidirectional.prover": {
78
78
  "type": "file",
79
- "size": 84822969,
80
- "hash": "2fe26775cad177e03968f43b7617a4ab1bc1c2556fe298b410193575478238e2"
79
+ "size": 42669264,
80
+ "hash": "ed3c339e691a1aed030f3b173f09254174e1021aced0eb42e8315a4e7e762888"
81
81
  },
82
82
  "postRespondBidirectional.verifier": {
83
83
  "type": "file",
84
84
  "size": 2311,
85
- "hash": "feda5f59c6367153d6089edefc96a7a18597373393d1f0c3410e9790c65078c7"
85
+ "hash": "0c245f8a93de6fec296de814b7b6424ebad1ac62375ab134fb4d9868b6df95d0"
86
86
  },
87
87
  "postSignatureResponse.prover": {
88
88
  "type": "file",
89
- "size": 33725342,
90
- "hash": "931f5bf8726793e8110c30e00014055bd35e887f8edb3c3ea18ee0758acd4740"
89
+ "size": 544009,
90
+ "hash": "7437538793a12c5eb6f83cec155d49ad64a0190cec76ec46e58fd282fe7923d9"
91
91
  },
92
92
  "postSignatureResponse.verifier": {
93
93
  "type": "file",
94
94
  "size": 1351,
95
- "hash": "1774d8bce0d5a9f4dcbd59f292b9cb5a9b69c5636ce9a95b7ec17ce797b425e7"
95
+ "hash": "aece39967c6c69cac6a8215b841ef62dd49ceb16a97804a0b67621ef36cdc22e"
96
96
  }
97
97
  }
98
98
  }
@@ -4,10 +4,11 @@ export type Witnesses<PS> = {
4
4
  }
5
5
 
6
6
  export type ImpureCircuits<PS> = {
7
- emitSignBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
8
- signBidirectionalEvent_0: { version: bigint,
9
- payload: Uint8Array
10
- }): Promise<__compactRuntime.CircuitResults<PS, []>>;
7
+ notifyBidirectionalSignatureRequest(context: __compactRuntime.CircuitContext<PS>,
8
+ requestId_0: Uint8Array,
9
+ notification_0: { version: bigint,
10
+ payload: Uint8Array
11
+ }): Promise<__compactRuntime.CircuitResults<PS, []>>;
11
12
  postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
12
13
  requestId_0: Uint8Array,
13
14
  signatureResponse_0: { bigRx: Uint8Array,
@@ -26,10 +27,11 @@ export type ImpureCircuits<PS> = {
26
27
  }
27
28
 
28
29
  export type ProvableCircuits<PS> = {
29
- emitSignBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
30
- signBidirectionalEvent_0: { version: bigint,
31
- payload: Uint8Array
32
- }): Promise<__compactRuntime.CircuitResults<PS, []>>;
30
+ notifyBidirectionalSignatureRequest(context: __compactRuntime.CircuitContext<PS>,
31
+ requestId_0: Uint8Array,
32
+ notification_0: { version: bigint,
33
+ payload: Uint8Array
34
+ }): Promise<__compactRuntime.CircuitResults<PS, []>>;
33
35
  postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
34
36
  requestId_0: Uint8Array,
35
37
  signatureResponse_0: { bigRx: Uint8Array,
@@ -51,10 +53,11 @@ export type PureCircuits = {
51
53
  }
52
54
 
53
55
  export type Circuits<PS> = {
54
- emitSignBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
55
- signBidirectionalEvent_0: { version: bigint,
56
- payload: Uint8Array
57
- }): Promise<__compactRuntime.CircuitResults<PS, []>>;
56
+ notifyBidirectionalSignatureRequest(context: __compactRuntime.CircuitContext<PS>,
57
+ requestId_0: Uint8Array,
58
+ notification_0: { version: bigint,
59
+ payload: Uint8Array
60
+ }): Promise<__compactRuntime.CircuitResults<PS, []>>;
58
61
  postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
59
62
  requestId_0: Uint8Array,
60
63
  signatureResponse_0: { bigRx: Uint8Array,
@@ -108,6 +111,13 @@ export type Ledger = {
108
111
  }]>
109
112
  };
110
113
  readonly mpcPubKeyHash: Uint8Array;
114
+ signBidirectionalNotificationIndex: {
115
+ isEmpty(): boolean;
116
+ size(): bigint;
117
+ member(key_0: Uint8Array): boolean;
118
+ lookup(key_0: Uint8Array): { version: bigint, payload: Uint8Array };
119
+ [Symbol.iterator](): Iterator<[Uint8Array, { version: bigint, payload: Uint8Array }]>
120
+ };
111
121
  }
112
122
 
113
123
  export type ContractReferenceLocations = any;