@bcts/frost-hubert 1.0.0-alpha.23 → 1.0.0-beta.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 (165) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/frost.cjs +344 -72
  3. package/dist/bin/frost.cjs.map +1 -1
  4. package/dist/bin/frost.mjs +344 -71
  5. package/dist/bin/frost.mjs.map +1 -1
  6. package/dist/busy-B_h0bNAJ.cjs +38 -0
  7. package/dist/busy-B_h0bNAJ.cjs.map +1 -0
  8. package/dist/busy-BlU8_pS2.mjs +27 -0
  9. package/dist/busy-BlU8_pS2.mjs.map +1 -0
  10. package/dist/cmd/index.cjs +27 -22
  11. package/dist/cmd/index.d.cts +2 -2
  12. package/dist/cmd/index.d.mts +2 -2
  13. package/dist/cmd/index.mjs +6 -3
  14. package/dist/cmd-CCVhHzG7.cjs +129 -0
  15. package/dist/cmd-CCVhHzG7.cjs.map +1 -0
  16. package/dist/cmd-DNsHd19v.mjs +112 -0
  17. package/dist/cmd-DNsHd19v.mjs.map +1 -0
  18. package/dist/common-7-BOgaTt.cjs +113 -0
  19. package/dist/common-7-BOgaTt.cjs.map +1 -0
  20. package/dist/common-Cf1UvJaP.mjs +282 -0
  21. package/dist/common-Cf1UvJaP.mjs.map +1 -0
  22. package/dist/common-CnvAUC2b.cjs +372 -0
  23. package/dist/common-CnvAUC2b.cjs.map +1 -0
  24. package/dist/common-DNrD_-EI.mjs +96 -0
  25. package/dist/common-DNrD_-EI.mjs.map +1 -0
  26. package/dist/dkg/index.cjs +6 -103
  27. package/dist/dkg/index.cjs.map +1 -1
  28. package/dist/dkg/index.d.cts +2 -2
  29. package/dist/dkg/index.d.mts +2 -2
  30. package/dist/dkg/index.mjs +4 -101
  31. package/dist/dkg/index.mjs.map +1 -1
  32. package/dist/finalize-BpC0rz93.mjs +389 -0
  33. package/dist/finalize-BpC0rz93.mjs.map +1 -0
  34. package/dist/finalize-Cb0obTSo.cjs +402 -0
  35. package/dist/finalize-Cb0obTSo.cjs.map +1 -0
  36. package/dist/finalize-DHEnKobp.cjs +303 -0
  37. package/dist/finalize-DHEnKobp.cjs.map +1 -0
  38. package/dist/finalize-DQ0VGUHO.cjs +265 -0
  39. package/dist/finalize-DQ0VGUHO.cjs.map +1 -0
  40. package/dist/finalize-DtRxHZ7H.mjs +290 -0
  41. package/dist/finalize-DtRxHZ7H.mjs.map +1 -0
  42. package/dist/finalize-T83Ko8nG.mjs +252 -0
  43. package/dist/finalize-T83Ko8nG.mjs.map +1 -0
  44. package/dist/frost/index.cjs +1 -1
  45. package/dist/frost/index.cjs.map +1 -1
  46. package/dist/frost/index.d.cts.map +1 -1
  47. package/dist/frost/index.d.mts.map +1 -1
  48. package/dist/frost/index.mjs +1 -1
  49. package/dist/frost/index.mjs.map +1 -1
  50. package/dist/{index-BJlwbPYu.d.cts → index-BErX9AZF.d.cts} +101 -79
  51. package/dist/index-BErX9AZF.d.cts.map +1 -0
  52. package/dist/{index-BkqLimZT.d.mts → index-BaUVw4b1.d.mts} +25 -2
  53. package/dist/index-BaUVw4b1.d.mts.map +1 -0
  54. package/dist/{index-BMbPgH0W.d.cts → index-CD50Qtgw.d.cts} +46 -2
  55. package/dist/index-CD50Qtgw.d.cts.map +1 -0
  56. package/dist/{index-DoV5HFvV.d.mts → index-CD50Qtgw.d.mts} +46 -2
  57. package/dist/index-CD50Qtgw.d.mts.map +1 -0
  58. package/dist/{index-Dzm1v4_4.d.mts → index-Drklne-Y.d.mts} +101 -79
  59. package/dist/index-Drklne-Y.d.mts.map +1 -0
  60. package/dist/{index-DmxfT59Y.d.cts → index-gkmZzEuD.d.cts} +25 -2
  61. package/dist/index-gkmZzEuD.d.cts.map +1 -0
  62. package/dist/index.cjs +30 -23
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.cts +4 -4
  65. package/dist/index.d.cts.map +1 -1
  66. package/dist/index.d.mts +4 -4
  67. package/dist/index.d.mts.map +1 -1
  68. package/dist/index.mjs +8 -4
  69. package/dist/index.mjs.map +1 -1
  70. package/dist/invite-1tzg0B0P.cjs +274 -0
  71. package/dist/invite-1tzg0B0P.cjs.map +1 -0
  72. package/dist/invite-BLwtexAu.cjs +109 -0
  73. package/dist/invite-BLwtexAu.cjs.map +1 -0
  74. package/dist/invite-Be2v2SVc.mjs +96 -0
  75. package/dist/invite-Be2v2SVc.mjs.map +1 -0
  76. package/dist/invite-D8mQSnFz.mjs +219 -0
  77. package/dist/invite-D8mQSnFz.mjs.map +1 -0
  78. package/dist/parallel-PZiwHZT8.mjs +235 -0
  79. package/dist/parallel-PZiwHZT8.mjs.map +1 -0
  80. package/dist/parallel-szwYx-bi.cjs +318 -0
  81. package/dist/parallel-szwYx-bi.cjs.map +1 -0
  82. package/dist/proposed-participant-BvHNnpcZ.cjs +140 -0
  83. package/dist/proposed-participant-BvHNnpcZ.cjs.map +1 -0
  84. package/dist/proposed-participant-Detb823_.mjs +129 -0
  85. package/dist/proposed-participant-Detb823_.mjs.map +1 -0
  86. package/dist/receive-BR-knnGv.cjs +213 -0
  87. package/dist/receive-BR-knnGv.cjs.map +1 -0
  88. package/dist/receive-D_r4Mryr.cjs +190 -0
  89. package/dist/receive-D_r4Mryr.cjs.map +1 -0
  90. package/dist/receive-dkSCSGpl.mjs +188 -0
  91. package/dist/receive-dkSCSGpl.mjs.map +1 -0
  92. package/dist/receive-g8EhZF2Y.mjs +177 -0
  93. package/dist/receive-g8EhZF2Y.mjs.map +1 -0
  94. package/dist/registry/index.cjs +86 -11
  95. package/dist/registry/index.cjs.map +1 -1
  96. package/dist/registry/index.d.cts +1 -1
  97. package/dist/registry/index.d.mts +1 -1
  98. package/dist/registry/index.mjs +85 -10
  99. package/dist/registry/index.mjs.map +1 -1
  100. package/dist/{registry-loI1_Mh1.cjs → registry-CkIbA7nt.cjs} +79 -2
  101. package/dist/registry-CkIbA7nt.cjs.map +1 -0
  102. package/dist/{registry-CgrCZ4En.mjs → registry-DGjs4qDK.mjs} +74 -3
  103. package/dist/registry-DGjs4qDK.mjs.map +1 -0
  104. package/dist/round1-9FAqFvL5.cjs +465 -0
  105. package/dist/round1-9FAqFvL5.cjs.map +1 -0
  106. package/dist/round1-B8haiMM8.mjs +208 -0
  107. package/dist/round1-B8haiMM8.mjs.map +1 -0
  108. package/dist/round1-BOIE1E4O.mjs +452 -0
  109. package/dist/round1-BOIE1E4O.mjs.map +1 -0
  110. package/dist/round1-Bq0vweyQ.cjs +422 -0
  111. package/dist/round1-Bq0vweyQ.cjs.map +1 -0
  112. package/dist/round1-CXkXoVQU.cjs +208 -0
  113. package/dist/round1-CXkXoVQU.cjs.map +1 -0
  114. package/dist/round1-D8t7EzIo.mjs +373 -0
  115. package/dist/round1-D8t7EzIo.mjs.map +1 -0
  116. package/dist/round1-DriPu15x.cjs +221 -0
  117. package/dist/round1-DriPu15x.cjs.map +1 -0
  118. package/dist/round1-Y2kcVwnR.mjs +195 -0
  119. package/dist/round1-Y2kcVwnR.mjs.map +1 -0
  120. package/dist/round2-AMDYMUIg.cjs +305 -0
  121. package/dist/round2-AMDYMUIg.cjs.map +1 -0
  122. package/dist/round2-BHQKVJFo.cjs +410 -0
  123. package/dist/round2-BHQKVJFo.cjs.map +1 -0
  124. package/dist/round2-BfetYacV.mjs +450 -0
  125. package/dist/round2-BfetYacV.mjs.map +1 -0
  126. package/dist/round2-Cf5CJc_8.mjs +397 -0
  127. package/dist/round2-Cf5CJc_8.mjs.map +1 -0
  128. package/dist/round2-CvrmylN1.cjs +293 -0
  129. package/dist/round2-CvrmylN1.cjs.map +1 -0
  130. package/dist/round2-Dk_w97nl.cjs +499 -0
  131. package/dist/round2-Dk_w97nl.cjs.map +1 -0
  132. package/dist/round2-Z2JhMwxc.mjs +292 -0
  133. package/dist/round2-Z2JhMwxc.mjs.map +1 -0
  134. package/dist/round2-mF6UlkT-.mjs +280 -0
  135. package/dist/round2-mF6UlkT-.mjs.map +1 -0
  136. package/package.json +14 -14
  137. package/src/bin/frost.ts +849 -128
  138. package/src/cmd/common.ts +19 -1
  139. package/src/cmd/dkg/common.ts +97 -10
  140. package/src/cmd/dkg/coordinator/invite.ts +5 -2
  141. package/src/cmd/dkg/participant/finalize.ts +51 -17
  142. package/src/cmd/dkg/participant/round1.ts +39 -38
  143. package/src/cmd/dkg/participant/round2.ts +60 -26
  144. package/src/cmd/sign/coordinator/round2.ts +5 -1
  145. package/src/cmd/sign/participant/finalize.ts +6 -2
  146. package/src/cmd/sign/participant/receive.ts +5 -2
  147. package/src/dkg/group-invite.ts +12 -2
  148. package/src/dkg/proposed-participant.ts +32 -3
  149. package/src/registry/owner-record.ts +12 -0
  150. package/src/registry/participant-record.ts +35 -2
  151. package/src/registry/registry-impl.ts +74 -18
  152. package/dist/cmd-5yLeC_QL.mjs +0 -4708
  153. package/dist/cmd-5yLeC_QL.mjs.map +0 -1
  154. package/dist/cmd-BfZjC3Uh.cjs +0 -4847
  155. package/dist/cmd-BfZjC3Uh.cjs.map +0 -1
  156. package/dist/index-BJlwbPYu.d.cts.map +0 -1
  157. package/dist/index-BMbPgH0W.d.cts.map +0 -1
  158. package/dist/index-BkqLimZT.d.mts.map +0 -1
  159. package/dist/index-DmxfT59Y.d.cts.map +0 -1
  160. package/dist/index-DoV5HFvV.d.mts.map +0 -1
  161. package/dist/index-Dzm1v4_4.d.mts.map +0 -1
  162. package/dist/registry-CgrCZ4En.mjs.map +0 -1
  163. package/dist/registry-loI1_Mh1.cjs.map +0 -1
  164. /package/dist/{chunk-CZWwpsFl.cjs → chunk-DakpK96I.cjs} +0 -0
  165. /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
@@ -1,22 +1,112 @@
1
- import { d as PendingRequests, i as Registry, l as GroupParticipant, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-DoV5HFvV.mjs";
2
- import { t as DkgInvitation } from "./index-BkqLimZT.mjs";
1
+ import { d as PendingRequests, i as Registry, l as GroupParticipant, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-CD50Qtgw.mjs";
2
+ import { t as DkgInvitation } from "./index-BaUVw4b1.mjs";
3
3
  import { ARID, PrivateKeys, XID } from "@bcts/components";
4
4
  import { Envelope, EnvelopeEncodableValue } from "@bcts/envelope";
5
5
  import { SealedRequest } from "@bcts/gstp";
6
6
  import { XIDDocument } from "@bcts/xid";
7
7
 
8
- //#region src/cmd/common.d.ts
8
+ //#region src/cmd/dkg/common.d.ts
9
+ /**
10
+ * Parse an ARID from a UR string.
11
+ *
12
+ * Mirrors Rust `parse_arid_ur` (`cmd/common.rs:27-43`):
13
+ *
14
+ * 1. Trim and reject empty input.
15
+ * 2. Parse as a UR; require `ur_type` of `"arid"`.
16
+ * 3. Try `ARID::try_from(cbor)` (the tagged-CBOR form).
17
+ * 4. If that fails, fall back to interpreting the CBOR as a bare
18
+ * byte string and constructing the ARID from those bytes via
19
+ * `ARID::from_data_ref`.
20
+ *
21
+ * The earlier port only accepted the tagged form; this matches Rust
22
+ * by accepting the byte-string fallback too.
23
+ */
24
+ declare function parseAridUr(urString: string): ARID;
25
+ /**
26
+ * Parse an envelope from a UR string.
27
+ *
28
+ * Port of `parse_envelope_ur()` from cmd/dkg/common.rs.
29
+ */
30
+ declare function parseEnvelopeUr(urString: string): Envelope;
31
+ /**
32
+ * Resolve the registry owner's XID document.
33
+ *
34
+ * The earlier port called this `resolveSender(registry)`, but its
35
+ * behaviour — "give me the owner" — has nothing in common with Rust's
36
+ * `resolve_sender(registry, input)` (which resolves an arbitrary
37
+ * named sender). This helper is renamed to its actual behaviour;
38
+ * the Rust-equivalent `resolveSender(registry, input)` lives below.
39
+ */
40
+ declare function resolveOwnerXidDocument(registry: Registry): XIDDocument;
41
+ /**
42
+ * Resolve a sender XID document from the registry by UR or pet name.
43
+ *
44
+ * Mirrors Rust `resolve_sender(registry, input)`
45
+ * (`cmd/dkg/common.rs:76-94`):
46
+ *
47
+ * 1. Trim and reject empty input.
48
+ * 2. Try parsing the input as a `ur:xid`. If that succeeds, look it
49
+ * up via `registry.participant(xid)`; if no record is found,
50
+ * error with `Sender with XID {ur} not found`.
51
+ * 3. Otherwise look it up by pet name via
52
+ * `registry.participantByPetName(name)`; if no record is found,
53
+ * error with `Sender with pet name '{name}' not found`.
54
+ *
55
+ * Note Rust does NOT check the owner here — only the participants
56
+ * map. The earlier inline duplicate in `participant/round1.ts` did
57
+ * an extra owner-check fallback which is removed to match Rust.
58
+ */
59
+ declare function resolveSender(registry: Registry, input: string): XIDDocument;
60
+ /**
61
+ * Resolve participant identifiers (XID URs or pet names) to records.
62
+ *
63
+ * Port of `resolve_participants()` from cmd/dkg/common.rs lines 29-74.
64
+ */
65
+ declare function resolveParticipants(registry: Registry, inputs: string[]): [XID, ParticipantRecord][];
66
+ /**
67
+ * Get display name for sender from registry.
68
+ *
69
+ * Port of `resolve_sender_name()` from cmd/dkg/common.rs lines 96-116.
70
+ */
71
+ declare function resolveSenderName(registry: Registry, sender: XIDDocument): string | undefined;
9
72
  /**
10
- * Copyright © 2023-2026 Blockchain Commons, LLC
11
- * Copyright © 2025-2026 Parity Technologies
73
+ * Build GroupParticipant[] from XIDDocuments using registry lookups.
12
74
  *
75
+ * Port of `build_group_participants()` from cmd/dkg/common.rs lines 122-131.
76
+ */
77
+ declare function buildGroupParticipants(registry: Registry, owner: OwnerRecord, participants: XIDDocument[]): GroupParticipant[];
78
+ /**
79
+ * Create a GroupParticipant from a XIDDocument, validating against the registry.
13
80
  *
14
- * Common utilities for commands.
81
+ * Port of `group_participant_from_registry()` from cmd/dkg/common.rs lines 133-149.
82
+ */
83
+ declare function groupParticipantFromRegistry(registry: Registry, owner: OwnerRecord, document: XIDDocument): GroupParticipant;
84
+ /**
85
+ * Format a participant name with owner marker if applicable.
15
86
  *
16
- * Port of cmd/common.rs from frost-hubert-rust.
87
+ * Port of `format_name_with_owner_marker()` from cmd/dkg/common.rs lines 155-157.
88
+ */
89
+ declare function formatNameWithOwnerMarker(name: string, isOwner: boolean): string;
90
+ /**
91
+ * Get display names for participants, sorted by XID, with owner marked.
92
+ *
93
+ * Port of `participant_names_from_registry()` from cmd/dkg/common.rs lines 159-191.
94
+ */
95
+ declare function participantNamesFromRegistry(registry: Registry, participants: XIDDocument[], ownerXid: XID, ownerPetName: string | undefined): string[];
96
+ /**
97
+ * Get the DKG state directory for a given registry path and group ID.
17
98
  *
18
- * @module
99
+ * Port of `dkg_state_dir()` from cmd/dkg/common.rs.
19
100
  */
101
+ declare function dkgStateDir(registryPath: string, groupIdHex: string): string;
102
+ /**
103
+ * Convert a verifying key bytes to a SigningPublicKey.
104
+ *
105
+ * Port of `signing_key_from_verifying()` from cmd/dkg/common.rs.
106
+ */
107
+ declare function signingKeyFromVerifying(verifyingKeyBytes: Uint8Array): unknown;
108
+ //#endregion
109
+ //#region src/cmd/common.d.ts
20
110
  /**
21
111
  * Get the group state directory for a given registry path and group ID.
22
112
  *
@@ -224,74 +314,6 @@ declare function parallelSend(client: StorageClient, messages: [XID, ARID, Envel
224
314
  */
225
315
  declare function checkAridExists(client: StorageClient, arid: ARID): Promise<boolean>;
226
316
  //#endregion
227
- //#region src/cmd/dkg/common.d.ts
228
- /**
229
- * Parse an ARID from a UR string.
230
- *
231
- * Port of `parse_arid_ur()` from cmd/dkg/common.rs.
232
- */
233
- declare function parseAridUr(urString: string): ARID;
234
- /**
235
- * Parse an envelope from a UR string.
236
- *
237
- * Port of `parse_envelope_ur()` from cmd/dkg/common.rs.
238
- */
239
- declare function parseEnvelopeUr(urString: string): Envelope;
240
- /**
241
- * Resolve the sender XID document from the registry.
242
- *
243
- * Port of `resolve_sender()` from cmd/dkg/common.rs.
244
- */
245
- declare function resolveSender(registry: Registry): XIDDocument;
246
- /**
247
- * Resolve participant identifiers (XID URs or pet names) to records.
248
- *
249
- * Port of `resolve_participants()` from cmd/dkg/common.rs lines 29-74.
250
- */
251
- declare function resolveParticipants(registry: Registry, inputs: string[]): [XID, ParticipantRecord][];
252
- /**
253
- * Get display name for sender from registry.
254
- *
255
- * Port of `resolve_sender_name()` from cmd/dkg/common.rs lines 96-116.
256
- */
257
- declare function resolveSenderName(registry: Registry, sender: XIDDocument): string | undefined;
258
- /**
259
- * Build GroupParticipant[] from XIDDocuments using registry lookups.
260
- *
261
- * Port of `build_group_participants()` from cmd/dkg/common.rs lines 122-131.
262
- */
263
- declare function buildGroupParticipants(registry: Registry, owner: OwnerRecord, participants: XIDDocument[]): GroupParticipant[];
264
- /**
265
- * Create a GroupParticipant from a XIDDocument, validating against the registry.
266
- *
267
- * Port of `group_participant_from_registry()` from cmd/dkg/common.rs lines 133-149.
268
- */
269
- declare function groupParticipantFromRegistry(registry: Registry, owner: OwnerRecord, document: XIDDocument): GroupParticipant;
270
- /**
271
- * Format a participant name with owner marker if applicable.
272
- *
273
- * Port of `format_name_with_owner_marker()` from cmd/dkg/common.rs lines 155-157.
274
- */
275
- declare function formatNameWithOwnerMarker(name: string, isOwner: boolean): string;
276
- /**
277
- * Get display names for participants, sorted by XID, with owner marked.
278
- *
279
- * Port of `participant_names_from_registry()` from cmd/dkg/common.rs lines 159-191.
280
- */
281
- declare function participantNamesFromRegistry(registry: Registry, participants: XIDDocument[], ownerXid: XID, ownerPetName: string | undefined): string[];
282
- /**
283
- * Get the DKG state directory for a given registry path and group ID.
284
- *
285
- * Port of `dkg_state_dir()` from cmd/dkg/common.rs.
286
- */
287
- declare function dkgStateDir(registryPath: string, groupIdHex: string): string;
288
- /**
289
- * Convert a verifying key bytes to a SigningPublicKey.
290
- *
291
- * Port of `signing_key_from_verifying()` from cmd/dkg/common.rs.
292
- */
293
- declare function signingKeyFromVerifying(verifyingKeyBytes: Uint8Array): unknown;
294
- //#endregion
295
317
  //#region src/cmd/dkg/coordinator/invite.d.ts
296
318
  /**
297
319
  * Options for the DKG invite command.
@@ -612,7 +634,7 @@ declare namespace index_d_exports$5 {
612
634
  export { DkgFinalizeOptions, DkgFinalizeResult, DkgReceiveOptions, DkgReceiveResult, DkgRound1Options, DkgRound1Result, DkgRound2Options, DkgRound2Result, InviteDetails, decodeInviteDetails, finalize$1 as finalize, receive$1 as receive, resolveInviteEnvelope, round1$2 as round1, round2$2 as round2 };
613
635
  }
614
636
  declare namespace index_d_exports$4 {
615
- export { buildGroupParticipants, index_d_exports$6 as coordinator, dkgStateDir, formatNameWithOwnerMarker, groupParticipantFromRegistry, groupStateDir, parseAridUr, parseEnvelopeUr, index_d_exports$5 as participant, participantNamesFromRegistry, resolveParticipants, resolveSender, resolveSenderName, signingKeyFromVerifying };
637
+ export { buildGroupParticipants, index_d_exports$6 as coordinator, dkgStateDir, formatNameWithOwnerMarker, groupParticipantFromRegistry, groupStateDir, parseAridUr, parseEnvelopeUr, index_d_exports$5 as participant, participantNamesFromRegistry, resolveOwnerXidDocument, resolveParticipants, resolveSender, resolveSenderName, signingKeyFromVerifying };
616
638
  }
617
639
  //#endregion
618
640
  //#region src/cmd/sign/common.d.ts
@@ -1098,5 +1120,5 @@ declare namespace index_d_exports {
1098
1120
  */
1099
1121
  declare function participantsFilePath(registry: string | undefined, cwd: string): string;
1100
1122
  //#endregion
1101
- export { StorageClient as C, isVerbose as D, groupStateDir as E, setVerbose as O, putWithIndicator as S, createStorageClient as T, fetchStatusTimeout as _, CollectionResult as a, parallelSend as b, FetchStatus as c, directionEmoji as d, emptyCollectionResult as f, fetchStatusSuccess as g, fetchStatusRejected as h, checkAridExists as i, ParallelFetchConfig as l, fetchStatusPending as m, index_d_exports$1 as n, DEFAULT_TIMEOUT_SECONDS as o, fetchStatusError as p, index_d_exports$4 as r, Direction as s, index_d_exports as t, buildFetchRequests as u, parallelFetch as v, StorageSelection as w, getWithIndicator as x, parallelFetchConfigWithTimeout as y };
1102
- //# sourceMappingURL=index-Dzm1v4_4.d.mts.map
1123
+ export { signingKeyFromVerifying as A, StorageClient as C, isVerbose as D, groupStateDir as E, setVerbose as O, putWithIndicator as S, createStorageClient as T, fetchStatusTimeout as _, CollectionResult as a, parallelSend as b, FetchStatus as c, directionEmoji as d, emptyCollectionResult as f, fetchStatusSuccess as g, fetchStatusRejected as h, checkAridExists as i, parseAridUr as k, ParallelFetchConfig as l, fetchStatusPending as m, index_d_exports$1 as n, DEFAULT_TIMEOUT_SECONDS as o, fetchStatusError as p, index_d_exports$4 as r, Direction as s, index_d_exports as t, buildFetchRequests as u, parallelFetch as v, StorageSelection as w, getWithIndicator as x, parallelFetchConfigWithTimeout as y };
1124
+ //# sourceMappingURL=index-Drklne-Y.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Drklne-Y.d.mts","names":[],"sources":["../src/cmd/dkg/common.ts","../src/cmd/common.ts","../src/cmd/storage.ts","../src/cmd/busy.ts","../src/cmd/parallel.ts","../src/cmd/check.ts","../src/cmd/dkg/coordinator/invite.ts","../src/cmd/dkg/coordinator/round1.ts","../src/cmd/dkg/coordinator/round2.ts","../src/cmd/dkg/coordinator/finalize.ts","../src/cmd/dkg/coordinator/index.ts","../src/cmd/dkg/participant/receive.ts","../src/cmd/dkg/participant/round1.ts","../src/cmd/dkg/participant/round2.ts","../src/cmd/dkg/participant/finalize.ts","../src/cmd/dkg/participant/index.ts","../src/cmd/dkg/index.ts","../src/cmd/sign/common.ts","../src/cmd/sign/coordinator/invite.ts","../src/cmd/sign/coordinator/round1.ts","../src/cmd/sign/coordinator/round2.ts","../src/cmd/sign/coordinator/index.ts","../src/cmd/sign/participant/receive.ts","../src/cmd/sign/participant/round1.ts","../src/cmd/sign/participant/round2.ts","../src/cmd/sign/participant/finalize.ts","../src/cmd/sign/participant/index.ts","../src/cmd/sign/index.ts","../src/cmd/registry/owner/set.ts","../src/cmd/registry/participant/add.ts","../src/cmd/registry/index.ts"],"mappings":";;;;;;;;;;AA+E2D;AAsB3D;;;;;;;;AAAwE;AA4BxE;;;iBApFgB,WAAA,CAAY,QAAA,WAAmB,IAAI;;;;;;iBAkCnC,eAAA,CAAgB,QAAA,WAAmB,QAAQ;AA8F3D;;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;E4B7ErC,YAAA;AAAA;;;;UAMe,cAAA;EACf,OAAA,EAAS,YAAY;AAAA;;;;;;;;iBA0BP,QAAA,CAAS,OAAA,EAAS,eAAA,EAAiB,GAAA,WAAc,cAAc;;;;A5BZ5B;AAkCnD;U6B7DiB,qBAAA;;EAEf,WAAA;E7B2DyD;E6BzDzD,OAAA;E7B+EqC;E6B7ErC,YAAA;AAAA;;;;UAMe,oBAAA;EACf,OAAA,EAAS,UAAU;AAAA;;;;;;;;iBA0BL,cAAA,CAAe,OAAA,EAAS,qBAAA,EAAuB,GAAA,WAAc,oBAAoB;AAAA;;;A7BZ9C;AAkCnD;;;;AAA2D;AAlCR,iB8BnBnC,oBAAA,CAAqB,QAAA,sBAA8B,GAAW"}
@@ -53,9 +53,32 @@ declare class DkgProposedParticipant {
53
53
  responseArid(): ARID;
54
54
  /**
55
55
  * Compare participants by XID for sorting.
56
+ *
57
+ * Mirrors Rust `PartialOrd::partial_cmp` which uses
58
+ * `self.xid().cmp(&other.xid())` — i.e. the underlying 32-byte XID
59
+ * data is compared lexicographically (`Vec<u8>` ordering). The
60
+ * earlier port used `xid.toString().localeCompare(...)`, which (a)
61
+ * compares the UR-encoded base32-ish string, not the bytes, and (b)
62
+ * is locale-aware. Sorting on UR strings differs from the byte
63
+ * order whenever the underlying bytes contain values ≥ 0x80, so
64
+ * Rust and TS would assign different FROST identifiers to the same
65
+ * participant set — producing different secret shares.
56
66
  */
57
67
  compareTo(other: DkgProposedParticipant): number;
58
68
  }
69
+ /**
70
+ * Lexicographic byte compare matching Rust's `Vec<u8>::cmp` /
71
+ * `XID::cmp`. Exported so the cmd-tree call sites (round1 / finalize)
72
+ * can use the same comparator when they sort deduplicated XID lists.
73
+ *
74
+ * `XID` is exactly 32 bytes so this only ever compares two equal-length
75
+ * inputs; the length-tiebreak branch mirrors the generic `Ord` impl on
76
+ * `Vec<u8>` and is included for correctness if ever applied to other
77
+ * byte sequences.
78
+ *
79
+ * @internal
80
+ */
81
+ declare function compareXidBytes(a: Uint8Array, b: Uint8Array): number;
59
82
  //#endregion
60
83
  //#region src/dkg/group-invite.d.ts
61
84
  /**
@@ -168,5 +191,5 @@ declare class DkgInvitation {
168
191
  static fromInvite(invite: Envelope, now: Date, expectedSender: XIDDocument | undefined, recipient: XIDDocument): DkgInvitation;
169
192
  }
170
193
  //#endregion
171
- export { declined as a, accepted as i, DkgInvitationResult as n, DkgProposedParticipant as o, DkgInvite as r, DkgInvitation as t };
172
- //# sourceMappingURL=index-DmxfT59Y.d.cts.map
194
+ export { declined as a, accepted as i, DkgInvitationResult as n, DkgProposedParticipant as o, DkgInvite as r, compareXidBytes as s, DkgInvitation as t };
195
+ //# sourceMappingURL=index-gkmZzEuD.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-gkmZzEuD.d.cts","names":[],"sources":["../src/dkg/proposed-participant.ts","../src/dkg/group-invite.ts"],"mappings":";;;;;;;;;;;cAsBa,sBAAA;EAAA,iBACM,SAAA;EAAA,iBACA,SAAA;EAAA,iBACA,SAAA;EAAA,iBACA,aAAA;EAAA,QAEV,WAAA,CAAA;EAiBuC;;;;;EAAA,OAAvC,MAAA,CAAO,QAAA,UAAkB,YAAA,EAAc,IAAA,GAAO,sBAAA;EAmBtC;;;;;EATf,GAAA,CAAA,GAAO,GAAA;EAqDP;;;;AAAuC;EA5CvC,WAAA,CAAA,GAAe,WAAA;EA6Dc;;;;;EApD7B,aAAA,CAAA;EAoD6C;;AAAa;;;EA3C1D,mBAAA,CAAA,GAAuB,QAAA;ECzDb;;;;;EDkEV,YAAA,CAAA,GAAgB,IAAA;EClE2D;;AAAM;AAKnF;;;;AAA+C;AAO/C;;;;AAA6D;EDuE3D,SAAA,CAAU,KAAA,EAAO,sBAAA;AAAA;;;;;;;;;;;;;iBAiBH,eAAA,CAAgB,CAAA,EAAG,UAAA,EAAY,CAAA,EAAG,UAAU;;;;;;;;KCpGhD,mBAAA;EAAwB,IAAA;AAAA;EAAuB,IAAA;EAAkB,MA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,CAAA;EAIA,OAAA,CAAA;EAIA,OAAA,CAAA,GAAW,IAAA;EArNT;;;;;EA8NF,UAAA,CAAW,QAAA,EAAU,mBAAA,EAAqB,SAAA,EAAW,WAAA,GAAc,cAAA;EA3NjE;;;;;EA2OF,UAAA,CAAW,QAAA,EAAU,mBAAA,EAAqB,SAAA,EAAW,WAAA,GAAc,QAAA;EAtOlD;;;;;EAAA,OAwPV,UAAA,CACL,MAAA,EAAQ,QAAA,EACR,GAAA,EAAK,IAAA,EACL,cAAA,EAAgB,WAAA,cAChB,SAAA,EAAW,WAAA,GACV,aAAA;AAAA"}
package/dist/index.cjs CHANGED
@@ -1,9 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_proposed_participant = require("./proposed-participant-BvHNnpcZ.cjs");
2
3
  const require_dkg_index = require("./dkg/index.cjs");
3
4
  const require_registry_index = require("./registry/index.cjs");
4
- const require_cmd = require("./cmd-BfZjC3Uh.cjs");
5
+ const require_common = require("./common-CnvAUC2b.cjs");
6
+ const require_busy = require("./busy-B_h0bNAJ.cjs");
7
+ const require_parallel = require("./parallel-szwYx-bi.cjs");
8
+ const require_registry = require("./registry-CkIbA7nt.cjs");
9
+ const require_cmd = require("./cmd-CCVhHzG7.cjs");
5
10
  const require_frost_index = require("./frost/index.cjs");
6
- const require_registry = require("./registry-loI1_Mh1.cjs");
7
11
  //#region src/index.ts
8
12
  /**
9
13
  * Initialize the library by registering all required CBOR tags.
@@ -20,13 +24,13 @@ async function registerTags() {
20
24
  }
21
25
  //#endregion
22
26
  exports.AddOutcome = require_registry_index.AddOutcome;
23
- exports.CollectionResult = require_cmd.CollectionResult;
27
+ exports.CollectionResult = require_parallel.CollectionResult;
24
28
  exports.ContributionPaths = require_registry_index.ContributionPaths;
25
- exports.DEFAULT_TIMEOUT_SECONDS = require_cmd.DEFAULT_TIMEOUT_SECONDS;
26
- exports.Direction = require_cmd.Direction;
29
+ exports.DEFAULT_TIMEOUT_SECONDS = require_parallel.DEFAULT_TIMEOUT_SECONDS;
30
+ exports.Direction = require_parallel.Direction;
27
31
  exports.DkgInvitation = require_dkg_index.DkgInvitation;
28
32
  exports.DkgInvite = require_dkg_index.DkgInvite;
29
- exports.DkgProposedParticipant = require_dkg_index.DkgProposedParticipant;
33
+ exports.DkgProposedParticipant = require_proposed_participant.DkgProposedParticipant;
30
34
  exports.GroupOutcome = require_registry_index.GroupOutcome;
31
35
  exports.GroupParticipant = require_registry_index.GroupParticipant;
32
36
  exports.GroupRecord = require_registry_index.GroupRecord;
@@ -36,36 +40,38 @@ exports.ParticipantRecord = require_registry_index.ParticipantRecord;
36
40
  exports.PendingRequests = require_registry_index.PendingRequests;
37
41
  exports.Registry = require_registry_index.Registry;
38
42
  exports.accepted = require_dkg_index.accepted;
39
- exports.buildFetchRequests = require_cmd.buildFetchRequests;
43
+ exports.buildFetchRequests = require_parallel.buildFetchRequests;
40
44
  exports.checkAridExists = require_cmd.checkAridExists;
41
- exports.createStorageClient = require_cmd.createStorageClient;
45
+ exports.compareXidBytes = require_proposed_participant.compareXidBytes;
46
+ exports.createStorageClient = require_registry.createStorageClient;
42
47
  exports.declined = require_dkg_index.declined;
43
- exports.directionEmoji = require_cmd.directionEmoji;
48
+ exports.directionEmoji = require_parallel.directionEmoji;
44
49
  Object.defineProperty(exports, "dkg", {
45
50
  enumerable: true,
46
51
  get: function() {
47
52
  return require_cmd.dkg_exports;
48
53
  }
49
54
  });
50
- exports.emptyCollectionResult = require_cmd.emptyCollectionResult;
51
- exports.fetchStatusError = require_cmd.fetchStatusError;
52
- exports.fetchStatusPending = require_cmd.fetchStatusPending;
53
- exports.fetchStatusRejected = require_cmd.fetchStatusRejected;
54
- exports.fetchStatusSuccess = require_cmd.fetchStatusSuccess;
55
- exports.fetchStatusTimeout = require_cmd.fetchStatusTimeout;
55
+ exports.emptyCollectionResult = require_parallel.emptyCollectionResult;
56
+ exports.fetchStatusError = require_parallel.fetchStatusError;
57
+ exports.fetchStatusPending = require_parallel.fetchStatusPending;
58
+ exports.fetchStatusRejected = require_parallel.fetchStatusRejected;
59
+ exports.fetchStatusSuccess = require_parallel.fetchStatusSuccess;
60
+ exports.fetchStatusTimeout = require_parallel.fetchStatusTimeout;
56
61
  Object.defineProperty(exports, "frost", {
57
62
  enumerable: true,
58
63
  get: function() {
59
64
  return require_frost_index.frost_exports;
60
65
  }
61
66
  });
62
- exports.getWithIndicator = require_cmd.getWithIndicator;
63
- exports.groupStateDir = require_cmd.groupStateDir;
64
- exports.isVerbose = require_cmd.isVerbose;
65
- exports.parallelFetch = require_cmd.parallelFetch;
66
- exports.parallelFetchConfigWithTimeout = require_cmd.parallelFetchConfigWithTimeout;
67
- exports.parallelSend = require_cmd.parallelSend;
68
- exports.putWithIndicator = require_cmd.putWithIndicator;
67
+ exports.getWithIndicator = require_busy.getWithIndicator;
68
+ exports.groupStateDir = require_common.groupStateDir;
69
+ exports.isVerbose = require_common.isVerbose;
70
+ exports.parallelFetch = require_parallel.parallelFetch;
71
+ exports.parallelFetchConfigWithTimeout = require_parallel.parallelFetchConfigWithTimeout;
72
+ exports.parallelSend = require_parallel.parallelSend;
73
+ exports.parseAridUr = require_common.parseAridUr;
74
+ exports.putWithIndicator = require_busy.putWithIndicator;
69
75
  exports.registerTags = registerTags;
70
76
  Object.defineProperty(exports, "registry", {
71
77
  enumerable: true,
@@ -74,12 +80,13 @@ Object.defineProperty(exports, "registry", {
74
80
  }
75
81
  });
76
82
  exports.resolveRegistryPath = require_registry_index.resolveRegistryPath;
77
- exports.setVerbose = require_cmd.setVerbose;
83
+ exports.setVerbose = require_common.setVerbose;
78
84
  Object.defineProperty(exports, "sign", {
79
85
  enumerable: true,
80
86
  get: function() {
81
87
  return require_cmd.sign_exports;
82
88
  }
83
89
  });
90
+ exports.signingKeyFromVerifying = require_common.signingKeyFromVerifying;
84
91
 
85
92
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * FROST DKG and signing using Hubert as the distributed substrate.\n *\n * Port of lib.rs from frost-hubert-rust.\n *\n * @module\n */\n\n// Re-export DKG module\nexport * from \"./dkg/index.js\";\n\n// Re-export Registry module\nexport * from \"./registry/index.js\";\n\n// Re-export command module\nexport * from \"./cmd/index.js\";\n\n// Re-export FROST cryptographic operations\nexport * as frost from \"./frost/index.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n/**\n * Initialize the library by registering all required CBOR tags.\n *\n * Port of `run()` tag registration from lib.rs lines 14-16.\n */\nexport async function registerTags(): Promise<void> {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n}\n"],"mappings":";;;;;;;;;;;;AAkCA,eAAsB,eAA8B;CAClD,MAAM,aAAc,MAAM,OAAO;CACjC,MAAM,WAAY,MAAM,OAAO;CAC/B,MAAM,iBAAkB,MAAM,OAAO;AAErC,KAAI,OAAO,WAAW,iBAAiB,WACrC,YAAW,cAAc;AAE3B,KAAI,OAAO,SAAS,iBAAiB,WACnC,UAAS,cAAc;AAEzB,KAAI,OAAO,eAAe,iBAAiB,WACzC,gBAAe,cAAc"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * FROST DKG and signing using Hubert as the distributed substrate.\n *\n * Port of lib.rs from frost-hubert-rust.\n *\n * @module\n */\n\n// Re-export DKG module\nexport * from \"./dkg/index.js\";\n\n// Re-export Registry module\nexport * from \"./registry/index.js\";\n\n// Re-export command module\nexport * from \"./cmd/index.js\";\n\n// Re-export FROST cryptographic operations\nexport * as frost from \"./frost/index.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n/**\n * Initialize the library by registering all required CBOR tags.\n *\n * Port of `run()` tag registration from lib.rs lines 14-16.\n */\nexport async function registerTags(): Promise<void> {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkCA,eAAsB,eAA8B;CAClD,MAAM,aAAc,MAAM,OAAO;CACjC,MAAM,WAAY,MAAM,OAAO;CAC/B,MAAM,iBAAkB,MAAM,OAAO;CAErC,IAAI,OAAO,WAAW,iBAAiB,YACrC,WAAW,aAAa;CAE1B,IAAI,OAAO,SAAS,iBAAiB,YACnC,SAAS,aAAa;CAExB,IAAI,OAAO,eAAe,iBAAiB,YACzC,eAAe,aAAa;AAEhC"}
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$3, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$2, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "./index-BJlwbPYu.cjs";
2
- import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, n as GroupOutcome, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-BMbPgH0W.cjs";
3
- import { a as declined, i as accepted, n as DkgInvitationResult, o as DkgProposedParticipant, r as DkgInvite, t as DkgInvitation } from "./index-DmxfT59Y.cjs";
1
+ import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, n as GroupOutcome, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-CD50Qtgw.cjs";
2
+ import { A as signingKeyFromVerifying, C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, k as parseAridUr, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$3, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$2, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "./index-BErX9AZF.cjs";
3
+ import { a as declined, i as accepted, n as DkgInvitationResult, o as DkgProposedParticipant, r as DkgInvite, s as compareXidBytes, t as DkgInvitation } from "./index-gkmZzEuD.cjs";
4
4
  import { t as index_d_exports$1 } from "./frost/index.cjs";
5
5
 
6
6
  //#region src/index.d.ts
@@ -11,5 +11,5 @@ import { t as index_d_exports$1 } from "./frost/index.cjs";
11
11
  */
12
12
  declare function registerTags(): Promise<void>;
13
13
  //#endregion
14
- export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvitationResult, DkgInvite, DkgProposedParticipant, FetchStatus, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParallelFetchConfig, ParticipantRecord, PendingRequests, Registry, StorageClient, StorageSelection, accepted, buildFetchRequests, checkAridExists, createStorageClient, declined, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, index_d_exports$1 as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registerTags, index_d_exports$2 as registry, resolveRegistryPath, setVerbose, index_d_exports$3 as sign };
14
+ export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvitationResult, DkgInvite, DkgProposedParticipant, FetchStatus, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParallelFetchConfig, ParticipantRecord, PendingRequests, Registry, StorageClient, StorageSelection, accepted, buildFetchRequests, checkAridExists, compareXidBytes, createStorageClient, declined, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, index_d_exports$1 as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, parseAridUr, putWithIndicator, registerTags, index_d_exports$2 as registry, resolveRegistryPath, setVerbose, index_d_exports$3 as sign, signingKeyFromVerifying };
15
15
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;iBAkCsB,YAAA,CAAA,GAAgB,OAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;iBAkCsB,YAAA,CAAA,GAAgB,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$3, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$2, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "./index-Dzm1v4_4.mjs";
2
- import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, n as GroupOutcome, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-DoV5HFvV.mjs";
3
- import { a as declined, i as accepted, n as DkgInvitationResult, o as DkgProposedParticipant, r as DkgInvite, t as DkgInvitation } from "./index-BkqLimZT.mjs";
1
+ import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, n as GroupOutcome, o as ParticipantRecord, r as OwnerOutcome, s as OwnerRecord, t as AddOutcome, u as GroupRecord } from "./index-CD50Qtgw.mjs";
2
+ import { A as signingKeyFromVerifying, C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, k as parseAridUr, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$3, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$2, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "./index-Drklne-Y.mjs";
3
+ import { a as declined, i as accepted, n as DkgInvitationResult, o as DkgProposedParticipant, r as DkgInvite, s as compareXidBytes, t as DkgInvitation } from "./index-BaUVw4b1.mjs";
4
4
  import { t as index_d_exports$1 } from "./frost/index.mjs";
5
5
 
6
6
  //#region src/index.d.ts
@@ -11,5 +11,5 @@ import { t as index_d_exports$1 } from "./frost/index.mjs";
11
11
  */
12
12
  declare function registerTags(): Promise<void>;
13
13
  //#endregion
14
- export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvitationResult, DkgInvite, DkgProposedParticipant, FetchStatus, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParallelFetchConfig, ParticipantRecord, PendingRequests, Registry, StorageClient, StorageSelection, accepted, buildFetchRequests, checkAridExists, createStorageClient, declined, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, index_d_exports$1 as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registerTags, index_d_exports$2 as registry, resolveRegistryPath, setVerbose, index_d_exports$3 as sign };
14
+ export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvitationResult, DkgInvite, DkgProposedParticipant, FetchStatus, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParallelFetchConfig, ParticipantRecord, PendingRequests, Registry, StorageClient, StorageSelection, accepted, buildFetchRequests, checkAridExists, compareXidBytes, createStorageClient, declined, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, index_d_exports$1 as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, parseAridUr, putWithIndicator, registerTags, index_d_exports$2 as registry, resolveRegistryPath, setVerbose, index_d_exports$3 as sign, signingKeyFromVerifying };
15
15
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;iBAkCsB,YAAA,CAAA,GAAgB,OAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;iBAkCsB,YAAA,CAAA,GAAgB,OAAO"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,12 @@
1
- import { DkgInvitation, DkgInvite, DkgProposedParticipant, accepted, declined } from "./dkg/index.mjs";
1
+ import { n as compareXidBytes, t as DkgProposedParticipant } from "./proposed-participant-Detb823_.mjs";
2
+ import { DkgInvitation, DkgInvite, accepted, declined } from "./dkg/index.mjs";
2
3
  import { AddOutcome, ContributionPaths, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParticipantRecord, PendingRequests, Registry, resolveRegistryPath } from "./registry/index.mjs";
3
- import { C as setVerbose, S as isVerbose, _ as parallelFetchConfigWithTimeout, a as CollectionResult, b as putWithIndicator, c as buildFetchRequests, d as fetchStatusError, f as fetchStatusPending, g as parallelFetch, h as fetchStatusTimeout, i as createStorageClient, l as directionEmoji, m as fetchStatusSuccess, n as dkg_exports, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusRejected, r as checkAridExists, s as Direction, t as sign_exports, u as emptyCollectionResult, v as parallelSend, x as groupStateDir, y as getWithIndicator } from "./cmd-5yLeC_QL.mjs";
4
+ import { c as parseAridUr, h as signingKeyFromVerifying, n as isVerbose, r as setVerbose, t as groupStateDir } from "./common-Cf1UvJaP.mjs";
5
+ import { n as putWithIndicator, t as getWithIndicator } from "./busy-BlU8_pS2.mjs";
6
+ import { a as directionEmoji, c as fetchStatusPending, d as fetchStatusTimeout, f as parallelFetch, i as buildFetchRequests, l as fetchStatusRejected, m as parallelSend, n as DEFAULT_TIMEOUT_SECONDS, o as emptyCollectionResult, p as parallelFetchConfigWithTimeout, r as Direction, s as fetchStatusError, t as CollectionResult, u as fetchStatusSuccess } from "./parallel-PZiwHZT8.mjs";
7
+ import { i as createStorageClient, t as registry_exports } from "./registry-DGjs4qDK.mjs";
8
+ import { n as dkg_exports, r as checkAridExists, t as sign_exports } from "./cmd-DNsHd19v.mjs";
4
9
  import { t as frost_exports } from "./frost/index.mjs";
5
- import { t as registry_exports } from "./registry-CgrCZ4En.mjs";
6
10
  //#region src/index.ts
7
11
  /**
8
12
  * Initialize the library by registering all required CBOR tags.
@@ -18,6 +22,6 @@ async function registerTags() {
18
22
  if (typeof provenanceMark.registerTags === "function") provenanceMark.registerTags();
19
23
  }
20
24
  //#endregion
21
- export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvite, DkgProposedParticipant, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParticipantRecord, PendingRequests, Registry, accepted, buildFetchRequests, checkAridExists, createStorageClient, declined, directionEmoji, dkg_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, frost_exports as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registerTags, registry_exports as registry, resolveRegistryPath, setVerbose, sign_exports as sign };
25
+ export { AddOutcome, CollectionResult, ContributionPaths, DEFAULT_TIMEOUT_SECONDS, Direction, DkgInvitation, DkgInvite, DkgProposedParticipant, GroupOutcome, GroupParticipant, GroupRecord, OwnerOutcome, OwnerRecord, ParticipantRecord, PendingRequests, Registry, accepted, buildFetchRequests, checkAridExists, compareXidBytes, createStorageClient, declined, directionEmoji, dkg_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, frost_exports as frost, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, parseAridUr, putWithIndicator, registerTags, registry_exports as registry, resolveRegistryPath, setVerbose, sign_exports as sign, signingKeyFromVerifying };
22
26
 
23
27
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * FROST DKG and signing using Hubert as the distributed substrate.\n *\n * Port of lib.rs from frost-hubert-rust.\n *\n * @module\n */\n\n// Re-export DKG module\nexport * from \"./dkg/index.js\";\n\n// Re-export Registry module\nexport * from \"./registry/index.js\";\n\n// Re-export command module\nexport * from \"./cmd/index.js\";\n\n// Re-export FROST cryptographic operations\nexport * as frost from \"./frost/index.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n/**\n * Initialize the library by registering all required CBOR tags.\n *\n * Port of `run()` tag registration from lib.rs lines 14-16.\n */\nexport async function registerTags(): Promise<void> {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n}\n"],"mappings":";;;;;;;;;;;AAkCA,eAAsB,eAA8B;CAClD,MAAM,aAAc,MAAM,OAAO;CACjC,MAAM,WAAY,MAAM,OAAO;CAC/B,MAAM,iBAAkB,MAAM,OAAO;AAErC,KAAI,OAAO,WAAW,iBAAiB,WACrC,YAAW,cAAc;AAE3B,KAAI,OAAO,SAAS,iBAAiB,WACnC,UAAS,cAAc;AAEzB,KAAI,OAAO,eAAe,iBAAiB,WACzC,gBAAe,cAAc"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * FROST DKG and signing using Hubert as the distributed substrate.\n *\n * Port of lib.rs from frost-hubert-rust.\n *\n * @module\n */\n\n// Re-export DKG module\nexport * from \"./dkg/index.js\";\n\n// Re-export Registry module\nexport * from \"./registry/index.js\";\n\n// Re-export command module\nexport * from \"./cmd/index.js\";\n\n// Re-export FROST cryptographic operations\nexport * as frost from \"./frost/index.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n/**\n * Initialize the library by registering all required CBOR tags.\n *\n * Port of `run()` tag registration from lib.rs lines 14-16.\n */\nexport async function registerTags(): Promise<void> {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,eAAsB,eAA8B;CAClD,MAAM,aAAc,MAAM,OAAO;CACjC,MAAM,WAAY,MAAM,OAAO;CAC/B,MAAM,iBAAkB,MAAM,OAAO;CAErC,IAAI,OAAO,WAAW,iBAAiB,YACrC,WAAW,aAAa;CAE1B,IAAI,OAAO,SAAS,iBAAiB,YACnC,SAAS,aAAa;CAExB,IAAI,OAAO,eAAe,iBAAiB,YACzC,eAAe,aAAa;AAEhC"}