@sig-net/midnight-contract 0.10.0 → 0.11.0
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/managed/compiler/contract-info.json +173 -87
- package/dist/managed/compiler/contract-manifest.json +34 -34
- package/dist/managed/contract/index.d.ts +98 -76
- package/dist/managed/contract/index.js +157 -127
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/managed/keys/{postRespondBidirectional.prover → respondBidirectional.prover} +0 -0
- package/dist/managed/keys/respondBidirectional.verifier +0 -0
- package/dist/managed/zkir/respondBidirectional.bzkir +0 -0
- package/dist/managed/zkir/{postRespondBidirectional.zkir → respondBidirectional.zkir} +17 -13
- package/dist/witnesses.js +3 -3
- package/dist/witnesses.js.map +1 -1
- package/package.json +2 -2
- package/dist/managed/keys/postRespondBidirectional.verifier +0 -0
- package/dist/managed/zkir/postRespondBidirectional.bzkir +0 -0
- /package/dist/managed/keys/{postSignatureResponse.prover → respond.prover} +0 -0
- /package/dist/managed/keys/{postSignatureResponse.verifier → respond.verifier} +0 -0
- /package/dist/managed/keys/{signBidirectionalEvent.prover → signBidirectional.prover} +0 -0
- /package/dist/managed/keys/{signBidirectionalEvent.verifier → signBidirectional.verifier} +0 -0
- /package/dist/managed/zkir/{postSignatureResponse.bzkir → respond.bzkir} +0 -0
- /package/dist/managed/zkir/{postSignatureResponse.zkir → respond.zkir} +0 -0
- /package/dist/managed/zkir/{signBidirectionalEvent.bzkir → signBidirectional.bzkir} +0 -0
- /package/dist/managed/zkir/{signBidirectionalEvent.zkir → signBidirectional.zkir} +0 -0
|
@@ -4,78 +4,90 @@ export type Witnesses<PS> = {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export type ImpureCircuits<PS> = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
signBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
8
|
+
requestId_0: Uint8Array,
|
|
9
|
+
notification_0: { version: bigint, payload: Uint8Array }): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
10
|
+
requestId: Uint8Array
|
|
11
|
+
}>>;
|
|
12
|
+
respond(context: __compactRuntime.CircuitContext<PS>,
|
|
13
|
+
requestId_0: Uint8Array,
|
|
14
|
+
signatureRespondedEvent_0: { signature: { bigR: { x: Uint8Array,
|
|
15
|
+
y: Uint8Array
|
|
16
|
+
},
|
|
17
|
+
s: Uint8Array,
|
|
18
|
+
recoveryId: bigint
|
|
19
|
+
}
|
|
20
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
21
|
+
respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
22
|
+
requestId_0: Uint8Array,
|
|
23
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
24
|
+
outputLen: bigint,
|
|
25
|
+
signature: { bigR: { x: Uint8Array,
|
|
26
|
+
y: Uint8Array
|
|
27
|
+
},
|
|
28
|
+
s: Uint8Array,
|
|
29
|
+
recoveryId: bigint
|
|
30
|
+
}
|
|
31
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
export type ProvableCircuits<PS> = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
signBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
36
|
+
requestId_0: Uint8Array,
|
|
37
|
+
notification_0: { version: bigint, payload: Uint8Array }): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
38
|
+
requestId: Uint8Array
|
|
39
|
+
}>>;
|
|
40
|
+
respond(context: __compactRuntime.CircuitContext<PS>,
|
|
41
|
+
requestId_0: Uint8Array,
|
|
42
|
+
signatureRespondedEvent_0: { signature: { bigR: { x: Uint8Array,
|
|
43
|
+
y: Uint8Array
|
|
44
|
+
},
|
|
45
|
+
s: Uint8Array,
|
|
46
|
+
recoveryId: bigint
|
|
47
|
+
}
|
|
48
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
49
|
+
respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
50
|
+
requestId_0: Uint8Array,
|
|
51
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
52
|
+
outputLen: bigint,
|
|
53
|
+
signature: { bigR: { x: Uint8Array,
|
|
54
|
+
y: Uint8Array
|
|
55
|
+
},
|
|
56
|
+
s: Uint8Array,
|
|
57
|
+
recoveryId: bigint
|
|
58
|
+
}
|
|
59
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
export type PureCircuits = {
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
export type Circuits<PS> = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
signBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
67
|
+
requestId_0: Uint8Array,
|
|
68
|
+
notification_0: { version: bigint, payload: Uint8Array }): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
69
|
+
requestId: Uint8Array
|
|
70
|
+
}>>;
|
|
71
|
+
respond(context: __compactRuntime.CircuitContext<PS>,
|
|
72
|
+
requestId_0: Uint8Array,
|
|
73
|
+
signatureRespondedEvent_0: { signature: { bigR: { x: Uint8Array,
|
|
74
|
+
y: Uint8Array
|
|
75
|
+
},
|
|
76
|
+
s: Uint8Array,
|
|
77
|
+
recoveryId: bigint
|
|
78
|
+
}
|
|
79
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
80
|
+
respondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
81
|
+
requestId_0: Uint8Array,
|
|
82
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
83
|
+
outputLen: bigint,
|
|
84
|
+
signature: { bigR: { x: Uint8Array,
|
|
85
|
+
y: Uint8Array
|
|
86
|
+
},
|
|
87
|
+
s: Uint8Array,
|
|
88
|
+
recoveryId: bigint
|
|
89
|
+
}
|
|
90
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
export type Ledger = {
|
|
@@ -94,22 +106,28 @@ export type Ledger = {
|
|
|
94
106
|
};
|
|
95
107
|
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { version: bigint, payload: Uint8Array }]>
|
|
96
108
|
};
|
|
97
|
-
|
|
109
|
+
respondCounterMap: {
|
|
98
110
|
isEmpty(): boolean;
|
|
99
111
|
size(): bigint;
|
|
100
112
|
member(key_0: Uint8Array): boolean;
|
|
101
113
|
lookup(key_0: Uint8Array): { read(): bigint }
|
|
102
114
|
};
|
|
103
|
-
|
|
115
|
+
respondMap: {
|
|
104
116
|
isEmpty(): boolean;
|
|
105
117
|
size(): bigint;
|
|
106
118
|
member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
|
|
107
|
-
lookup(key_0: { count: bigint, requestId: Uint8Array }): {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
lookup(key_0: { count: bigint, requestId: Uint8Array }): { signature: { bigR: { x: Uint8Array,
|
|
120
|
+
y: Uint8Array
|
|
121
|
+
},
|
|
122
|
+
s: Uint8Array,
|
|
123
|
+
recoveryId: bigint
|
|
124
|
+
}
|
|
111
125
|
};
|
|
112
|
-
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, {
|
|
126
|
+
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { signature: { bigR: { x: Uint8Array, y: Uint8Array },
|
|
127
|
+
s: Uint8Array,
|
|
128
|
+
recoveryId: bigint
|
|
129
|
+
}
|
|
130
|
+
}]>
|
|
113
131
|
};
|
|
114
132
|
respondBidirectionalCounterMap: {
|
|
115
133
|
isEmpty(): boolean;
|
|
@@ -123,15 +141,19 @@ export type Ledger = {
|
|
|
123
141
|
member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
|
|
124
142
|
lookup(key_0: { count: bigint, requestId: Uint8Array }): { serializedOutput: Uint8Array,
|
|
125
143
|
outputLen: bigint,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
signature: { bigR: { x: Uint8Array,
|
|
145
|
+
y: Uint8Array
|
|
146
|
+
},
|
|
147
|
+
s: Uint8Array,
|
|
148
|
+
recoveryId: bigint
|
|
149
|
+
}
|
|
129
150
|
};
|
|
130
151
|
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { serializedOutput: Uint8Array,
|
|
131
152
|
outputLen: bigint,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
153
|
+
signature: { bigR: { x: Uint8Array, y: Uint8Array },
|
|
154
|
+
s: Uint8Array,
|
|
155
|
+
recoveryId: bigint
|
|
156
|
+
}
|
|
135
157
|
}]>
|
|
136
158
|
};
|
|
137
159
|
}
|