@openzeppelin/miden-multisig-client 0.16.1 → 0.17.0-rc.1

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.
Files changed (207) hide show
  1. package/README.md +192 -11
  2. package/dist/account/builder.d.ts.map +1 -1
  3. package/dist/account/builder.js +32 -25
  4. package/dist/account/builder.js.map +1 -1
  5. package/dist/account/builder.test.js +73 -21
  6. package/dist/account/builder.test.js.map +1 -1
  7. package/dist/account/layout.d.ts +31 -0
  8. package/dist/account/layout.d.ts.map +1 -0
  9. package/dist/account/layout.js +31 -0
  10. package/dist/account/layout.js.map +1 -0
  11. package/dist/account/masm/account-components/auth.d.ts +1 -4
  12. package/dist/account/masm/account-components/auth.d.ts.map +1 -1
  13. package/dist/account/masm/account-components/auth.js +36 -53
  14. package/dist/account/masm/account-components/auth.js.map +1 -1
  15. package/dist/account/masm/index.d.ts +0 -1
  16. package/dist/account/masm/index.d.ts.map +1 -1
  17. package/dist/account/masm/index.js +0 -1
  18. package/dist/account/masm/index.js.map +1 -1
  19. package/dist/account/storage.d.ts +4 -0
  20. package/dist/account/storage.d.ts.map +1 -1
  21. package/dist/account/storage.js +9 -20
  22. package/dist/account/storage.js.map +1 -1
  23. package/dist/client.d.ts +4 -0
  24. package/dist/client.d.ts.map +1 -1
  25. package/dist/client.js +10 -5
  26. package/dist/client.js.map +1 -1
  27. package/dist/client.test.js +74 -16
  28. package/dist/client.test.js.map +1 -1
  29. package/dist/index.d.ts +5 -3
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +3 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/inspector.d.ts +59 -1
  34. package/dist/inspector.d.ts.map +1 -1
  35. package/dist/inspector.js +157 -29
  36. package/dist/inspector.js.map +1 -1
  37. package/dist/inspector.test.js +246 -37
  38. package/dist/inspector.test.js.map +1 -1
  39. package/dist/multisig.d.ts +109 -33
  40. package/dist/multisig.d.ts.map +1 -1
  41. package/dist/multisig.js +307 -104
  42. package/dist/multisig.js.map +1 -1
  43. package/dist/multisig.test.js +582 -58
  44. package/dist/multisig.test.js.map +1 -1
  45. package/dist/procedures.d.ts +6 -7
  46. package/dist/procedures.d.ts.map +1 -1
  47. package/dist/procedures.js +6 -7
  48. package/dist/procedures.js.map +1 -1
  49. package/dist/proposal/metadata.d.ts.map +1 -1
  50. package/dist/proposal/metadata.js +13 -2
  51. package/dist/proposal/metadata.js.map +1 -1
  52. package/dist/proposal/metadata.test.js +57 -0
  53. package/dist/proposal/metadata.test.js.map +1 -1
  54. package/dist/prover/errors.d.ts +5 -0
  55. package/dist/prover/errors.d.ts.map +1 -1
  56. package/dist/prover/errors.js +7 -155
  57. package/dist/prover/errors.js.map +1 -1
  58. package/dist/prover/errors.test.js +5 -0
  59. package/dist/prover/errors.test.js.map +1 -1
  60. package/dist/prover/retry.d.ts +1 -6
  61. package/dist/prover/retry.d.ts.map +1 -1
  62. package/dist/prover/retry.js +5 -28
  63. package/dist/prover/retry.js.map +1 -1
  64. package/dist/prover/retry.test.js +1 -1
  65. package/dist/prover/retry.test.js.map +1 -1
  66. package/dist/prover/workflow.d.ts +4 -3
  67. package/dist/prover/workflow.d.ts.map +1 -1
  68. package/dist/prover/workflow.js +5 -2
  69. package/dist/prover/workflow.js.map +1 -1
  70. package/dist/prover/workflow.test.js +28 -3
  71. package/dist/prover/workflow.test.js.map +1 -1
  72. package/dist/retry/classify.d.ts +16 -0
  73. package/dist/retry/classify.d.ts.map +1 -0
  74. package/dist/retry/classify.js +187 -0
  75. package/dist/retry/classify.js.map +1 -0
  76. package/dist/retry/runtime.d.ts +13 -0
  77. package/dist/retry/runtime.d.ts.map +1 -0
  78. package/dist/retry/runtime.js +33 -0
  79. package/dist/retry/runtime.js.map +1 -0
  80. package/dist/rpc/config.d.ts +11 -0
  81. package/dist/rpc/config.d.ts.map +1 -0
  82. package/dist/rpc/config.js +17 -0
  83. package/dist/rpc/config.js.map +1 -0
  84. package/dist/rpc/config.test.d.ts +2 -0
  85. package/dist/rpc/config.test.d.ts.map +1 -0
  86. package/dist/rpc/config.test.js +24 -0
  87. package/dist/rpc/config.test.js.map +1 -0
  88. package/dist/rpc/errors.d.ts +2 -0
  89. package/dist/rpc/errors.d.ts.map +1 -0
  90. package/dist/rpc/errors.js +11 -0
  91. package/dist/rpc/errors.js.map +1 -0
  92. package/dist/rpc/errors.test.d.ts +2 -0
  93. package/dist/rpc/errors.test.d.ts.map +1 -0
  94. package/dist/rpc/errors.test.js +34 -0
  95. package/dist/rpc/errors.test.js.map +1 -0
  96. package/dist/rpc/retry.d.ts +4 -0
  97. package/dist/rpc/retry.d.ts.map +1 -0
  98. package/dist/rpc/retry.js +6 -0
  99. package/dist/rpc/retry.js.map +1 -0
  100. package/dist/rpc/retry.test.d.ts +2 -0
  101. package/dist/rpc/retry.test.d.ts.map +1 -0
  102. package/dist/rpc/retry.test.js +98 -0
  103. package/dist/rpc/retry.test.js.map +1 -0
  104. package/dist/transaction/index.d.ts +1 -1
  105. package/dist/transaction/index.d.ts.map +1 -1
  106. package/dist/transaction/index.js +1 -1
  107. package/dist/transaction/index.js.map +1 -1
  108. package/dist/transaction/p2id.d.ts +17 -6
  109. package/dist/transaction/p2id.d.ts.map +1 -1
  110. package/dist/transaction/p2id.js +22 -31
  111. package/dist/transaction/p2id.js.map +1 -1
  112. package/dist/transaction/p2id.test.js +62 -24
  113. package/dist/transaction/p2id.test.js.map +1 -1
  114. package/dist/transaction/summary.d.ts +45 -2
  115. package/dist/transaction/summary.d.ts.map +1 -1
  116. package/dist/transaction/summary.js +42 -2
  117. package/dist/transaction/summary.js.map +1 -1
  118. package/dist/transaction/summary.test.d.ts +2 -0
  119. package/dist/transaction/summary.test.d.ts.map +1 -0
  120. package/dist/transaction/summary.test.js +26 -0
  121. package/dist/transaction/summary.test.js.map +1 -0
  122. package/dist/transaction/updateGuardian.d.ts.map +1 -1
  123. package/dist/transaction/updateGuardian.js +16 -18
  124. package/dist/transaction/updateGuardian.js.map +1 -1
  125. package/dist/transaction/updateProcedureThreshold.d.ts.map +1 -1
  126. package/dist/transaction/updateProcedureThreshold.js +15 -17
  127. package/dist/transaction/updateProcedureThreshold.js.map +1 -1
  128. package/dist/transaction/updateSigners.d.ts +6 -1
  129. package/dist/transaction/updateSigners.d.ts.map +1 -1
  130. package/dist/transaction/updateSigners.js +20 -17
  131. package/dist/transaction/updateSigners.js.map +1 -1
  132. package/dist/transaction.d.ts +2 -2
  133. package/dist/transaction.d.ts.map +1 -1
  134. package/dist/transaction.js +1 -1
  135. package/dist/transaction.js.map +1 -1
  136. package/dist/types/proposal.d.ts +28 -4
  137. package/dist/types/proposal.d.ts.map +1 -1
  138. package/dist/types/proposal.js +18 -0
  139. package/dist/types/proposal.js.map +1 -1
  140. package/dist/types.d.ts +0 -1
  141. package/dist/types.d.ts.map +1 -1
  142. package/dist/utils/signature.d.ts +11 -7
  143. package/dist/utils/signature.d.ts.map +1 -1
  144. package/dist/utils/signature.js +24 -58
  145. package/dist/utils/signature.js.map +1 -1
  146. package/dist/utils/word.d.ts +7 -0
  147. package/dist/utils/word.d.ts.map +1 -1
  148. package/dist/utils/word.js +15 -0
  149. package/dist/utils/word.js.map +1 -1
  150. package/masm/account_components/auth/guarded_multisig.masm +42 -0
  151. package/package.json +7 -4
  152. package/src/account/builder.test.ts +111 -45
  153. package/src/account/builder.ts +45 -33
  154. package/src/account/layout.ts +33 -0
  155. package/src/account/masm/account-components/auth.ts +36 -56
  156. package/src/account/masm/index.ts +0 -1
  157. package/src/account/storage.ts +9 -22
  158. package/src/client.test.ts +87 -16
  159. package/src/client.ts +16 -3
  160. package/src/index.ts +27 -1
  161. package/src/inspector.test.ts +330 -38
  162. package/src/inspector.ts +196 -33
  163. package/src/multisig.test.ts +680 -63
  164. package/src/multisig.ts +400 -115
  165. package/src/procedures.ts +6 -7
  166. package/src/proposal/metadata.test.ts +76 -0
  167. package/src/proposal/metadata.ts +13 -2
  168. package/src/prover/errors.test.ts +8 -0
  169. package/src/prover/errors.ts +7 -175
  170. package/src/prover/retry.test.ts +1 -1
  171. package/src/prover/retry.ts +10 -35
  172. package/src/prover/workflow.test.ts +40 -4
  173. package/src/prover/workflow.ts +16 -4
  174. package/src/retry/classify.ts +220 -0
  175. package/src/retry/runtime.ts +45 -0
  176. package/src/rpc/config.test.ts +45 -0
  177. package/src/rpc/config.ts +30 -0
  178. package/src/rpc/errors.test.ts +69 -0
  179. package/src/rpc/errors.ts +12 -0
  180. package/src/rpc/retry.test.ts +144 -0
  181. package/src/rpc/retry.ts +12 -0
  182. package/src/transaction/index.ts +7 -1
  183. package/src/transaction/p2id.test.ts +112 -31
  184. package/src/transaction/p2id.ts +39 -38
  185. package/src/transaction/summary.test.ts +32 -0
  186. package/src/transaction/summary.ts +83 -4
  187. package/src/transaction/updateGuardian.ts +15 -25
  188. package/src/transaction/updateProcedureThreshold.ts +13 -29
  189. package/src/transaction/updateSigners.ts +38 -30
  190. package/src/transaction.ts +8 -1
  191. package/src/types/proposal.ts +43 -4
  192. package/src/types.ts +0 -1
  193. package/src/utils/signature.ts +32 -65
  194. package/src/utils/word.ts +17 -0
  195. package/dist/account/masm/auth.d.ts +0 -5
  196. package/dist/account/masm/auth.d.ts.map +0 -1
  197. package/dist/account/masm/auth.js +0 -1509
  198. package/dist/account/masm/auth.js.map +0 -1
  199. package/masm/account_components/auth/multisig.masm +0 -12
  200. package/masm/account_components/auth/multisig_ecdsa.masm +0 -12
  201. package/masm/account_components/auth/multisig_guardian.masm +0 -16
  202. package/masm/account_components/auth/multisig_guardian_ecdsa.masm +0 -16
  203. package/masm/auth/guardian.masm +0 -199
  204. package/masm/auth/guardian_ecdsa.masm +0 -195
  205. package/masm/auth/multisig.masm +0 -554
  206. package/masm/auth/multisig_ecdsa.masm +0 -554
  207. package/src/account/masm/auth.ts +0 -1512
@@ -4,12 +4,14 @@
4
4
  * This class wraps a Miden SDK Account and provides GUARDIAN integration
5
5
  * for proposal management.
6
6
  */
7
- import { GuardianHttpClient, type AbandonCandidateResponse, type AbandonStatus, type Signer } from '@openzeppelin/guardian-client';
7
+ import { GuardianHttpClient, type AbandonCandidateResponse, type AbandonStatus, type HistoryOptions, type HistoryPage, type Signer } from '@openzeppelin/guardian-client';
8
8
  import type { ConsumableNote, ExportedProposal, MultisigConfig, Proposal, ProposalMetadata, ProposalType } from './types.js';
9
9
  import type { ProcedureName } from './procedures.js';
10
10
  import type { MidenClient } from '@miden-sdk/miden-sdk';
11
11
  import { Account, AdviceMap, NoteType, TransactionRequest } from '@miden-sdk/miden-sdk';
12
+ import { type P2ideHeightOptions } from './transaction.js';
12
13
  import { type ResolvedProverConfig } from './prover/config.js';
14
+ import { type ResolvedRpcConfig } from './rpc/config.js';
13
15
  /**
14
16
  * Result of fetching account state from GUARDIAN.
15
17
  */
@@ -28,6 +30,26 @@ export interface AccountStateVerificationResult {
28
30
  localCommitment: string;
29
31
  onChainCommitment: string;
30
32
  }
33
+ /**
34
+ * Options shared by the `create*Proposal` family (issue #387). Every optional
35
+ * knob lives in a single trailing options bag, so call sites never need
36
+ * positional `undefined` holes to reach a later option.
37
+ */
38
+ export interface CreateProposalOptions {
39
+ /** Proposal nonce; defaults to `Date.now()`. */
40
+ nonce?: number;
41
+ }
42
+ export interface CreateSignerProposalOptions extends CreateProposalOptions {
43
+ /**
44
+ * New signing threshold. Defaults to the current threshold on add, and to
45
+ * `min(current threshold, remaining signer count)` on remove.
46
+ */
47
+ newThreshold?: number;
48
+ }
49
+ export interface CreateP2idProposalOptions extends CreateProposalOptions, P2ideHeightOptions {
50
+ /** Visibility of the created note. Defaults to `NoteType.Public` (issue #322). */
51
+ noteType?: NoteType;
52
+ }
31
53
  export declare class Multisig {
32
54
  account: Account;
33
55
  threshold: number;
@@ -40,10 +62,11 @@ export declare class Multisig {
40
62
  private readonly midenClient;
41
63
  private readonly rawClientPromise;
42
64
  private readonly proverWorkflow;
65
+ private readonly rpcConfig;
43
66
  private readonly _accountId;
44
67
  private readonly midenRpcEndpoint;
45
68
  private proposals;
46
- constructor(account: Account, config: MultisigConfig, guardian: GuardianHttpClient, signer: Signer, midenClient: MidenClient, accountId: string | undefined, midenRpcEndpoint: string, proverConfig?: ResolvedProverConfig);
69
+ constructor(account: Account, config: MultisigConfig, guardian: GuardianHttpClient, signer: Signer, midenClient: MidenClient, accountId: string | undefined, midenRpcEndpoint: string, proverConfig?: ResolvedProverConfig, rpcConfig?: ResolvedRpcConfig);
47
70
  private getMidenRpcEndpoint;
48
71
  private getRawClient;
49
72
  private proposalFactory;
@@ -61,6 +84,24 @@ export declare class Multisig {
61
84
  * source from the store to see the same state execution will.
62
85
  */
63
86
  getStoreAccount(): Promise<Account>;
87
+ /**
88
+ * Read the current ordered signer public-key commitments from account
89
+ * storage (store-backed state, falling back to the snapshot).
90
+ *
91
+ * Commitments are ordered by signer index as currently stored; indices
92
+ * re-pack when signers are removed, so index 0 is the creation-time first
93
+ * key only until the first membership change. Unlike the
94
+ * `signerCommitments` field, which reflects the config detected at
95
+ * construction / last sync, this reads the account state directly.
96
+ * See `AccountInspector.getSignerPublicKeyCommitments` (issue #306).
97
+ */
98
+ getSignerPublicKeyCommitments(): Promise<string[]>;
99
+ /**
100
+ * Read the current guardian public-key commitment from account storage.
101
+ * The guarded-multisig always includes a guardian, so this throws (rather
102
+ * than returning null) when the entry is missing.
103
+ */
104
+ getGuardianPublicKeyCommitment(): Promise<string>;
64
105
  /**
65
106
  * Maps a proposal type to the procedure that determines its threshold.
66
107
  */
@@ -73,6 +114,25 @@ export declare class Multisig {
73
114
  * @returns The threshold that applies to this proposal type
74
115
  */
75
116
  getEffectiveThreshold(proposalType: ProposalType): number;
117
+ /**
118
+ * Per-procedure threshold overrides whose effective signing ratio is diluted
119
+ * by growing the signer set to `newNumSigners`.
120
+ *
121
+ * Overrides are absolute signature counts, not ratios, and the on-chain
122
+ * `update_signers_and_threshold` procedure does not re-scale them: growing
123
+ * the approver set silently lowers every override's effective signing ratio
124
+ * (a 2-of-2 override becomes 2-of-n). Callers creating a proposal that grows
125
+ * the signer set should surface these overrides and suggest raising them via
126
+ * an update-procedure-threshold proposal alongside the growth.
127
+ *
128
+ * @param newNumSigners - Signer-set size the proposal produces
129
+ * @returns The configured overrides, or an empty list when the set does not grow
130
+ */
131
+ overridesDilutedBySignerGrowth(newNumSigners: number): Array<{
132
+ procedure: ProcedureName;
133
+ threshold: number;
134
+ }>;
135
+ private warnOnOverrideDilution;
76
136
  /**
77
137
  * Update the GUARDIAN client used by this Multisig instance.
78
138
  *
@@ -147,54 +207,52 @@ export declare class Multisig {
147
207
  * Create an "add signer" proposal.
148
208
  *
149
209
  * @param newCommitment - Commitment of the new signer (hex)
150
- * @param nonce - Optional proposal nonce (defaults to Date.now())
151
- * @param newThreshold - Optional new threshold (defaults to current threshold)
210
+ * @param options - Optional settings: `nonce`, `newThreshold` (defaults to
211
+ * current threshold)
152
212
  */
153
- createAddSignerProposal(newCommitment: string, nonce?: number, newThreshold?: number): Promise<Proposal>;
213
+ createAddSignerProposal(newCommitment: string, options?: CreateSignerProposalOptions, ...legacyArgs: never[]): Promise<Proposal>;
154
214
  /**
155
215
  * Create a "remove signer" proposal by executing the update_signers script to summary.
156
216
  *
157
217
  * @param signerToRemove - Commitment of the signer to remove (hex)
158
- * @param nonce - Optional proposal nonce (defaults to Date.now())
159
- * @param newThreshold - Optional new threshold (defaults to min of current threshold and new signer count)
218
+ * @param options - Optional settings: `nonce`, `newThreshold` (defaults to
219
+ * min of current threshold and new signer count)
160
220
  */
161
- createRemoveSignerProposal(signerToRemove: string, nonce?: number, newThreshold?: number): Promise<Proposal>;
221
+ createRemoveSignerProposal(signerToRemove: string, options?: CreateSignerProposalOptions, ...legacyArgs: never[]): Promise<Proposal>;
162
222
  /**
163
223
  * Create a "change threshold" proposal.
164
224
  *
165
225
  * @param newThreshold - The new threshold value
166
- * @param nonce - Optional proposal nonce (defaults to Date.now())
226
+ * @param options - Optional settings: `nonce`
167
227
  */
168
- createChangeThresholdProposal(newThreshold: number, nonce?: number): Promise<Proposal>;
169
- createUpdateProcedureThresholdProposal(targetProcedure: ProcedureName, targetThreshold: number, nonce?: number): Promise<Proposal>;
228
+ createChangeThresholdProposal(newThreshold: number, options?: CreateProposalOptions): Promise<Proposal>;
229
+ createUpdateProcedureThresholdProposal(targetProcedure: ProcedureName, targetThreshold: number, options?: CreateProposalOptions): Promise<Proposal>;
170
230
  /**
171
231
  * Create a "switch GUARDIAN" proposal to change the GUARDIAN provider.
172
232
  *
173
233
  * @param newGuardianEndpoint - The new GUARDIAN server endpoint URL
174
234
  * @param newGuardianPubkey - The new GUARDIAN server's public key commitment (hex)
175
- * @param nonce - Optional proposal nonce (defaults to Date.now())
235
+ * @param options - Optional settings: `nonce`
176
236
  */
177
- createSwitchGuardianProposal(newGuardianEndpoint: string, newGuardianPubkey: string, nonce?: number): Promise<Proposal>;
237
+ createSwitchGuardianProposal(newGuardianEndpoint: string, newGuardianPubkey: string, options?: CreateProposalOptions): Promise<Proposal>;
178
238
  /**
179
239
  * Create a "consume notes" proposal to consume notes sent to the multisig account.
180
240
  *
181
241
  * @param noteIds - IDs of the notes to consume (hex strings)
182
- * @param nonce - Optional proposal nonce (defaults to Date.now())
242
+ * @param options - Optional settings: `nonce`
183
243
  */
184
- createConsumeNotesProposal(noteIds: string[], nonce?: number): Promise<Proposal>;
244
+ createConsumeNotesProposal(noteIds: string[], options?: CreateProposalOptions): Promise<Proposal>;
185
245
  /**
186
246
  * Create a P2ID proposal to send funds to another account.
187
247
  *
188
248
  * @param recipientId - Account ID of the recipient (hex string)
189
249
  * @param faucetId - Faucet/token account ID (hex string)
190
250
  * @param amount - Amount to send
191
- * @param nonce - Optional proposal nonce (defaults to Date.now())
192
- * @param options - Optional settings; `noteType` selects the created note's
193
- * visibility (defaults to `NoteType.Public`, issue #322)
251
+ * @param options - Optional settings: `nonce`; `noteType` selects the created
252
+ * note's visibility (defaults to `NoteType.Public`, issue #322);
253
+ * `reclaimHeight`/`timelockHeight` build a P2IDE note (issue #366)
194
254
  */
195
- createP2idProposal(recipientId: string, faucetId: string, amount: bigint, nonce?: number, options?: {
196
- noteType?: NoteType;
197
- }): Promise<Proposal>;
255
+ createP2idProposal(recipientId: string, faucetId: string, amount: bigint, options?: CreateP2idProposalOptions, ...legacyArgs: never[]): Promise<Proposal>;
198
256
  /**
199
257
  * Get notes that can be consumed by this multisig account.
200
258
  *
@@ -204,7 +262,7 @@ export declare class Multisig {
204
262
  getConsumableNotes(): Promise<ConsumableNote[]>;
205
263
  /**
206
264
  * Export a note created by this multisig account as serialized note-file
207
- * bytes for out-of-band delivery (issue #356).
265
+ * bytes for out-of-band delivery.
208
266
  *
209
267
  * A private note publishes only its commitment on chain, so the recipient
210
268
  * can never learn its contents via sync; the sender must hand them the
@@ -222,7 +280,7 @@ export declare class Multisig {
222
280
  exportNoteToBytes(noteId: string): Promise<Uint8Array>;
223
281
  /**
224
282
  * Export a note created by this multisig account as a note file downloaded
225
- * by the browser (issue #356). Browser-only convenience over
283
+ * by the browser. Browser-only convenience over
226
284
  * {@link exportNoteToBytes}; use that method directly in non-DOM
227
285
  * environments.
228
286
  *
@@ -231,7 +289,7 @@ export declare class Multisig {
231
289
  */
232
290
  exportNoteToFile(noteId: string, filename?: string): Promise<void>;
233
291
  /**
234
- * Import a note file received out-of-band (issue #356) so the note can be
292
+ * Import a note file received out-of-band so the note can be
235
293
  * consumed by this multisig account.
236
294
  *
237
295
  * Sync the Miden client with the network afterwards so the note's on-chain
@@ -245,7 +303,7 @@ export declare class Multisig {
245
303
  */
246
304
  importNoteFromBytes(noteBytes: Uint8Array): Promise<string>;
247
305
  /**
248
- * Import a note file received out-of-band (issue #356) from a browser
306
+ * Import a note file received out-of-band from a browser
249
307
  * `File`/`Blob` (e.g. a file-input selection). See
250
308
  * {@link importNoteFromBytes} for the returned identifier semantics.
251
309
  */
@@ -256,10 +314,9 @@ export declare class Multisig {
256
314
  * The P2ID note is rebuilt deterministically from the proposal salt, so the
257
315
  * ID is known ahead of execution. For a private P2ID this is the ID to pass
258
316
  * to {@link exportNoteToBytes} after executing, so the note file can be delivered
259
- * to the recipient out-of-band (issue #356).
317
+ * to the recipient out-of-band.
260
318
  *
261
- * Call this before executing the proposal: the asset is derived from the
262
- * current vault state, which execution itself changes.
319
+ * The note ID remains deterministic from the proposal metadata and salt.
263
320
  */
264
321
  getP2idNoteId(proposal: Proposal): Promise<string>;
265
322
  /**
@@ -296,6 +353,16 @@ export declare class Multisig {
296
353
  * flow produces.
297
354
  */
298
355
  abandonStatus(nonce: number): Promise<AbandonStatus>;
356
+ /**
357
+ * Fetch one page of this account's canonical delta history
358
+ * from GUARDIAN (issue #413), newest-first by nonce, with decoded
359
+ * input/output note summaries. Pass `options.cursor` from a previous
360
+ * page's `nextCursor` to resume; an absent `nextCursor` means the
361
+ * feed is exhausted. Served while the account is paused. Only
362
+ * transactions pushed through GUARDIAN appear — history of
363
+ * transactions executed elsewhere is not visible to it.
364
+ */
365
+ deltaHistory(options?: HistoryOptions): Promise<HistoryPage>;
299
366
  signProposal(proposalId: string): Promise<Proposal>;
300
367
  private getProposalForSigning;
301
368
  createTransactionProposalRequest(proposalId: string): Promise<TransactionRequest>;
@@ -309,20 +376,22 @@ export declare class Multisig {
309
376
  * Submit an integration-built transaction (advice already injected). Mirrors
310
377
  * the Rust `submit_transaction`; used by the custom proposal producer flow
311
378
  * after `prepareCustomExecution` rebuilds its request with the returned advice.
379
+ * The transaction is executed at the proposal's anchored reference block,
380
+ * since the collected signatures only authorize the summary produced there.
312
381
  */
313
- submitTransaction(request: TransactionRequest): Promise<void>;
382
+ submitTransaction(proposalId: string, request: TransactionRequest): Promise<void>;
314
383
  /**
315
- * Create a proposal from a producer-built transaction the SDK does not model
316
- * (issue #266 producer API). `transactionRequestBytes` is a serialized TransactionRequest;
384
+ * Create a proposal from a producer-built transaction the SDK does not model.
385
+ * `transactionRequestBytes` is a serialized TransactionRequest;
317
386
  * `proposalType` is a free-form, non-empty label that must not collide with a
318
387
  * built-in type. The integration keeps its own recipe to execute later via
319
388
  * `prepareCustomExecution`.
320
389
  */
321
- createCustomProposal(transactionRequestBytes: Uint8Array, proposalType: string, nonce?: number): Promise<Proposal>;
390
+ createCustomProposal(transactionRequestBytes: Uint8Array, proposalType: string, options?: CreateProposalOptions): Promise<Proposal>;
322
391
  /**
323
392
  * Assemble the validated execution advice (cosigner signatures + GUARDIAN
324
393
  * acknowledgment) for a ready custom proposal, so an integration can rebuild
325
- * its transaction with its own recipe and submit (issue #266 producer API).
394
+ * its transaction with its own recipe and submit.
326
395
  *
327
396
  * `transactionRequestBytes` is the serialized transaction request; it is used only to verify
328
397
  * (binding check) that it reproduces the signed commitment, before the
@@ -360,6 +429,13 @@ export declare class Multisig {
360
429
  signProposalOffline(proposalId: string): Promise<string>;
361
430
  private ensureProposalCommitmentMatchesSummary;
362
431
  private verifyProposalMetadataBinding;
432
+ /**
433
+ * Decodes a proposal's chain anchor. Throws when absent: a proposal without
434
+ * an anchor was created at an unknown reference block, so its signed summary
435
+ * cannot be reproduced, verified, or executed. The caller owns the returned
436
+ * anchor and must `free()` it once done.
437
+ */
438
+ private requireProposalAnchor;
363
439
  private buildTransactionRequestFromMetadata;
364
440
  }
365
441
  //# sourceMappingURL=multisig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"multisig.d.ts","sourceRoot":"","sources":["../src/multisig.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAE,KAAK,wBAAwB,EAAE,KAAK,aAAa,EAA4C,KAAK,MAAM,EAAqC,MAAM,+BAA+B,CAAC;AAChN,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EAEd,QAAQ,EACR,gBAAgB,EAEhB,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EACV,WAAW,EAEZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,OAAO,EAEP,SAAS,EAMT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