@sig-net/midnight 0.0.5 → 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 +8 -0
- package/dist/constants.d.ts +4 -16
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -16
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +79 -0
- package/dist/ecdsa-attestation.d.ts.map +1 -0
- package/dist/ecdsa-attestation.js +140 -0
- package/dist/ecdsa-attestation.js.map +1 -0
- package/dist/epsilon-derivation.d.ts +60 -0
- package/dist/epsilon-derivation.d.ts.map +1 -1
- package/dist/epsilon-derivation.js +106 -5
- package/dist/epsilon-derivation.js.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +70 -95
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +38 -42
- package/dist/managed/contract/index.js +225 -478
- package/dist/managed/contract/index.js.map +2 -2
- package/dist/signature-requests-state-reader.d.ts +14 -13
- package/dist/signature-requests-state-reader.d.ts.map +1 -1
- package/dist/signature-requests-state-reader.js +31 -20
- package/dist/signature-requests-state-reader.js.map +1 -1
- package/dist/signature-response-verification.d.ts +5 -5
- package/dist/signature-response-verification.d.ts.map +1 -1
- package/dist/signature-response-verification.js +4 -4
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-state-reader.d.ts +102 -109
- package/dist/signet-contract-state-reader.d.ts.map +1 -1
- package/dist/signet-contract-state-reader.js +125 -119
- package/dist/signet-contract-state-reader.js.map +1 -1
- package/dist/signet-request-feed.d.ts +4 -3
- package/dist/signet-request-feed.d.ts.map +1 -1
- package/dist/signet-request-feed.js +9 -8
- package/dist/signet-request-feed.js.map +1 -1
- package/dist/signet-request-resolver.d.ts +6 -4
- package/dist/signet-request-resolver.d.ts.map +1 -1
- package/dist/signet-request-resolver.js +8 -6
- package/dist/signet-request-resolver.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +21 -20
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +35 -23
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +93 -59
- package/dist/signet-requests.d.ts.map +1 -1
- package/dist/signet-requests.js +84 -67
- package/dist/signet-requests.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +275 -413
- package/src/circuits.compact +24 -25
- package/dist/schnorr.d.ts +0 -100
- package/dist/schnorr.d.ts.map +0 -1
- package/dist/schnorr.js +0 -144
- package/dist/schnorr.js.map +0 -1
- package/src/Schnorr.compact +0 -63
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"runtime-version": "0.18.0-rc.1",
|
|
5
5
|
"circuits": [
|
|
6
6
|
{
|
|
7
|
-
"name": "
|
|
7
|
+
"name": "constructSignBidirectionalEventNotificationV1",
|
|
8
8
|
"pure": true,
|
|
9
9
|
"proof": false,
|
|
10
10
|
"arguments": [
|
|
@@ -24,13 +24,6 @@
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
"name": "requestId",
|
|
29
|
-
"type": {
|
|
30
|
-
"type-name": "Bytes",
|
|
31
|
-
"length": 32
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
27
|
{
|
|
35
28
|
"name": "requestsIndexField",
|
|
36
29
|
"type": {
|
|
@@ -41,7 +34,7 @@
|
|
|
41
34
|
],
|
|
42
35
|
"result-type": {
|
|
43
36
|
"type-name": "Struct",
|
|
44
|
-
"name": "
|
|
37
|
+
"name": "SignBidirectionalEventNotification",
|
|
45
38
|
"elements": [
|
|
46
39
|
{
|
|
47
40
|
"name": "version",
|
|
@@ -54,31 +47,14 @@
|
|
|
54
47
|
"name": "payload",
|
|
55
48
|
"type": {
|
|
56
49
|
"type-name": "Bytes",
|
|
57
|
-
"length":
|
|
50
|
+
"length": 128
|
|
58
51
|
}
|
|
59
52
|
}
|
|
60
53
|
]
|
|
61
54
|
}
|
|
62
55
|
},
|
|
63
56
|
{
|
|
64
|
-
"name": "
|
|
65
|
-
"pure": true,
|
|
66
|
-
"proof": false,
|
|
67
|
-
"arguments": [
|
|
68
|
-
{
|
|
69
|
-
"name": "addr",
|
|
70
|
-
"type": {
|
|
71
|
-
"type-name": "Bytes",
|
|
72
|
-
"length": 20
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"result-type": {
|
|
77
|
-
"type-name": "Field"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "signetAttestationMessage",
|
|
57
|
+
"name": "signetAttestationDigest",
|
|
82
58
|
"pure": true,
|
|
83
59
|
"proof": false,
|
|
84
60
|
"arguments": [
|
|
@@ -109,107 +85,106 @@
|
|
|
109
85
|
}
|
|
110
86
|
],
|
|
111
87
|
"result-type": {
|
|
112
|
-
"type-name": "
|
|
113
|
-
"length":
|
|
114
|
-
"type": {
|
|
115
|
-
"type-name": "Field"
|
|
116
|
-
}
|
|
88
|
+
"type-name": "Bytes",
|
|
89
|
+
"length": 32
|
|
117
90
|
}
|
|
118
91
|
},
|
|
119
92
|
{
|
|
120
|
-
"name": "
|
|
93
|
+
"name": "verifyRespondBidirectionalEvent",
|
|
121
94
|
"pure": true,
|
|
122
95
|
"proof": false,
|
|
123
96
|
"arguments": [
|
|
124
97
|
{
|
|
125
|
-
"name": "
|
|
98
|
+
"name": "requestId",
|
|
126
99
|
"type": {
|
|
127
|
-
"type-name": "
|
|
128
|
-
"
|
|
100
|
+
"type-name": "Alias",
|
|
101
|
+
"name": "RequestId",
|
|
102
|
+
"type": {
|
|
103
|
+
"type-name": "Bytes",
|
|
104
|
+
"length": 32
|
|
105
|
+
}
|
|
129
106
|
}
|
|
130
107
|
},
|
|
131
108
|
{
|
|
132
|
-
"name": "
|
|
133
|
-
"type": {
|
|
134
|
-
"type-name": "Bytes",
|
|
135
|
-
"length": 64
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"result-type": {
|
|
140
|
-
"type-name": "Tuple",
|
|
141
|
-
"types": [
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "assertPathCommitment",
|
|
147
|
-
"pure": true,
|
|
148
|
-
"proof": false,
|
|
149
|
-
"arguments": [
|
|
150
|
-
{
|
|
151
|
-
"name": "commitment",
|
|
109
|
+
"name": "respondBidirectionalEvent",
|
|
152
110
|
"type": {
|
|
153
|
-
"type-name": "
|
|
154
|
-
"
|
|
111
|
+
"type-name": "Struct",
|
|
112
|
+
"name": "RespondBidirectionalEvent",
|
|
113
|
+
"elements": [
|
|
114
|
+
{
|
|
115
|
+
"name": "serializedOutput",
|
|
116
|
+
"type": {
|
|
117
|
+
"type-name": "Bytes",
|
|
118
|
+
"length": 128
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "outputLen",
|
|
123
|
+
"type": {
|
|
124
|
+
"type-name": "Uint",
|
|
125
|
+
"maxval": 255
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "r",
|
|
130
|
+
"type": {
|
|
131
|
+
"type-name": "Bytes",
|
|
132
|
+
"length": 32
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "s",
|
|
137
|
+
"type": {
|
|
138
|
+
"type-name": "Bytes",
|
|
139
|
+
"length": 32
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "recoveryId",
|
|
144
|
+
"type": {
|
|
145
|
+
"type-name": "Uint",
|
|
146
|
+
"maxval": 255
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
155
150
|
}
|
|
156
151
|
},
|
|
157
152
|
{
|
|
158
|
-
"name": "
|
|
153
|
+
"name": "mpcResponseKey",
|
|
159
154
|
"type": {
|
|
160
|
-
"type-name": "
|
|
161
|
-
"
|
|
155
|
+
"type-name": "Alias",
|
|
156
|
+
"name": "Secp256k1Point",
|
|
157
|
+
"type": {
|
|
158
|
+
"type-name": "Opaque",
|
|
159
|
+
"tsType": "Secp256k1Point"
|
|
160
|
+
}
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
],
|
|
165
164
|
"result-type": {
|
|
166
|
-
"type-name": "
|
|
167
|
-
"types": [
|
|
168
|
-
]
|
|
165
|
+
"type-name": "Boolean"
|
|
169
166
|
}
|
|
170
167
|
},
|
|
171
168
|
{
|
|
172
|
-
"name": "
|
|
169
|
+
"name": "signetKeyHash",
|
|
173
170
|
"pure": true,
|
|
174
171
|
"proof": false,
|
|
175
172
|
"arguments": [
|
|
176
173
|
{
|
|
177
|
-
"name": "
|
|
178
|
-
"type": {
|
|
179
|
-
"type-name": "Field"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "ann_y",
|
|
184
|
-
"type": {
|
|
185
|
-
"type-name": "Field"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "pk_x",
|
|
190
|
-
"type": {
|
|
191
|
-
"type-name": "Field"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "pk_y",
|
|
174
|
+
"name": "pk",
|
|
196
175
|
"type": {
|
|
197
|
-
"type-name": "
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"name": "msg",
|
|
202
|
-
"type": {
|
|
203
|
-
"type-name": "Vector",
|
|
204
|
-
"length": 4,
|
|
176
|
+
"type-name": "Alias",
|
|
177
|
+
"name": "Secp256k1Point",
|
|
205
178
|
"type": {
|
|
206
|
-
"type-name": "
|
|
179
|
+
"type-name": "Opaque",
|
|
180
|
+
"tsType": "Secp256k1Point"
|
|
207
181
|
}
|
|
208
182
|
}
|
|
209
183
|
}
|
|
210
184
|
],
|
|
211
185
|
"result-type": {
|
|
212
|
-
"type-name": "
|
|
186
|
+
"type-name": "Bytes",
|
|
187
|
+
"length": 32
|
|
213
188
|
}
|
|
214
189
|
}
|
|
215
190
|
],
|
|
@@ -7,26 +7,26 @@
|
|
|
7
7
|
"type": "directory",
|
|
8
8
|
"contract-info.json": {
|
|
9
9
|
"type": "file",
|
|
10
|
-
"size":
|
|
11
|
-
"hash": "
|
|
10
|
+
"size": 4397,
|
|
11
|
+
"hash": "a9962a641c6b791f1a476adc5875d36de5cedb28b2377f016a8efb7ff644e526"
|
|
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": 4176,
|
|
19
|
+
"hash": "6319da925c6f853b419c1794e449f732179d94d04b76b7334a634d4eed8f838d"
|
|
20
20
|
},
|
|
21
21
|
"index.js": {
|
|
22
22
|
"type": "file",
|
|
23
|
-
"size":
|
|
24
|
-
"hash": "
|
|
23
|
+
"size": 21045,
|
|
24
|
+
"hash": "15e7ced35995de9bc5fad3bb3fb9fe070e2d63f59f205140293bdd4b896d3b83"
|
|
25
25
|
},
|
|
26
26
|
"index.js.map": {
|
|
27
27
|
"type": "file",
|
|
28
|
-
"size":
|
|
29
|
-
"hash": "
|
|
28
|
+
"size": 1922,
|
|
29
|
+
"hash": "b78095e48c3a891b91e89c87b687b420ee1ad595e7d11ac27ed4656a74cc0ea7"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -10,51 +10,47 @@ export type ProvableCircuits<PS> = {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export type PureCircuits = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
constructSignBidirectionalEventNotificationV1(callerAddress_0: { bytes: Uint8Array
|
|
14
|
+
},
|
|
15
|
+
requestsIndexField_0: bigint): { version: bigint,
|
|
16
|
+
payload: Uint8Array
|
|
17
|
+
};
|
|
18
|
+
signetAttestationDigest(requestId_0: Uint8Array,
|
|
19
|
+
serializedOutput_0: Uint8Array,
|
|
20
|
+
outputLen_0: bigint): Uint8Array;
|
|
21
|
+
verifyRespondBidirectionalEvent(requestId_0: Uint8Array,
|
|
22
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
23
|
+
outputLen: bigint,
|
|
24
|
+
r: Uint8Array,
|
|
25
|
+
s: Uint8Array,
|
|
26
|
+
recoveryId: bigint
|
|
27
|
+
},
|
|
28
|
+
mpcResponseKey_0: __compactRuntime.Secp256k1Point): boolean;
|
|
29
|
+
signetKeyHash(pk_0: __compactRuntime.Secp256k1Point): Uint8Array;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type Circuits<PS> = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
ann_y_0: bigint,
|
|
55
|
-
pk_x_0: bigint,
|
|
56
|
-
pk_y_0: bigint,
|
|
57
|
-
msg_0: bigint[]): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
|
|
33
|
+
constructSignBidirectionalEventNotificationV1(context: __compactRuntime.CircuitContext<PS>,
|
|
34
|
+
callerAddress_0: { bytes: Uint8Array
|
|
35
|
+
},
|
|
36
|
+
requestsIndexField_0: bigint): Promise<__compactRuntime.CircuitResults<PS, { version: bigint,
|
|
37
|
+
payload: Uint8Array
|
|
38
|
+
}>>;
|
|
39
|
+
signetAttestationDigest(context: __compactRuntime.CircuitContext<PS>,
|
|
40
|
+
requestId_0: Uint8Array,
|
|
41
|
+
serializedOutput_0: Uint8Array,
|
|
42
|
+
outputLen_0: bigint): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
43
|
+
verifyRespondBidirectionalEvent(context: __compactRuntime.CircuitContext<PS>,
|
|
44
|
+
requestId_0: Uint8Array,
|
|
45
|
+
respondBidirectionalEvent_0: { serializedOutput: Uint8Array,
|
|
46
|
+
outputLen: bigint,
|
|
47
|
+
r: Uint8Array,
|
|
48
|
+
s: Uint8Array,
|
|
49
|
+
recoveryId: bigint
|
|
50
|
+
},
|
|
51
|
+
mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
52
|
+
signetKeyHash(context: __compactRuntime.CircuitContext<PS>,
|
|
53
|
+
pk_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
58
54
|
}
|
|
59
55
|
|
|
60
56
|
export type Ledger = {
|