@sig-net/midnight-contract 0.0.1 → 0.0.3
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/dist/managed/compiler/contract-info.json +49 -4
- package/dist/managed/compiler/contract-manifest.json +33 -33
- package/dist/managed/contract/index.d.ts +22 -12
- package/dist/managed/contract/index.js +423 -399
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.prover +0 -0
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.verifier +0 -0
- package/dist/managed/keys/postRespondBidirectional.prover +0 -0
- package/dist/managed/keys/postRespondBidirectional.verifier +0 -0
- package/dist/managed/keys/postSignatureResponse.prover +0 -0
- package/dist/managed/keys/postSignatureResponse.verifier +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.bzkir +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.zkir +49 -0
- package/dist/managed/zkir/postRespondBidirectional.bzkir +0 -0
- package/dist/managed/zkir/postRespondBidirectional.zkir +0 -324
- package/dist/managed/zkir/postSignatureResponse.bzkir +0 -0
- package/dist/managed/zkir/postSignatureResponse.zkir +0 -228
- package/package.json +4 -6
- package/dist/managed/keys/emitSignBidirectionalEvent.verifier +0 -0
- package/dist/managed/zkir/emitSignBidirectionalEvent.bzkir +0 -0
- package/dist/managed/zkir/emitSignBidirectionalEvent.zkir +0 -965
- package/src/contract-surface.ts +0 -40
- package/src/index.ts +0 -9
- package/src/signet-contract.compact +0 -135
- package/src/witnesses.ts +0 -22
|
@@ -4,15 +4,26 @@
|
|
|
4
4
|
"runtime-version": "0.18.0-rc.0",
|
|
5
5
|
"circuits": [
|
|
6
6
|
{
|
|
7
|
-
"name": "
|
|
7
|
+
"name": "notifyBidirectionalSignatureRequest",
|
|
8
8
|
"pure": false,
|
|
9
9
|
"proof": true,
|
|
10
10
|
"arguments": [
|
|
11
11
|
{
|
|
12
|
-
"name": "
|
|
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": "
|
|
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":
|
|
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":
|
|
11
|
-
"hash": "
|
|
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":
|
|
19
|
-
"hash": "
|
|
18
|
+
"size": 7447,
|
|
19
|
+
"hash": "57e23fbaf8474c004ada057df09d3398a0345a26a843911a5a95588d0c9b81d6"
|
|
20
20
|
},
|
|
21
21
|
"index.js": {
|
|
22
22
|
"type": "file",
|
|
23
|
-
"size":
|
|
24
|
-
"hash": "
|
|
23
|
+
"size": 84531,
|
|
24
|
+
"hash": "8ae44bde9e25000d76e25a663cda7b1cedc7bdf4e5978cac096f9ae7a5525397"
|
|
25
25
|
},
|
|
26
26
|
"index.js.map": {
|
|
27
27
|
"type": "file",
|
|
28
|
-
"size":
|
|
29
|
-
"hash": "
|
|
28
|
+
"size": 3258,
|
|
29
|
+
"hash": "40d1f39539d07d1e011d8dac46bd89b0de547ea4307e7489bc8ac5b9e4d80581"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"zkir": {
|
|
33
33
|
"type": "directory",
|
|
34
|
-
"
|
|
34
|
+
"notifyBidirectionalSignatureRequest.bzkir": {
|
|
35
35
|
"type": "file",
|
|
36
|
-
"size":
|
|
37
|
-
"hash": "
|
|
36
|
+
"size": 133,
|
|
37
|
+
"hash": "4aac47417255c1a525bdce018caef0bc734d8a2d13c39b6ece41f5375301303d"
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"notifyBidirectionalSignatureRequest.zkir": {
|
|
40
40
|
"type": "file",
|
|
41
|
-
"size":
|
|
42
|
-
"hash": "
|
|
41
|
+
"size": 2038,
|
|
42
|
+
"hash": "f51972650b77993359be13954c7322e7e8a25b5fa29825dd6facc38f99640c87"
|
|
43
43
|
},
|
|
44
44
|
"postRespondBidirectional.bzkir": {
|
|
45
45
|
"type": "file",
|
|
46
|
-
"size":
|
|
47
|
-
"hash": "
|
|
46
|
+
"size": 1436,
|
|
47
|
+
"hash": "a4d8a42c9425293824f0edbc6cf5ea1d5ecd8dc6fbb30cc536e110c77fb3f5ff"
|
|
48
48
|
},
|
|
49
49
|
"postRespondBidirectional.zkir": {
|
|
50
50
|
"type": "file",
|
|
51
|
-
"size":
|
|
52
|
-
"hash": "
|
|
51
|
+
"size": 20224,
|
|
52
|
+
"hash": "c392e5d2038504de0341cfd3707c98bb200d2f011293fc2a402e88d1cf9ea5ed"
|
|
53
53
|
},
|
|
54
54
|
"postSignatureResponse.bzkir": {
|
|
55
55
|
"type": "file",
|
|
56
|
-
"size":
|
|
57
|
-
"hash": "
|
|
56
|
+
"size": 409,
|
|
57
|
+
"hash": "2e7d101ec696bdc1a953443b02d4919e84601cd832ecf78fa7da48eb22a09f88"
|
|
58
58
|
},
|
|
59
59
|
"postSignatureResponse.zkir": {
|
|
60
60
|
"type": "file",
|
|
61
|
-
"size":
|
|
62
|
-
"hash": "
|
|
61
|
+
"size": 7046,
|
|
62
|
+
"hash": "cd77fda5cdb1798df4855ad675f222af6d29b9444be52b028be063c7d485807e"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"keys": {
|
|
66
66
|
"type": "directory",
|
|
67
|
-
"
|
|
67
|
+
"notifyBidirectionalSignatureRequest.prover": {
|
|
68
68
|
"type": "file",
|
|
69
|
-
"size":
|
|
70
|
-
"hash": "
|
|
69
|
+
"size": 279422,
|
|
70
|
+
"hash": "838883437ad8e18d791836c2c0f197956bce52f98cd1ec2e0956cc19bff78169"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"notifyBidirectionalSignatureRequest.verifier": {
|
|
73
73
|
"type": "file",
|
|
74
74
|
"size": 1351,
|
|
75
|
-
"hash": "
|
|
75
|
+
"hash": "d36e5392bc781c69b136080843b96458d170304502f346f0d784fa8e133a54c3"
|
|
76
76
|
},
|
|
77
77
|
"postRespondBidirectional.prover": {
|
|
78
78
|
"type": "file",
|
|
79
|
-
"size":
|
|
80
|
-
"hash": "
|
|
79
|
+
"size": 42669264,
|
|
80
|
+
"hash": "ed3c339e691a1aed030f3b173f09254174e1021aced0eb42e8315a4e7e762888"
|
|
81
81
|
},
|
|
82
82
|
"postRespondBidirectional.verifier": {
|
|
83
83
|
"type": "file",
|
|
84
84
|
"size": 2311,
|
|
85
|
-
"hash": "
|
|
85
|
+
"hash": "0c245f8a93de6fec296de814b7b6424ebad1ac62375ab134fb4d9868b6df95d0"
|
|
86
86
|
},
|
|
87
87
|
"postSignatureResponse.prover": {
|
|
88
88
|
"type": "file",
|
|
89
|
-
"size":
|
|
90
|
-
"hash": "
|
|
89
|
+
"size": 544009,
|
|
90
|
+
"hash": "7437538793a12c5eb6f83cec155d49ad64a0190cec76ec46e58fd282fe7923d9"
|
|
91
91
|
},
|
|
92
92
|
"postSignatureResponse.verifier": {
|
|
93
93
|
"type": "file",
|
|
94
94
|
"size": 1351,
|
|
95
|
-
"hash": "
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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;
|