@sig-net/midnight 0.26.0-rc.3 → 0.26.0-rc.4
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 +5 -6
- package/dist/constants.d.ts +5 -18
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -32
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +1 -1
- package/dist/ecdsa-attestation.js +1 -1
- package/dist/managed/compiler/contract-info.json +7 -21
- package/dist/managed/compiler/contract-manifest.json +12 -11
- package/dist/managed/contract/index.d.ts +2 -4
- package/dist/managed/contract/index.js +417 -313
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/raw-contract-state.d.ts +2 -2
- package/dist/record-contract-address.d.ts +10 -27
- package/dist/record-contract-address.d.ts.map +1 -1
- package/dist/record-contract-address.js +17 -54
- package/dist/record-contract-address.js.map +1 -1
- package/dist/signature-requests-state-reader.d.ts +2 -2
- package/dist/signature-requests-state-reader.js +2 -2
- package/dist/signature-response-verification.js +3 -3
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-events.d.ts +7 -7
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +9 -11
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +15 -19
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +11 -9
- package/dist/signet-request-response-reader.js.map +1 -1
- package/package.json +5 -5
- package/src/Signet.compact +15 -14
- package/src/circuits.compact +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ This package has 2 components:
|
|
|
19
19
|
import "@sig-net/midnight/src/Signet";
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
- **TypeScript library** for clients off chain: readers that poll the signet
|
|
22
|
+
- **TypeScript library** for clients off chain: readers that poll the signet contract and verify the MPC's responses, key derivation and attestation crypto, output serialisation, the published per-network addresses and constant values, and typed twins of the on-chain structs and circuits.
|
|
23
23
|
|
|
24
24
|
The [Export highlights](#export-highlights) section lists the specific exports each task uses.
|
|
25
25
|
|
|
@@ -64,11 +64,11 @@ What clients import from `@sig-net/midnight`:
|
|
|
64
64
|
|
|
65
65
|
| Task | Exports |
|
|
66
66
|
|---|---|
|
|
67
|
-
| Poll for the MPC's responses and verify them (runtime steps 2 to 4) | `SignetRequestResponseReader`: one reader per contract and Signet
|
|
67
|
+
| Poll for the MPC's responses and verify them (runtime steps 2 to 4) | `SignetRequestResponseReader`: one reader per contract and Signet singleton pair. Its getters `getVerifiedSignatureRespondedEvent`, `getSignedEvmTransaction` and `getVerifiedRespondBidirectionalEvent` map to steps 2, 3 and 4. |
|
|
68
68
|
| Verify responses over events already in hand (explorers, anything that streams the history once) | Decode the stream once with `tryDecodeSignetEvent`, then `reader.verifySignatureRespondedEvents(requestId, expectedSigner, events)` and `findVerifiedRespondBidirectionalEvent(requestId, serializedOutput, mpcResponseKey, events)` judge a request's posts without another walk of the event history. `signetEventRecordsOf` is the routing step both share. |
|
|
69
69
|
| Derive the key the MPC signs your requests with | `deriveMidnightRequestSigningKey`: the request signing public key for a contract address and path, and `deriveEvmAddress`: that key's EVM address, the expected signer checked in step 2 (see [Derived keys](https://github.com/sig-net/midnight-integration/blob/main/README.md#derived-keys)). With a request record in hand, `deriveSignBidirectionalEventSigningKey` and `deriveSignBidirectionalEventSignerEvmAddress` take the record and render its `sender` and `path` into the derivation themselves. |
|
|
70
70
|
| Derive the response key your deploy pins | `deriveMidnightResponseKey`: the key `initialise` stores (setup step 4), derived from your contract's address. |
|
|
71
|
-
| Look up published counterparty values | `MidnightNetwork`, `getMpcRootPublicKey
|
|
71
|
+
| Look up published counterparty values | `MidnightNetwork`, `getMpcRootPublicKey` and `getSignetContractAddress`: the fixed per-network values (see the notes in [Runtime](https://github.com/sig-net/midnight-integration/blob/main/README.md#runtime)). |
|
|
72
72
|
| Accept an MPC public key in any published spelling | `parseSecp256k1PublicKey` (to a Compact `Secp256k1Point`) and `normaliseSecp256k1PublicKey` (to the canonical `0x04…` uncompressed SEC1 hex): both take SEC1 hex, compressed or uncompressed with an optional `0x`, and NEAR's `secp256k1:<base58>`. |
|
|
73
73
|
| Read a text field of a request record | `asciiUnpadded`: the inverse of `asciiPadded`, for the zero-padded text fields (`executionDest`, `outputDeserializationSchema`). |
|
|
74
74
|
| Compute a request id off chain | `calculateRequestId`: the TS twin of the on-chain circuit, plus `requestIdHex` and `parseRequestIdHex` for the hex form. |
|
|
@@ -115,9 +115,8 @@ const event = attestRespondBidirectional(
|
|
|
115
115
|
|
|
116
116
|
## Related packages
|
|
117
117
|
|
|
118
|
-
- [`@sig-net/midnight-contract`](https://www.npmjs.com/package/@sig-net/midnight-contract): the central signet contract this library reads
|
|
119
|
-
- [`@sig-net/midnight-
|
|
120
|
-
- [`@sig-net/midnight-contract-deploy`](https://www.npmjs.com/package/@sig-net/midnight-contract-deploy): deploy tooling for the signet contract and the signet responder plus generic Midnight deploy/wallet plumbing.
|
|
118
|
+
- [`@sig-net/midnight-contract`](https://www.npmjs.com/package/@sig-net/midnight-contract): the central signet contract this library reads from.
|
|
119
|
+
- [`@sig-net/midnight-contract-deploy`](https://www.npmjs.com/package/@sig-net/midnight-contract-deploy): deploy tooling for that contract plus generic Midnight deploy/wallet plumbing.
|
|
121
120
|
|
|
122
121
|
Developed in [sig-net/midnight-integration](https://github.com/sig-net/midnight-integration).
|
|
123
122
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export declare enum MidnightNetwork {
|
|
|
51
51
|
/**
|
|
52
52
|
* A public, long-lived Midnight network: every named network except the
|
|
53
53
|
* local standalone stack. Only these have fixed protocol counterparty
|
|
54
|
-
* values published in this package (see {@link getMpcRootPublicKey}
|
|
55
|
-
* {@link getSignetContractAddress}
|
|
54
|
+
* values published in this package (see {@link getMpcRootPublicKey} and
|
|
55
|
+
* {@link getSignetContractAddress}).
|
|
56
56
|
*/
|
|
57
57
|
export type DeployedNetwork = Exclude<MidnightNetwork, MidnightNetwork.Undeployed>;
|
|
58
58
|
/**
|
|
@@ -69,9 +69,9 @@ export type DeployedNetwork = Exclude<MidnightNetwork, MidnightNetwork.Undeploye
|
|
|
69
69
|
export declare function getMpcRootPublicKey(networkId: DeployedNetwork): string;
|
|
70
70
|
/**
|
|
71
71
|
* The address of the central signet singleton contract on a deployed
|
|
72
|
-
* Midnight network: the
|
|
73
|
-
*
|
|
74
|
-
* each stack deploys its own singleton.
|
|
72
|
+
* Midnight network: the `signetContractAddress` a
|
|
73
|
+
* `SignetRequestResponseReader` polls. A local standalone stack has no
|
|
74
|
+
* fixed address: each stack deploys its own singleton.
|
|
75
75
|
*
|
|
76
76
|
* @param networkId - The deployed network to look up.
|
|
77
77
|
* @returns The network's signet contract address.
|
|
@@ -79,19 +79,6 @@ export declare function getMpcRootPublicKey(networkId: DeployedNetwork): string;
|
|
|
79
79
|
* package.
|
|
80
80
|
*/
|
|
81
81
|
export declare function getSignetContractAddress(networkId: DeployedNetwork): string;
|
|
82
|
-
/**
|
|
83
|
-
* The address of the signet responder contract on a deployed Midnight
|
|
84
|
-
* network: the contract the MPC posts its responses to, and the
|
|
85
|
-
* `responderContractAddress` a `SignetRequestResponseReader` polls. A local
|
|
86
|
-
* standalone stack has no fixed address: each stack deploys its own
|
|
87
|
-
* responder.
|
|
88
|
-
*
|
|
89
|
-
* @param networkId - The deployed network to look up.
|
|
90
|
-
* @returns The network's responder contract address.
|
|
91
|
-
* @throws {Error} When the responder's address is not yet published in this
|
|
92
|
-
* package.
|
|
93
|
-
*/
|
|
94
|
-
export declare function getResponderContractAddress(networkId: DeployedNetwork): string;
|
|
95
82
|
/**
|
|
96
83
|
* The public URL of the MPC's output cache on a deployed Midnight network,
|
|
97
84
|
* down to the MPC's object prefix: the `cacheUrl` an `MpcOutputCacheReader`
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,wFAAwF;AACxF,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAUpE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAMvD;AAED;;;GAGG;AACH,oBAAY,eAAe;IACzB,mFAAmF;IACnF,UAAU,eAAe;IACzB,2CAA2C;IAC3C,QAAQ,aAAa;IACrB,iFAAiF;IACjF,OAAO,YAAY;IACnB,+EAA+E;IAC/E,OAAO,YAAY;IACnB,6CAA6C;IAC7C,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;AAgBnF;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAMtE;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAM3E;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,wFAAwF;AACxF,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAUpE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAMvD;AAED;;;GAGG;AACH,oBAAY,eAAe;IACzB,mFAAmF;IACnF,UAAU,eAAe;IACzB,2CAA2C;IAC3C,QAAQ,aAAa;IACrB,iFAAiF;IACjF,OAAO,YAAY;IACnB,+EAA+E;IAC/E,OAAO,YAAY;IACnB,6CAA6C;IAC7C,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;AAgBnF;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAMtE;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAM3E;AAcD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAMvE"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// MPC routing constants, the padded-ASCII codec for the signet request
|
|
2
2
|
// structs, and the published per-network counterparty values (the MPC root
|
|
3
|
-
// public key and the signet
|
|
3
|
+
// public key and the signet contract address). Field widths mirror
|
|
4
4
|
// Signet.compact (the wire format: keep in lockstep), and the string
|
|
5
5
|
// constants are the values the MPC network routes on.
|
|
6
6
|
//
|
|
@@ -113,9 +113,9 @@ const signetContractAddresses = {
|
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
115
|
* The address of the central signet singleton contract on a deployed
|
|
116
|
-
* Midnight network: the
|
|
117
|
-
*
|
|
118
|
-
* each stack deploys its own singleton.
|
|
116
|
+
* Midnight network: the `signetContractAddress` a
|
|
117
|
+
* `SignetRequestResponseReader` polls. A local standalone stack has no
|
|
118
|
+
* fixed address: each stack deploys its own singleton.
|
|
119
119
|
*
|
|
120
120
|
* @param networkId - The deployed network to look up.
|
|
121
121
|
* @returns The network's signet contract address.
|
|
@@ -129,34 +129,6 @@ export function getSignetContractAddress(networkId) {
|
|
|
129
129
|
}
|
|
130
130
|
return contractAddress;
|
|
131
131
|
}
|
|
132
|
-
// Each network's signet responder address, filled in as the responder is
|
|
133
|
-
// deployed there. An empty string means "not yet deployed or published" and
|
|
134
|
-
// makes getResponderContractAddress throw for that network.
|
|
135
|
-
const responderContractAddresses = {
|
|
136
|
-
[MidnightNetwork.Stagenet]: "",
|
|
137
|
-
[MidnightNetwork.Preview]: "",
|
|
138
|
-
[MidnightNetwork.Preprod]: "",
|
|
139
|
-
[MidnightNetwork.Mainnet]: "",
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* The address of the signet responder contract on a deployed Midnight
|
|
143
|
-
* network: the contract the MPC posts its responses to, and the
|
|
144
|
-
* `responderContractAddress` a `SignetRequestResponseReader` polls. A local
|
|
145
|
-
* standalone stack has no fixed address: each stack deploys its own
|
|
146
|
-
* responder.
|
|
147
|
-
*
|
|
148
|
-
* @param networkId - The deployed network to look up.
|
|
149
|
-
* @returns The network's responder contract address.
|
|
150
|
-
* @throws {Error} When the responder's address is not yet published in this
|
|
151
|
-
* package.
|
|
152
|
-
*/
|
|
153
|
-
export function getResponderContractAddress(networkId) {
|
|
154
|
-
const contractAddress = responderContractAddresses[networkId];
|
|
155
|
-
if (!contractAddress) {
|
|
156
|
-
throw new Error(`no responder contract address published for the '${networkId}' network yet`);
|
|
157
|
-
}
|
|
158
|
-
return contractAddress;
|
|
159
|
-
}
|
|
160
132
|
// The public URL of each network's MPC output cache down to the MPC's
|
|
161
133
|
// configured object prefix (`publisher.output_storage.prefix`). An empty
|
|
162
134
|
// string means "no cache published" and makes getMpcOutputCacheUrl throw for
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,2EAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -192,7 +192,7 @@ export interface RespondBidirectionalAttestation {
|
|
|
192
192
|
/**
|
|
193
193
|
* Mint the record the MPC posts for an outcome: the attestation digest over
|
|
194
194
|
* `attestation`, ECDSA-signed with `secretKey`, in the ledger shape the
|
|
195
|
-
*
|
|
195
|
+
* singleton emits (big-endian signature bytes). Responder-side and
|
|
196
196
|
* test-fixture side (the fakenet posts through this), so it is exported
|
|
197
197
|
* through the `./testing` entry point.
|
|
198
198
|
*
|
|
@@ -325,7 +325,7 @@ export function calculateSignetAttestationDigest(requestId, blockHeight, outputK
|
|
|
325
325
|
/**
|
|
326
326
|
* Mint the record the MPC posts for an outcome: the attestation digest over
|
|
327
327
|
* `attestation`, ECDSA-signed with `secretKey`, in the ledger shape the
|
|
328
|
-
*
|
|
328
|
+
* singleton emits (big-endian signature bytes). Responder-side and
|
|
329
329
|
* test-fixture side (the fakenet posts through this), so it is exported
|
|
330
330
|
* through the `./testing` entry point.
|
|
331
331
|
*
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"compiler-version": "0.
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"compiler-version": "0.36.0",
|
|
3
|
+
"compiler-commit": "b5d9e4dfc532fe47011c4f6296e254f4853eb469",
|
|
4
|
+
"language-version": "0.28.0",
|
|
5
|
+
"runtime-version": "0.21.0",
|
|
5
6
|
"circuits": [
|
|
6
7
|
{
|
|
7
8
|
"name": "calculateRequestIdV1",
|
|
@@ -323,12 +324,7 @@
|
|
|
323
324
|
{
|
|
324
325
|
"name": "mpcResponseKey",
|
|
325
326
|
"type": {
|
|
326
|
-
"type-name": "
|
|
327
|
-
"name": "Secp256k1Point",
|
|
328
|
-
"type": {
|
|
329
|
-
"type-name": "Opaque",
|
|
330
|
-
"tsType": "Secp256k1Point"
|
|
331
|
-
}
|
|
327
|
+
"type-name": "Secp256k1Point"
|
|
332
328
|
}
|
|
333
329
|
}
|
|
334
330
|
],
|
|
@@ -1586,12 +1582,7 @@
|
|
|
1586
1582
|
{
|
|
1587
1583
|
"name": "mpcResponseKey",
|
|
1588
1584
|
"type": {
|
|
1589
|
-
"type-name": "
|
|
1590
|
-
"name": "Secp256k1Point",
|
|
1591
|
-
"type": {
|
|
1592
|
-
"type-name": "Opaque",
|
|
1593
|
-
"tsType": "Secp256k1Point"
|
|
1594
|
-
}
|
|
1585
|
+
"type-name": "Secp256k1Point"
|
|
1595
1586
|
}
|
|
1596
1587
|
}
|
|
1597
1588
|
],
|
|
@@ -1720,12 +1711,7 @@
|
|
|
1720
1711
|
{
|
|
1721
1712
|
"name": "mpcResponseKey",
|
|
1722
1713
|
"type": {
|
|
1723
|
-
"type-name": "
|
|
1724
|
-
"name": "Secp256k1Point",
|
|
1725
|
-
"type": {
|
|
1726
|
-
"type-name": "Opaque",
|
|
1727
|
-
"tsType": "Secp256k1Point"
|
|
1728
|
-
}
|
|
1714
|
+
"type-name": "Secp256k1Point"
|
|
1729
1715
|
}
|
|
1730
1716
|
}
|
|
1731
1717
|
],
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest-version": "1",
|
|
3
|
-
"compiler-version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"compiler-version": "0.36.0",
|
|
4
|
+
"compiler-commit": "b5d9e4dfc532fe47011c4f6296e254f4853eb469",
|
|
5
|
+
"language-version": "0.28.0",
|
|
6
|
+
"runtime-version": "0.21.0",
|
|
6
7
|
"compiler": {
|
|
7
8
|
"type": "directory",
|
|
8
9
|
"contract-info.json": {
|
|
9
10
|
"type": "file",
|
|
10
|
-
"size":
|
|
11
|
-
"hash": "
|
|
11
|
+
"size": 65099,
|
|
12
|
+
"hash": "b6360d41cfd72971305f1615a64d05ce53b33bee8213e10100856f1e495e3467"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
15
|
"contract": {
|
|
15
16
|
"type": "directory",
|
|
16
17
|
"index.d.ts": {
|
|
17
18
|
"type": "file",
|
|
18
|
-
"size":
|
|
19
|
-
"hash": "
|
|
19
|
+
"size": 46552,
|
|
20
|
+
"hash": "22ce8bc5624983728bb171b56c6bdd5f24598b5a86a208f2bf3dccaa5bbf2529"
|
|
20
21
|
},
|
|
21
22
|
"index.js": {
|
|
22
23
|
"type": "file",
|
|
23
|
-
"size":
|
|
24
|
-
"hash": "
|
|
24
|
+
"size": 154246,
|
|
25
|
+
"hash": "a4ae8aab719cc6f4c85e5dc997d7236a59cefee69b716053b2d72696cdcab6db"
|
|
25
26
|
},
|
|
26
27
|
"index.js.map": {
|
|
27
28
|
"type": "file",
|
|
28
|
-
"size":
|
|
29
|
-
"hash": "
|
|
29
|
+
"size": 10920,
|
|
30
|
+
"hash": "11dc4e2eac572b9107844bbc7604f817053070c818d723adb57ce69b751934d8"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -534,10 +534,6 @@ export type Circuits<PS> = {
|
|
|
534
534
|
export type Ledger = {
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
export type ContractReferenceLocations = any;
|
|
538
|
-
|
|
539
|
-
export declare const contractReferenceLocations : ContractReferenceLocations;
|
|
540
|
-
|
|
541
537
|
export declare class Contract<PS = any, W extends Witnesses<PS> = Witnesses<PS>> {
|
|
542
538
|
witnesses: W;
|
|
543
539
|
circuits: Circuits<PS>;
|
|
@@ -550,3 +546,5 @@ export declare class Contract<PS = any, W extends Witnesses<PS> = Witnesses<PS>>
|
|
|
550
546
|
export declare function ledger(state: __compactRuntime.StateValue | __compactRuntime.ChargedState): Ledger;
|
|
551
547
|
export declare const pureCircuits: PureCircuits;
|
|
552
548
|
export declare const expectedVk: Record<string, string>;
|
|
549
|
+
export declare const circuitSignatures: __compactRuntime.CircuitSignatures;
|
|
550
|
+
export declare const declaredInterfaces: __compactRuntime.DeclaredInterfaces;
|