@openzeppelin/miden-multisig-client 0.18.0-rc.1 → 0.18.0-rc.2
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 +26 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/multisig/authArgErrors.d.ts +15 -1
- package/dist/multisig/authArgErrors.d.ts.map +1 -1
- package/dist/multisig/authArgErrors.js +20 -0
- package/dist/multisig/authArgErrors.js.map +1 -1
- package/dist/multisig.d.ts +36 -16
- package/dist/multisig.d.ts.map +1 -1
- package/dist/multisig.js +109 -58
- package/dist/multisig.js.map +1 -1
- package/dist/prover/workflow.d.ts +7 -3
- package/dist/prover/workflow.d.ts.map +1 -1
- package/dist/prover/workflow.js +7 -5
- package/dist/prover/workflow.js.map +1 -1
- package/dist/transaction/summary.d.ts +92 -14
- package/dist/transaction/summary.d.ts.map +1 -1
- package/dist/transaction/summary.js +93 -3
- package/dist/transaction/summary.js.map +1 -1
- package/dist/transaction.d.ts +1 -1
- package/dist/transaction.d.ts.map +1 -1
- package/dist/transaction.js +1 -1
- package/dist/transaction.js.map +1 -1
- package/dist/types/proposal.d.ts +9 -8
- package/dist/types/proposal.d.ts.map +1 -1
- package/dist/types/proposal.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +3 -0
- package/src/multisig/authArgErrors.ts +28 -1
- package/src/multisig.ts +127 -65
- package/src/prover/workflow.ts +7 -10
- package/src/transaction/summary.ts +161 -16
- package/src/transaction.ts +6 -0
- package/src/types/proposal.ts +9 -8
package/src/types/proposal.ts
CHANGED
|
@@ -38,11 +38,11 @@ interface BaseProposalMetadata {
|
|
|
38
38
|
saltHex?: string;
|
|
39
39
|
requiredSignatures?: number;
|
|
40
40
|
/**
|
|
41
|
-
* Base64-serialized Miden `ChainAnchor`
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
41
|
+
* Base64-serialized Miden `ChainAnchor` at the block the proposal's
|
|
42
|
+
* transaction summary binds, the proposer's sync height when it built the
|
|
43
|
+
* request. Required, and checked against the summary's block commitment: a
|
|
44
|
+
* rebuild binds the block it names. The proposal executes at the chain tip,
|
|
45
|
+
* not at the anchor; 0.18.0-rc.1 clients still re-execute at it.
|
|
46
46
|
*/
|
|
47
47
|
chainAnchor?: string;
|
|
48
48
|
}
|
|
@@ -175,9 +175,10 @@ export interface Proposal {
|
|
|
175
175
|
/**
|
|
176
176
|
* Outcome of checking a proposal's metadata against its signed summary.
|
|
177
177
|
* `failed.retryable` is true when the failure came from a transient node or
|
|
178
|
-
* RPC error,
|
|
179
|
-
* proposal
|
|
180
|
-
*
|
|
178
|
+
* RPC error, or from chain state this client had not caught up with, so the
|
|
179
|
+
* same proposal may verify on a later sync; false when the proposal itself
|
|
180
|
+
* cannot be reproduced (tampered metadata, for example) and it has to be
|
|
181
|
+
* re-proposed.
|
|
181
182
|
*/
|
|
182
183
|
export type ProposalVerification =
|
|
183
184
|
| { status: 'unchecked' }
|