@sig-net/midnight-contract 0.0.6 → 0.0.7
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 +148 -70
- package/dist/managed/compiler/contract-manifest.json +42 -42
- package/dist/managed/contract/index.d.ts +85 -68
- package/dist/managed/contract/index.js +559 -407
- package/dist/managed/contract/index.js.map +2 -2
- 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/keys/signBidirectionalEvent.prover +0 -0
- package/dist/managed/keys/signBidirectionalEvent.verifier +0 -0
- package/dist/managed/zkir/postRespondBidirectional.bzkir +0 -0
- package/dist/managed/zkir/postRespondBidirectional.zkir +43 -131
- package/dist/managed/zkir/postSignatureResponse.bzkir +0 -0
- package/dist/managed/zkir/postSignatureResponse.zkir +20 -20
- package/dist/managed/zkir/signBidirectionalEvent.bzkir +0 -0
- package/dist/managed/zkir/signBidirectionalEvent.zkir +56 -0
- package/dist/witnesses.js +2 -2
- package/dist/witnesses.js.map +1 -1
- package/package.json +3 -3
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.prover +0 -0
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.verifier +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.bzkir +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.zkir +0 -27
|
@@ -4,85 +4,103 @@ export type Witnesses<PS> = {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export type ImpureCircuits<PS> = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
signBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
|
|
8
|
+
requestId_0: Uint8Array,
|
|
9
|
+
notification_0: { version: bigint, payload: Uint8Array
|
|
10
|
+
}): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
11
|
+
requestId: Uint8Array
|
|
12
|
+
}>>;
|
|
12
13
|
postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
|
|
13
14
|
requestId_0: Uint8Array,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
signatureRespondedEvent_0: { bigRx: Uint8Array,
|
|
16
|
+
bigRy: Uint8Array,
|
|
17
|
+
s: Uint8Array,
|
|
18
|
+
recoveryId: bigint
|
|
19
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
19
20
|
postRespondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
20
21
|
requestId_0: Uint8Array,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
23
|
+
outputLen: bigint,
|
|
24
|
+
r: Uint8Array,
|
|
25
|
+
s: Uint8Array,
|
|
26
|
+
recoveryId: bigint
|
|
27
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export type ProvableCircuits<PS> = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
signBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
|
|
32
|
+
requestId_0: Uint8Array,
|
|
33
|
+
notification_0: { version: bigint, payload: Uint8Array
|
|
34
|
+
}): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
35
|
+
requestId: Uint8Array
|
|
36
|
+
}>>;
|
|
35
37
|
postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
|
|
36
38
|
requestId_0: Uint8Array,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
signatureRespondedEvent_0: { bigRx: Uint8Array,
|
|
40
|
+
bigRy: Uint8Array,
|
|
41
|
+
s: Uint8Array,
|
|
42
|
+
recoveryId: bigint
|
|
43
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
42
44
|
postRespondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
43
45
|
requestId_0: Uint8Array,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
47
|
+
outputLen: bigint,
|
|
48
|
+
r: Uint8Array,
|
|
49
|
+
s: Uint8Array,
|
|
50
|
+
recoveryId: bigint
|
|
51
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export type PureCircuits = {
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export type Circuits<PS> = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
signBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
|
|
59
|
+
requestId_0: Uint8Array,
|
|
60
|
+
notification_0: { version: bigint, payload: Uint8Array
|
|
61
|
+
}): Promise<__compactRuntime.CircuitResults<PS, { count: bigint,
|
|
62
|
+
requestId: Uint8Array
|
|
63
|
+
}>>;
|
|
61
64
|
postSignatureResponse(context: __compactRuntime.CircuitContext<PS>,
|
|
62
65
|
requestId_0: Uint8Array,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
signatureRespondedEvent_0: { bigRx: Uint8Array,
|
|
67
|
+
bigRy: Uint8Array,
|
|
68
|
+
s: Uint8Array,
|
|
69
|
+
recoveryId: bigint
|
|
70
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
68
71
|
postRespondBidirectional(context: __compactRuntime.CircuitContext<PS>,
|
|
69
72
|
requestId_0: Uint8Array,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
74
|
+
outputLen: bigint,
|
|
75
|
+
r: Uint8Array,
|
|
76
|
+
s: Uint8Array,
|
|
77
|
+
recoveryId: bigint
|
|
78
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
export type Ledger = {
|
|
79
|
-
|
|
82
|
+
signBidirectionalEventNotificationCounterMap: {
|
|
80
83
|
isEmpty(): boolean;
|
|
81
84
|
size(): bigint;
|
|
82
85
|
member(key_0: Uint8Array): boolean;
|
|
83
86
|
lookup(key_0: Uint8Array): { read(): bigint }
|
|
84
87
|
};
|
|
85
|
-
|
|
88
|
+
signBidirectionalEventNotificationMap: {
|
|
89
|
+
isEmpty(): boolean;
|
|
90
|
+
size(): bigint;
|
|
91
|
+
member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
|
|
92
|
+
lookup(key_0: { count: bigint, requestId: Uint8Array }): { version: bigint,
|
|
93
|
+
payload: Uint8Array
|
|
94
|
+
};
|
|
95
|
+
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { version: bigint, payload: Uint8Array }]>
|
|
96
|
+
};
|
|
97
|
+
signatureResponseCounterMap: {
|
|
98
|
+
isEmpty(): boolean;
|
|
99
|
+
size(): bigint;
|
|
100
|
+
member(key_0: Uint8Array): boolean;
|
|
101
|
+
lookup(key_0: Uint8Array): { read(): bigint }
|
|
102
|
+
};
|
|
103
|
+
signatureResponseMap: {
|
|
86
104
|
isEmpty(): boolean;
|
|
87
105
|
size(): bigint;
|
|
88
106
|
member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
|
|
@@ -93,28 +111,28 @@ export type Ledger = {
|
|
|
93
111
|
};
|
|
94
112
|
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { bigRx: Uint8Array, bigRy: Uint8Array, s: Uint8Array, recoveryId: bigint }]>
|
|
95
113
|
};
|
|
96
|
-
|
|
114
|
+
respondBidirectionalCounterMap: {
|
|
97
115
|
isEmpty(): boolean;
|
|
98
116
|
size(): bigint;
|
|
99
117
|
member(key_0: Uint8Array): boolean;
|
|
100
|
-
lookup(key_0: Uint8Array): {
|
|
101
|
-
outputLen: bigint,
|
|
102
|
-
sigR: Uint8Array,
|
|
103
|
-
sigS: Uint8Array
|
|
104
|
-
};
|
|
105
|
-
[Symbol.iterator](): Iterator<[Uint8Array, { serializedOutput: Uint8Array,
|
|
106
|
-
outputLen: bigint,
|
|
107
|
-
sigR: Uint8Array,
|
|
108
|
-
sigS: Uint8Array
|
|
109
|
-
}]>
|
|
118
|
+
lookup(key_0: Uint8Array): { read(): bigint }
|
|
110
119
|
};
|
|
111
|
-
|
|
112
|
-
signBidirectionalNotificationIndex: {
|
|
120
|
+
respondBidirectionalMap: {
|
|
113
121
|
isEmpty(): boolean;
|
|
114
122
|
size(): bigint;
|
|
115
|
-
member(key_0: Uint8Array): boolean;
|
|
116
|
-
lookup(key_0:
|
|
117
|
-
|
|
123
|
+
member(key_0: { count: bigint, requestId: Uint8Array }): boolean;
|
|
124
|
+
lookup(key_0: { count: bigint, requestId: Uint8Array }): { serializedOutput: Uint8Array,
|
|
125
|
+
outputLen: bigint,
|
|
126
|
+
r: Uint8Array,
|
|
127
|
+
s: Uint8Array,
|
|
128
|
+
recoveryId: bigint
|
|
129
|
+
};
|
|
130
|
+
[Symbol.iterator](): Iterator<[{ count: bigint, requestId: Uint8Array }, { serializedOutput: Uint8Array,
|
|
131
|
+
outputLen: bigint,
|
|
132
|
+
r: Uint8Array,
|
|
133
|
+
s: Uint8Array,
|
|
134
|
+
recoveryId: bigint
|
|
135
|
+
}]>
|
|
118
136
|
};
|
|
119
137
|
}
|
|
120
138
|
|
|
@@ -128,8 +146,7 @@ export declare class Contract<PS = any, W extends Witnesses<PS> = Witnesses<PS>>
|
|
|
128
146
|
impureCircuits: ImpureCircuits<PS>;
|
|
129
147
|
provableCircuits: ProvableCircuits<PS>;
|
|
130
148
|
constructor(witnesses: W);
|
|
131
|
-
initialState(context: __compactRuntime.ConstructorContext<PS
|
|
132
|
-
mpcPk_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.ConstructorResult<PS>>;
|
|
149
|
+
initialState(context: __compactRuntime.ConstructorContext<PS>): Promise<__compactRuntime.ConstructorResult<PS>>;
|
|
133
150
|
}
|
|
134
151
|
|
|
135
152
|
export declare function ledger(state: __compactRuntime.StateValue | __compactRuntime.ChargedState): Ledger;
|