@sig-net/midnight 0.25.1 → 0.26.0-rc.10
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 +9 -8
- package/dist/constants.d.ts +22 -11
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +49 -25
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +1 -1
- package/dist/ecdsa-attestation.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +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 +418 -314
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.d.ts +3 -3
- package/dist/mpc-output-cache.d.ts.map +1 -1
- package/dist/mpc-output-cache.js +2 -2
- package/dist/raw-contract-state.d.ts +2 -2
- package/dist/record-contract-address.d.ts +29 -12
- package/dist/record-contract-address.d.ts.map +1 -1
- package/dist/record-contract-address.js +55 -18
- 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 +14 -8
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +20 -16
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +26 -23
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +28 -19
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/url-redaction.d.ts +11 -0
- package/dist/url-redaction.d.ts.map +1 -0
- package/dist/url-redaction.js +21 -0
- package/dist/url-redaction.js.map +1 -0
- package/package.json +5 -5
- package/src/Signet.compact +26 -22
- 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 responder 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
|
|
|
@@ -51,7 +51,7 @@ What your contract imports with `import "@sig-net/midnight/src/Signet"`:
|
|
|
51
51
|
|
|
52
52
|
| Task | Exports |
|
|
53
53
|
|---|---|
|
|
54
|
-
| Declare the protocol ledger state (setup step 3) | `SignBidirectionalEventMapV1` (the request map the MPC reads) and `SignetSigner` (the Signet
|
|
54
|
+
| Declare the protocol ledger state (setup step 3) | `SignBidirectionalEventMapV1` (the request map the MPC reads) and `SignetSigner` (the Signet signer's cross-contract-call interface, pinned at deploy). |
|
|
55
55
|
| Build and store a signature request (runtime step 1) | `constructSignBidirectionalEventV1` and `calculateEvmType2RequestIdV1`, over the request structs `EvmType2TxParams`, `EvmCalldata` and `EvmAccessListEntry`. The id hashes `calculateEvmType2TxParamsDigestV1`, a digest over the transaction's used entries only, so it ignores your struct's capacities and unused slots. |
|
|
56
56
|
| Notify the MPC of the request (runtime step 1) | `constructSignBidirectionalEventNotificationV1`: packs your contract's address and the request map's ledger-tree path. |
|
|
57
57
|
| Narrow an attested `uint256` in-circuit | `checkedTruncationU128`: the `Bytes<32>` the MPC attests (little-endian) to a `Uint<128>`, aborting unless the high 16 bytes are zero (see [Output Recovery and Serialisation](https://github.com/sig-net/midnight-integration/blob/main/README.md#output-recovery-and-serialisation)). |
|
|
@@ -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 responder 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` and `
|
|
71
|
+
| Look up published counterparty values | `MidnightNetwork`, `getMpcRootPublicKey`, `getSignerContractAddress` and `getResponderContractAddress`: 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. |
|
|
@@ -78,11 +78,11 @@ What clients import from `@sig-net/midnight`:
|
|
|
78
78
|
| Convert a foreign execution output into respond bytes | `deserializeEvmOutput` (raw EVM return data to named values) and `serializeRespondOutput` (named values to the attested Borsh bytes): the two conversions `executedEvmRespondOutput` runs on a contract call's return data. |
|
|
79
79
|
| Know what an output schema attests to | `deriveRespondSchema` (the Borsh struct the MPC serialises with), `respondOutputWidth` (the `Bytes<N>` width a settle circuit declares) and `unsupportedEvmOutputFields` (the fields that make the MPC drop a request, without throwing). |
|
|
80
80
|
| Recognise a failed remote execution | `OutputKind` on the verified `RespondBidirectionalEvent`: `failed` or `unviable` beside an empty output (see [Handling Failure](https://github.com/sig-net/midnight-integration/blob/main/README.md#handling-failure)). |
|
|
81
|
-
| Read the attested output bytes from the MPC's output cache | `MpcOutputCacheReader`: one reader per network and Signet
|
|
81
|
+
| Read the attested output bytes from the MPC's output cache | `MpcOutputCacheReader`: one reader per network and Signet signer pair, over the public bucket an MPC configured with output storage writes each request's exact attested bytes to before posting, defaulting to the bucket `getMpcOutputCacheUrl` publishes for the network. `fetchSerializedOutput` yields the bytes step 5 verifies, `undefined` while the object is not in the cache (not written yet, or never written, since the cache is optional). |
|
|
82
82
|
| Hand a verified attestation to your verify circuit (runtime step 5) | `respondBidirectionalEventToCircuitInput`: flips the wire event's big-endian `bigR.x` and `s` into the little-endian record `verifyRespondBidirectionalEventV1` reads. |
|
|
83
83
|
| Verify attestations without the reader | `verifyRespondBidirectionalEvent`: the full check the reader applies, exposed for custom pipelines. `verifyRespondBidirectionalAttestation` checks a post's signature without the output, `verifyAttestedOutput` checks an output against an attested width and hash, and `calculateAttestedOutputHash` gives the output hash a post commits to. |
|
|
84
84
|
| Mint attestations in your contract's unit tests | The `@sig-net/midnight/testing` entry point, see [Testing entry point](#testing-entry-point). |
|
|
85
|
-
| Discover requests MPC-side (responders, background workers) | The discovery primitives: decode the signet
|
|
85
|
+
| Discover requests MPC-side (responders, background workers) | The discovery primitives: decode the signet signer's emitted notification events with `decodeSignetEventNamed(event, SignetEventName.SignBidirectionalEvent)` (or every kind at once with `decodeSignetEvent`, which throws on an undecodable payload anyone can emit, or its non-throwing sibling `tryDecodeSignetEvent`), then resolve each pointer against the named caller's own request map with `lookupSignetRequestAt` (the authenticated read). The polling loop belongs to the responder. |
|
|
86
86
|
| Call the compiled protocol circuits | `pureCircuits`: the compiled pure circuits of `circuits.compact`: the non-generic circuits of `Signet.compact` under their own names, for example the notification packer, and fixed-size instances of the generic ones with the sizes in the name, for example `calculateEvmType2RequestIdV1_1_0_0_34`. Off-chain code calls these compiled artefacts, so it always agrees with what the contracts prove. |
|
|
87
87
|
|
|
88
88
|
### Testing entry point
|
|
@@ -115,8 +115,9 @@ const event = attestRespondBidirectional(
|
|
|
115
115
|
|
|
116
116
|
## Related packages
|
|
117
117
|
|
|
118
|
-
- [`@sig-net/midnight-
|
|
119
|
-
- [`@sig-net/midnight-
|
|
118
|
+
- [`@sig-net/midnight-signer`](https://www.npmjs.com/package/@sig-net/midnight-signer): the central signet signer this library reads requests from.
|
|
119
|
+
- [`@sig-net/midnight-responder`](https://www.npmjs.com/package/@sig-net/midnight-responder): the signet responder this library reads the MPC's responses from.
|
|
120
|
+
- [`@sig-net/midnight-contract-deploy`](https://www.npmjs.com/package/@sig-net/midnight-contract-deploy): deploy tooling for the signet signer and the signet responder plus generic Midnight deploy/wallet plumbing.
|
|
120
121
|
|
|
121
122
|
Developed in [sig-net/midnight-integration](https://github.com/sig-net/midnight-integration).
|
|
122
123
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -39,8 +39,6 @@ export declare function asciiUnpadded(bytes: Uint8Array): string;
|
|
|
39
39
|
export declare enum MidnightNetwork {
|
|
40
40
|
/** Local standalone stack (Docker node, indexer and proof server on localhost). */
|
|
41
41
|
Undeployed = "undeployed",
|
|
42
|
-
/** Public staging network, pre-preview. */
|
|
43
|
-
Stagenet = "stagenet",
|
|
44
42
|
/** Public test network for early and breaking changes (bleeding-edge ledger). */
|
|
45
43
|
Preview = "preview",
|
|
46
44
|
/** Public test network that mirrors mainnet config: the final staging step. */
|
|
@@ -51,8 +49,8 @@ export declare enum MidnightNetwork {
|
|
|
51
49
|
/**
|
|
52
50
|
* A public, long-lived Midnight network: every named network except the
|
|
53
51
|
* local standalone stack. Only these have fixed protocol counterparty
|
|
54
|
-
* values published in this package (see {@link getMpcRootPublicKey}
|
|
55
|
-
* {@link
|
|
52
|
+
* values published in this package (see {@link getMpcRootPublicKey},
|
|
53
|
+
* {@link getSignerContractAddress} and {@link getResponderContractAddress}).
|
|
56
54
|
*/
|
|
57
55
|
export type DeployedNetwork = Exclude<MidnightNetwork, MidnightNetwork.Undeployed>;
|
|
58
56
|
/**
|
|
@@ -68,17 +66,30 @@ export type DeployedNetwork = Exclude<MidnightNetwork, MidnightNetwork.Undeploye
|
|
|
68
66
|
*/
|
|
69
67
|
export declare function getMpcRootPublicKey(networkId: DeployedNetwork): string;
|
|
70
68
|
/**
|
|
71
|
-
* The address of the
|
|
72
|
-
* Midnight network: the
|
|
73
|
-
*
|
|
74
|
-
*
|
|
69
|
+
* The address of the signet signer on a deployed
|
|
70
|
+
* Midnight network: the contract a requester contract seals at deploy and
|
|
71
|
+
* notifies of its requests. A local standalone stack has no fixed address:
|
|
72
|
+
* each stack deploys its own signet signer.
|
|
75
73
|
*
|
|
76
74
|
* @param networkId - The deployed network to look up.
|
|
77
|
-
* @returns The network's signet
|
|
78
|
-
* @throws {Error} When the
|
|
75
|
+
* @returns The network's signet signer address.
|
|
76
|
+
* @throws {Error} When the signet signer's address is not yet published in this
|
|
79
77
|
* package.
|
|
80
78
|
*/
|
|
81
|
-
export declare function
|
|
79
|
+
export declare function getSignerContractAddress(networkId: DeployedNetwork): string;
|
|
80
|
+
/**
|
|
81
|
+
* The address of the signet responder contract on a deployed Midnight
|
|
82
|
+
* network: the contract the MPC posts its responses to, and the
|
|
83
|
+
* `responderContractAddress` a `SignetRequestResponseReader` polls. A local
|
|
84
|
+
* standalone stack has no fixed address: each stack deploys its own
|
|
85
|
+
* responder.
|
|
86
|
+
*
|
|
87
|
+
* @param networkId - The deployed network to look up.
|
|
88
|
+
* @returns The network's responder contract address.
|
|
89
|
+
* @throws {Error} When the responder's address is not yet published in this
|
|
90
|
+
* package.
|
|
91
|
+
*/
|
|
92
|
+
export declare function getResponderContractAddress(networkId: DeployedNetwork): string;
|
|
82
93
|
/**
|
|
83
94
|
* The public URL of the MPC's output cache on a deployed Midnight network,
|
|
84
95
|
* 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,
|
|
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,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;AAenF;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAMtE;AAWD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAM3E;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAM9E;AAeD;;;;;;;;;;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 signer and responder addresses). 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
|
//
|
|
@@ -62,8 +62,6 @@ export var MidnightNetwork;
|
|
|
62
62
|
(function (MidnightNetwork) {
|
|
63
63
|
/** Local standalone stack (Docker node, indexer and proof server on localhost). */
|
|
64
64
|
MidnightNetwork["Undeployed"] = "undeployed";
|
|
65
|
-
/** Public staging network, pre-preview. */
|
|
66
|
-
MidnightNetwork["Stagenet"] = "stagenet";
|
|
67
65
|
/** Public test network for early and breaking changes (bleeding-edge ledger). */
|
|
68
66
|
MidnightNetwork["Preview"] = "preview";
|
|
69
67
|
/** Public test network that mirrors mainnet config: the final staging step. */
|
|
@@ -76,11 +74,10 @@ export var MidnightNetwork;
|
|
|
76
74
|
// publish it for that network. An empty string means "not yet published" and
|
|
77
75
|
// makes getMpcRootPublicKey throw for that network.
|
|
78
76
|
const mpcRootPublicKeys = {
|
|
79
|
-
[MidnightNetwork.
|
|
80
|
-
// Canonical form of the signet.js
|
|
81
|
-
// secp256k1:
|
|
82
|
-
"
|
|
83
|
-
[MidnightNetwork.Preview]: "",
|
|
77
|
+
[MidnightNetwork.Preview]:
|
|
78
|
+
// Canonical form of the signet.js TESTNET_DEV root key:
|
|
79
|
+
// secp256k1:54hU5wcCmVUPFWLDALXMh1fFToZsVXrx9BbTbHzSfQq1Kd1rJZi52iPa4QQxo6s5TgjWqgpY8HamYuUDzG6fAaUq
|
|
80
|
+
"0x04cb41bab8bc97121f4902514ca57a284f167b9239ecb8176831d1ef0fede87c61ca3e59da1c194aa90108098a9e5cdc55d3b3297cdefbc085ffafd0f2c34ae61a",
|
|
84
81
|
[MidnightNetwork.Preprod]: "",
|
|
85
82
|
[MidnightNetwork.Mainnet]: "",
|
|
86
83
|
};
|
|
@@ -102,30 +99,56 @@ export function getMpcRootPublicKey(networkId) {
|
|
|
102
99
|
}
|
|
103
100
|
return publicKey;
|
|
104
101
|
}
|
|
105
|
-
// TODO: fill in each network's signet
|
|
106
|
-
//
|
|
107
|
-
// published" and makes
|
|
108
|
-
const
|
|
109
|
-
[MidnightNetwork.
|
|
110
|
-
[MidnightNetwork.Preview]: "",
|
|
102
|
+
// TODO: fill in each network's signet signer address as the signet
|
|
103
|
+
// signet signer is deployed there. An empty string means "not yet deployed or
|
|
104
|
+
// published" and makes getSignerContractAddress throw for that network.
|
|
105
|
+
const signerContractAddresses = {
|
|
106
|
+
[MidnightNetwork.Preview]: "2b0f9ef9fe7e6d79628a12d245ae0d7efaaaeeca360d9f5f3e13214a5c325013",
|
|
111
107
|
[MidnightNetwork.Preprod]: "",
|
|
112
108
|
[MidnightNetwork.Mainnet]: "",
|
|
113
109
|
};
|
|
114
110
|
/**
|
|
115
|
-
* The address of the
|
|
116
|
-
* Midnight network: the
|
|
117
|
-
*
|
|
118
|
-
*
|
|
111
|
+
* The address of the signet signer on a deployed
|
|
112
|
+
* Midnight network: the contract a requester contract seals at deploy and
|
|
113
|
+
* notifies of its requests. A local standalone stack has no fixed address:
|
|
114
|
+
* each stack deploys its own signet signer.
|
|
119
115
|
*
|
|
120
116
|
* @param networkId - The deployed network to look up.
|
|
121
|
-
* @returns The network's signet
|
|
122
|
-
* @throws {Error} When the
|
|
117
|
+
* @returns The network's signet signer address.
|
|
118
|
+
* @throws {Error} When the signet signer's address is not yet published in this
|
|
123
119
|
* package.
|
|
124
120
|
*/
|
|
125
|
-
export function
|
|
126
|
-
const contractAddress =
|
|
121
|
+
export function getSignerContractAddress(networkId) {
|
|
122
|
+
const contractAddress = signerContractAddresses[networkId];
|
|
127
123
|
if (!contractAddress) {
|
|
128
|
-
throw new Error(`no signet
|
|
124
|
+
throw new Error(`no signet signer address published for the '${networkId}' network yet`);
|
|
125
|
+
}
|
|
126
|
+
return contractAddress;
|
|
127
|
+
}
|
|
128
|
+
// Each network's signet responder address, filled in as the responder is
|
|
129
|
+
// deployed there. An empty string means "not yet deployed or published" and
|
|
130
|
+
// makes getResponderContractAddress throw for that network.
|
|
131
|
+
const responderContractAddresses = {
|
|
132
|
+
[MidnightNetwork.Preview]: "1616a3cf33ffc2c4678323150374b89a18807335bcbabd31621c56e0d3c0d203",
|
|
133
|
+
[MidnightNetwork.Preprod]: "",
|
|
134
|
+
[MidnightNetwork.Mainnet]: "",
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* The address of the signet responder contract on a deployed Midnight
|
|
138
|
+
* network: the contract the MPC posts its responses to, and the
|
|
139
|
+
* `responderContractAddress` a `SignetRequestResponseReader` polls. A local
|
|
140
|
+
* standalone stack has no fixed address: each stack deploys its own
|
|
141
|
+
* responder.
|
|
142
|
+
*
|
|
143
|
+
* @param networkId - The deployed network to look up.
|
|
144
|
+
* @returns The network's responder contract address.
|
|
145
|
+
* @throws {Error} When the responder's address is not yet published in this
|
|
146
|
+
* package.
|
|
147
|
+
*/
|
|
148
|
+
export function getResponderContractAddress(networkId) {
|
|
149
|
+
const contractAddress = responderContractAddresses[networkId];
|
|
150
|
+
if (!contractAddress) {
|
|
151
|
+
throw new Error(`no responder contract address published for the '${networkId}' network yet`);
|
|
129
152
|
}
|
|
130
153
|
return contractAddress;
|
|
131
154
|
}
|
|
@@ -134,8 +157,9 @@ export function getSignetContractAddress(networkId) {
|
|
|
134
157
|
// string means "no cache published" and makes getMpcOutputCacheUrl throw for
|
|
135
158
|
// that network.
|
|
136
159
|
const mpcOutputCacheUrls = {
|
|
137
|
-
|
|
138
|
-
|
|
160
|
+
// The dev MPC serves Preview, and its output storage is configured with
|
|
161
|
+
// this bucket and prefix.
|
|
162
|
+
[MidnightNetwork.Preview]: "https://storage.googleapis.com/midnight-cache-storage-dev/v1/stagenet",
|
|
139
163
|
[MidnightNetwork.Preprod]: "",
|
|
140
164
|
[MidnightNetwork.Mainnet]: "",
|
|
141
165
|
};
|
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":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e,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,yEAAyE;AACzE,4EAA4E;AAC5E,4DAA4D;AAC5D,MAAM,0BAA0B,GAAoC;IAClE,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,kEAAkE;IAC7F,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;IAC7B,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;CAC9B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,2BAA2B,CAAC,SAA0B;IACpE,MAAM,eAAe,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC9D,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,oDAAoD,SAAS,eAAe,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,sEAAsE;AACtE,yEAAyE;AACzE,6EAA6E;AAC7E,gBAAgB;AAChB,MAAM,kBAAkB,GAAoC;IAC1D,wEAAwE;IACxE,0BAA0B;IAC1B,CAAC,eAAe,CAAC,OAAO,CAAC,EACvB,uEAAuE;IACzE,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;IAC7B,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAAC,SAA0B;IAC7D,MAAM,QAAQ,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC/C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,8CAA8C,SAAS,eAAe,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -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
|
+
* responder 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
|
+
* responder 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
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { abiWordToBool, abiWordToUint128, assembleCalldata, boolAbiWord, calcula
|
|
|
12
12
|
export { calculateRequestId } from "./signet-request-id.ts";
|
|
13
13
|
export * from "./signet-request-response-reader.ts";
|
|
14
14
|
export { type ContractAddress, contractAddressFromHex, type Maybe, MPCDestination, MPCSignatureAlgorithm, parseRequestIdHex, PATH_BYTES, type RequestId, requestIdBytes, type RequestIdHex, requestIdHex, type RequestIdPreimage, type SignBidirectionalEvent, type SignBidirectionalEventIndex, type SignBidirectionalEventLedgerMap, toSignBidirectionalEventIndex, TxParamType, } from "./signet-requests.ts";
|
|
15
|
+
export * from "./url-redaction.ts";
|
|
15
16
|
export { calculateAttestedOutputHash, formatSecp256k1PublicKey, normaliseSecp256k1PublicKey, parseSecp256k1PublicKey, respondBidirectionalEventToCircuitInput, SECP256K1_ORDER, type Secp256k1Point, signatureRespondedEventToSignature, verifyAttestedOutput, verifyRespondBidirectionalAttestation, verifyRespondBidirectionalEvent, } from "./ecdsa-attestation.ts";
|
|
16
17
|
/**
|
|
17
18
|
* Compiled pure circuits and protocol enums of Signet.compact (run
|
package/dist/index.d.ts.map
CHANGED
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AiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,6BAA6B,EAC7B,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AAKnC,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,uCAAuC,EACvC,eAAe,EACf,KAAK,cAAc,EACnB,kCAAkC,EAClC,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,KAAK,YAAY,EACjB,YAAY,GACb,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export { abiWordToBool, abiWordToUint128, assembleCalldata, boolAbiWord, calcula
|
|
|
20
20
|
export { calculateRequestId } from "./signet-request-id.js";
|
|
21
21
|
export * from "./signet-request-response-reader.js";
|
|
22
22
|
export { contractAddressFromHex, MPCDestination, MPCSignatureAlgorithm, parseRequestIdHex, PATH_BYTES, requestIdBytes, requestIdHex, toSignBidirectionalEventIndex, TxParamType, } from "./signet-requests.js";
|
|
23
|
+
export * from "./url-redaction.js";
|
|
23
24
|
// Explicit list: ecdsa-attestation.ts also backs the ./testing entry point
|
|
24
25
|
// (the attestation-minting helpers that take a secret key live THERE), and
|
|
25
26
|
// its record decoder (mpcSignatureToEcdsaSignature) and noble-point parser
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,sEAAsE;AACtE,wEAAwE;AAExE,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,eAAe,EACf,UAAU,EACV,UAAU,EACV,cAAc,GACf,MAAM,kBAAkB,CAAC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8D;AAC9D,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,uCAAuC,EACvC,eAAe,EAEf,kCAAkC,EAClC,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EAEV,YAAY,GACb,MAAM,6BAA6B,CAAC"}
|
|
@@ -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": "b3828bd9cac94b615eb5b2daeeac95890a946f00650c5910a2fac45d8a6c5872"
|
|
25
26
|
},
|
|
26
27
|
"index.js.map": {
|
|
27
28
|
"type": "file",
|
|
28
|
-
"size":
|
|
29
|
-
"hash": "
|
|
29
|
+
"size": 10920,
|
|
30
|
+
"hash": "d996306a40c2ef5bd201c201be9a34009fc807ed7b51cf98306d82ac744ba187"
|
|
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;
|