@bcts/frost-hubert 1.0.0-alpha.17

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 (114) hide show
  1. package/LICENSE +48 -0
  2. package/README.md +35 -0
  3. package/dist/bin/frost.cjs +109 -0
  4. package/dist/bin/frost.cjs.map +1 -0
  5. package/dist/bin/frost.d.cts +1 -0
  6. package/dist/bin/frost.d.mts +1 -0
  7. package/dist/bin/frost.mjs +109 -0
  8. package/dist/bin/frost.mjs.map +1 -0
  9. package/dist/chunk-CQwRTUmo.cjs +53 -0
  10. package/dist/chunk-D3JzZLW2.mjs +21 -0
  11. package/dist/cmd/index.cjs +45 -0
  12. package/dist/cmd/index.d.cts +4 -0
  13. package/dist/cmd/index.d.mts +4 -0
  14. package/dist/cmd/index.mjs +7 -0
  15. package/dist/cmd-C8pmNd28.mjs +4664 -0
  16. package/dist/cmd-C8pmNd28.mjs.map +1 -0
  17. package/dist/cmd-CxUgryx_.cjs +4803 -0
  18. package/dist/cmd-CxUgryx_.cjs.map +1 -0
  19. package/dist/dkg/index.cjs +7 -0
  20. package/dist/dkg/index.d.cts +2 -0
  21. package/dist/dkg/index.d.mts +2 -0
  22. package/dist/dkg/index.mjs +3 -0
  23. package/dist/dkg-D4RcblWl.cjs +364 -0
  24. package/dist/dkg-D4RcblWl.cjs.map +1 -0
  25. package/dist/dkg-DqGrAV81.mjs +334 -0
  26. package/dist/dkg-DqGrAV81.mjs.map +1 -0
  27. package/dist/frost/index.cjs +37 -0
  28. package/dist/frost/index.d.cts +207 -0
  29. package/dist/frost/index.d.cts.map +1 -0
  30. package/dist/frost/index.d.mts +207 -0
  31. package/dist/frost/index.d.mts.map +1 -0
  32. package/dist/frost/index.mjs +3 -0
  33. package/dist/frost-CMH1K0Cw.cjs +511 -0
  34. package/dist/frost-CMH1K0Cw.cjs.map +1 -0
  35. package/dist/frost-Csp0IOrd.mjs +326 -0
  36. package/dist/frost-Csp0IOrd.mjs.map +1 -0
  37. package/dist/index-BGVoWW5P.d.cts +172 -0
  38. package/dist/index-BGVoWW5P.d.cts.map +1 -0
  39. package/dist/index-BJeUYrdE.d.mts +396 -0
  40. package/dist/index-BJeUYrdE.d.mts.map +1 -0
  41. package/dist/index-ByMDUYKw.d.mts +1098 -0
  42. package/dist/index-ByMDUYKw.d.mts.map +1 -0
  43. package/dist/index-DejLkr_F.d.mts +172 -0
  44. package/dist/index-DejLkr_F.d.mts.map +1 -0
  45. package/dist/index-Dib1OE-e.d.cts +1098 -0
  46. package/dist/index-Dib1OE-e.d.cts.map +1 -0
  47. package/dist/index-DnvBKgec.d.cts +396 -0
  48. package/dist/index-DnvBKgec.d.cts.map +1 -0
  49. package/dist/index.cjs +85 -0
  50. package/dist/index.cjs.map +1 -0
  51. package/dist/index.d.cts +15 -0
  52. package/dist/index.d.cts.map +1 -0
  53. package/dist/index.d.mts +15 -0
  54. package/dist/index.d.mts.map +1 -0
  55. package/dist/index.mjs +24 -0
  56. package/dist/index.mjs.map +1 -0
  57. package/dist/registry/index.cjs +13 -0
  58. package/dist/registry/index.d.cts +2 -0
  59. package/dist/registry/index.d.mts +2 -0
  60. package/dist/registry/index.mjs +3 -0
  61. package/dist/registry-CBjRRqNv.mjs +144 -0
  62. package/dist/registry-CBjRRqNv.mjs.map +1 -0
  63. package/dist/registry-CWp2amuo.mjs +789 -0
  64. package/dist/registry-CWp2amuo.mjs.map +1 -0
  65. package/dist/registry-D5yh293y.cjs +857 -0
  66. package/dist/registry-D5yh293y.cjs.map +1 -0
  67. package/dist/registry-DNUNW6SH.cjs +163 -0
  68. package/dist/registry-DNUNW6SH.cjs.map +1 -0
  69. package/package.json +119 -0
  70. package/src/bin/frost.ts +218 -0
  71. package/src/cmd/busy.ts +64 -0
  72. package/src/cmd/check.ts +20 -0
  73. package/src/cmd/common.ts +40 -0
  74. package/src/cmd/dkg/common.ts +275 -0
  75. package/src/cmd/dkg/coordinator/finalize.ts +592 -0
  76. package/src/cmd/dkg/coordinator/index.ts +12 -0
  77. package/src/cmd/dkg/coordinator/invite.ts +217 -0
  78. package/src/cmd/dkg/coordinator/round1.ts +889 -0
  79. package/src/cmd/dkg/coordinator/round2.ts +959 -0
  80. package/src/cmd/dkg/index.ts +11 -0
  81. package/src/cmd/dkg/participant/finalize.ts +575 -0
  82. package/src/cmd/dkg/participant/index.ts +12 -0
  83. package/src/cmd/dkg/participant/receive.ts +348 -0
  84. package/src/cmd/dkg/participant/round1.ts +464 -0
  85. package/src/cmd/dkg/participant/round2.ts +627 -0
  86. package/src/cmd/index.ts +18 -0
  87. package/src/cmd/parallel.ts +334 -0
  88. package/src/cmd/registry/index.ts +88 -0
  89. package/src/cmd/registry/owner/index.ts +9 -0
  90. package/src/cmd/registry/owner/set.ts +70 -0
  91. package/src/cmd/registry/participant/add.ts +70 -0
  92. package/src/cmd/registry/participant/index.ts +9 -0
  93. package/src/cmd/sign/common.ts +108 -0
  94. package/src/cmd/sign/coordinator/index.ts +11 -0
  95. package/src/cmd/sign/coordinator/invite.ts +431 -0
  96. package/src/cmd/sign/coordinator/round1.ts +751 -0
  97. package/src/cmd/sign/coordinator/round2.ts +836 -0
  98. package/src/cmd/sign/index.ts +11 -0
  99. package/src/cmd/sign/participant/finalize.ts +823 -0
  100. package/src/cmd/sign/participant/index.ts +12 -0
  101. package/src/cmd/sign/participant/receive.ts +378 -0
  102. package/src/cmd/sign/participant/round1.ts +479 -0
  103. package/src/cmd/sign/participant/round2.ts +748 -0
  104. package/src/cmd/storage.ts +116 -0
  105. package/src/dkg/group-invite.ts +414 -0
  106. package/src/dkg/index.ts +10 -0
  107. package/src/dkg/proposed-participant.ts +132 -0
  108. package/src/frost/index.ts +456 -0
  109. package/src/index.ts +45 -0
  110. package/src/registry/group-record.ts +392 -0
  111. package/src/registry/index.ts +12 -0
  112. package/src/registry/owner-record.ts +146 -0
  113. package/src/registry/participant-record.ts +186 -0
  114. package/src/registry/registry-impl.ts +364 -0
package/LICENSE ADDED
@@ -0,0 +1,48 @@
1
+ Copyright © 2025 Blockchain Commons, LLC
2
+ Copyright © 2025-2026 Leonardo Amoroso Custodio
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ Subject to the terms and conditions of this license, each copyright holder and
15
+ contributor hereby grants to those receiving rights under this license a
16
+ perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
17
+ (except for failure to satisfy the conditions of this license) patent license to
18
+ make, have made, use, offer to sell, sell, import, and otherwise transfer this
19
+ software, where such license applies only to those patent claims, already
20
+ acquired or hereafter acquired, licensable by such copyright holder or
21
+ contributor that are necessarily infringed by:
22
+
23
+ (a) their Contribution(s) (the licensed copyrights of copyright holders and
24
+ non-copyrightable additions of contributors, in source or binary form)
25
+ alone; or
26
+
27
+ (b) combination of their Contribution(s) with the work of authorship to
28
+ which such Contribution(s) was added by such copyright holder or
29
+ contributor, if, at the time the Contribution is added, such addition causes
30
+ such combination to be necessarily infringed. The patent license shall not
31
+ apply to any other combinations which include the Contribution.
32
+
33
+ Except as expressly stated above, no rights or licenses from any copyright
34
+ holder or contributor is granted under this license, whether expressly, by
35
+ implication, estoppel or otherwise.
36
+
37
+ DISCLAIMER
38
+
39
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
40
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
42
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
43
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
44
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
45
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
46
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
47
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
48
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Blockchain Commons FROST Hubert for TypeScript
2
+
3
+ > Disclaimer: This package is under active development and APIs may change.
4
+
5
+ ## Introduction
6
+
7
+ FROST Hubert implements FROST (Flexible Round-Optimized Schnorr Threshold) signatures using Hubert as the distributed substrate. It enables threshold signing operations where a configurable subset of participants can collaboratively sign messages without any single party having access to the complete private key.
8
+
9
+ Key features:
10
+
11
+ - **Distributed Key Generation (DKG)**: Securely generate threshold signing keys across multiple participants
12
+ - **Threshold Signing**: Create valid signatures with only t-of-n participants
13
+ - **Ed25519 Signatures**: Uses the FROST-ED25519-SHA512-v1 ciphersuite
14
+ - **Hubert Integration**: Built on top of the Hubert distributed storage protocol
15
+
16
+ ## Security Considerations
17
+
18
+ > ⚠️ **WARNING: NOT PRODUCTION READY**
19
+ >
20
+ > This package is intended for **testing and experimentation purposes only**.
21
+
22
+ Unlike other `@bcts` packages that use audited cryptographic libraries from the [@noble](https://paulmillr.com/noble/) family, this package relies on:
23
+
24
+ - `@frosts/core` - FROST protocol implementation
25
+ - `@frosts/ed25519` - Ed25519 ciphersuite for FROST
26
+
27
+ The `@noble` libraries were not used because they are intentionally minimal implementations focused on core cryptographic primitives. FROST threshold signatures require additional functionality (Distributed Key Generation, threshold signing coordination, secret sharing schemes) that is beyond the scope of `@noble`.
28
+
29
+ **These `@frosts` packages are unaudited** and have not undergone the same level of security review as the `@noble` libraries. Do not use this package in production environments or for securing real assets.
30
+
31
+ For more details, see the [frosTS](https://github.com/leonardocustodio/frosts).
32
+
33
+ ## Rust Reference Implementation
34
+
35
+ This TypeScript implementation is based on [frost-hubert-rust](https://github.com/BlockchainCommons/frost-hubert-rust).
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env node
2
+ const require_chunk = require('../chunk-CQwRTUmo.cjs');
3
+ require('../registry-D5yh293y.cjs');
4
+ const require_registry$1 = require('../registry-DNUNW6SH.cjs');
5
+ let commander = require("commander");
6
+
7
+ //#region src/bin/frost.ts
8
+ /**
9
+ * FROST CLI binary entry point.
10
+ *
11
+ * Port of main.rs and lib.rs CLI from frost-hubert-rust.
12
+ *
13
+ * @module
14
+ */
15
+ async function registerTags() {
16
+ try {
17
+ const components = await import("@bcts/components");
18
+ const envelope = await import("@bcts/envelope");
19
+ const provenanceMark = await import("@bcts/provenance-mark");
20
+ if (typeof components.registerTags === "function") components.registerTags();
21
+ if (typeof envelope.registerTags === "function") envelope.registerTags();
22
+ if (typeof provenanceMark.registerTags === "function") provenanceMark.registerTags();
23
+ } catch {}
24
+ }
25
+ async function main() {
26
+ await registerTags();
27
+ commander.program.name("frost").description("FROST threshold signing CLI").version("1.0.0");
28
+ const registryCmd = commander.program.command("registry").description("Manage the registry");
29
+ registryCmd.command("owner").description("Manage the registry owner").command("set <xid-document> [pet-name]").description("Set the registry owner using an ur:xid document that includes private keys").option("-r, --registry <path>", "Registry path or filename override").action((xidDocument, petName, options) => {
30
+ try {
31
+ require_registry$1.ownerSet({
32
+ xidDocument,
33
+ petName,
34
+ registryPath: options.registry
35
+ }, process.cwd());
36
+ } catch (error) {
37
+ console.error(error.message);
38
+ process.exit(1);
39
+ }
40
+ });
41
+ registryCmd.command("participant").description("Manage registry participants").command("add <xid-document> [pet-name]").description("Add a participant using an ur:xid document").option("-r, --registry <path>", "Registry path or filename override").action((xidDocument, petName, options) => {
42
+ try {
43
+ require_registry$1.participantAdd({
44
+ xidDocument,
45
+ petName,
46
+ registryPath: options.registry
47
+ }, process.cwd());
48
+ } catch (error) {
49
+ console.error(error.message);
50
+ process.exit(1);
51
+ }
52
+ });
53
+ const dkgCmd = commander.program.command("dkg").description("Distributed Key Generation commands");
54
+ const dkgCoordinatorCmd = dkgCmd.command("coordinator").description("DKG coordinator commands");
55
+ dkgCoordinatorCmd.command("invite").description("Send DKG invite to participants").action(() => {
56
+ console.log("DKG coordinator invite command not yet implemented");
57
+ });
58
+ dkgCoordinatorCmd.command("round1").description("Collect round 1 responses").action(() => {
59
+ console.log("DKG coordinator round1 command not yet implemented");
60
+ });
61
+ dkgCoordinatorCmd.command("round2").description("Collect round 2 responses").action(() => {
62
+ console.log("DKG coordinator round2 command not yet implemented");
63
+ });
64
+ const dkgParticipantCmd = dkgCmd.command("participant").description("DKG participant commands");
65
+ dkgParticipantCmd.command("receive").description("Receive DKG invite").action(() => {
66
+ console.log("DKG participant receive command not yet implemented");
67
+ });
68
+ dkgParticipantCmd.command("round1").description("Send round 1 response").action(() => {
69
+ console.log("DKG participant round1 command not yet implemented");
70
+ });
71
+ dkgParticipantCmd.command("round2").description("Send round 2 response").action(() => {
72
+ console.log("DKG participant round2 command not yet implemented");
73
+ });
74
+ dkgParticipantCmd.command("finalize").description("Receive finalize package").action(() => {
75
+ console.log("DKG participant finalize command not yet implemented");
76
+ });
77
+ const signCmd = commander.program.command("sign").description("Threshold signing commands");
78
+ const signCoordinatorCmd = signCmd.command("coordinator").description("Sign coordinator commands");
79
+ signCoordinatorCmd.command("invite").description("Send sign invite to participants").action(() => {
80
+ console.log("Sign coordinator invite command not yet implemented");
81
+ });
82
+ signCoordinatorCmd.command("round1").description("Collect round 1 responses").action(() => {
83
+ console.log("Sign coordinator round1 command not yet implemented");
84
+ });
85
+ signCoordinatorCmd.command("round2").description("Collect round 2 responses and finalize signature").action(() => {
86
+ console.log("Sign coordinator round2 command not yet implemented");
87
+ });
88
+ const signParticipantCmd = signCmd.command("participant").description("Sign participant commands");
89
+ signParticipantCmd.command("receive").description("Receive sign invite").action(() => {
90
+ console.log("Sign participant receive command not yet implemented");
91
+ });
92
+ signParticipantCmd.command("round1").description("Send commitment").action(() => {
93
+ console.log("Sign participant round1 command not yet implemented");
94
+ });
95
+ signParticipantCmd.command("round2").description("Send signature share").action(() => {
96
+ console.log("Sign participant round2 command not yet implemented");
97
+ });
98
+ signParticipantCmd.command("finalize").description("Receive finalize event").action(() => {
99
+ console.log("Sign participant finalize command not yet implemented");
100
+ });
101
+ commander.program.parse();
102
+ }
103
+ main().catch((error) => {
104
+ console.error(error.message);
105
+ process.exit(1);
106
+ });
107
+
108
+ //#endregion
109
+ //# sourceMappingURL=frost.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frost.cjs","names":["program"],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\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 } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;AAqBA,eAAe,eAA8B;AAC3C,KAAI;EACF,MAAM,aAAc,MAAM,OA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YAAY,kBAAkB,CAC9B,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,uBAAuB,CACnC,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,WAAW,CACnB,YAAY,yBAAyB,CACrC,aAAa;AACZ,UAAQ,IAAI,wDAAwD;GACpE;AAEJ,mBAAQ,OAAO;;AAGjB,MAAM,CAAC,OAAO,UAAmB;AAC/B,SAAQ,MAAO,MAAgB,QAAQ;AACvC,SAAQ,KAAK,EAAE;EACf"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env node
2
+ import "../registry-CWp2amuo.mjs";
3
+ import { n as participantAdd, r as ownerSet } from "../registry-CBjRRqNv.mjs";
4
+ import { program } from "commander";
5
+
6
+ //#region src/bin/frost.ts
7
+ /**
8
+ * FROST CLI binary entry point.
9
+ *
10
+ * Port of main.rs and lib.rs CLI from frost-hubert-rust.
11
+ *
12
+ * @module
13
+ */
14
+ async function registerTags() {
15
+ try {
16
+ const components = await import("@bcts/components");
17
+ const envelope = await import("@bcts/envelope");
18
+ const provenanceMark = await import("@bcts/provenance-mark");
19
+ if (typeof components.registerTags === "function") components.registerTags();
20
+ if (typeof envelope.registerTags === "function") envelope.registerTags();
21
+ if (typeof provenanceMark.registerTags === "function") provenanceMark.registerTags();
22
+ } catch {}
23
+ }
24
+ async function main() {
25
+ await registerTags();
26
+ program.name("frost").description("FROST threshold signing CLI").version("1.0.0");
27
+ const registryCmd = program.command("registry").description("Manage the registry");
28
+ registryCmd.command("owner").description("Manage the registry owner").command("set <xid-document> [pet-name]").description("Set the registry owner using an ur:xid document that includes private keys").option("-r, --registry <path>", "Registry path or filename override").action((xidDocument, petName, options) => {
29
+ try {
30
+ ownerSet({
31
+ xidDocument,
32
+ petName,
33
+ registryPath: options.registry
34
+ }, process.cwd());
35
+ } catch (error) {
36
+ console.error(error.message);
37
+ process.exit(1);
38
+ }
39
+ });
40
+ registryCmd.command("participant").description("Manage registry participants").command("add <xid-document> [pet-name]").description("Add a participant using an ur:xid document").option("-r, --registry <path>", "Registry path or filename override").action((xidDocument, petName, options) => {
41
+ try {
42
+ participantAdd({
43
+ xidDocument,
44
+ petName,
45
+ registryPath: options.registry
46
+ }, process.cwd());
47
+ } catch (error) {
48
+ console.error(error.message);
49
+ process.exit(1);
50
+ }
51
+ });
52
+ const dkgCmd = program.command("dkg").description("Distributed Key Generation commands");
53
+ const dkgCoordinatorCmd = dkgCmd.command("coordinator").description("DKG coordinator commands");
54
+ dkgCoordinatorCmd.command("invite").description("Send DKG invite to participants").action(() => {
55
+ console.log("DKG coordinator invite command not yet implemented");
56
+ });
57
+ dkgCoordinatorCmd.command("round1").description("Collect round 1 responses").action(() => {
58
+ console.log("DKG coordinator round1 command not yet implemented");
59
+ });
60
+ dkgCoordinatorCmd.command("round2").description("Collect round 2 responses").action(() => {
61
+ console.log("DKG coordinator round2 command not yet implemented");
62
+ });
63
+ const dkgParticipantCmd = dkgCmd.command("participant").description("DKG participant commands");
64
+ dkgParticipantCmd.command("receive").description("Receive DKG invite").action(() => {
65
+ console.log("DKG participant receive command not yet implemented");
66
+ });
67
+ dkgParticipantCmd.command("round1").description("Send round 1 response").action(() => {
68
+ console.log("DKG participant round1 command not yet implemented");
69
+ });
70
+ dkgParticipantCmd.command("round2").description("Send round 2 response").action(() => {
71
+ console.log("DKG participant round2 command not yet implemented");
72
+ });
73
+ dkgParticipantCmd.command("finalize").description("Receive finalize package").action(() => {
74
+ console.log("DKG participant finalize command not yet implemented");
75
+ });
76
+ const signCmd = program.command("sign").description("Threshold signing commands");
77
+ const signCoordinatorCmd = signCmd.command("coordinator").description("Sign coordinator commands");
78
+ signCoordinatorCmd.command("invite").description("Send sign invite to participants").action(() => {
79
+ console.log("Sign coordinator invite command not yet implemented");
80
+ });
81
+ signCoordinatorCmd.command("round1").description("Collect round 1 responses").action(() => {
82
+ console.log("Sign coordinator round1 command not yet implemented");
83
+ });
84
+ signCoordinatorCmd.command("round2").description("Collect round 2 responses and finalize signature").action(() => {
85
+ console.log("Sign coordinator round2 command not yet implemented");
86
+ });
87
+ const signParticipantCmd = signCmd.command("participant").description("Sign participant commands");
88
+ signParticipantCmd.command("receive").description("Receive sign invite").action(() => {
89
+ console.log("Sign participant receive command not yet implemented");
90
+ });
91
+ signParticipantCmd.command("round1").description("Send commitment").action(() => {
92
+ console.log("Sign participant round1 command not yet implemented");
93
+ });
94
+ signParticipantCmd.command("round2").description("Send signature share").action(() => {
95
+ console.log("Sign participant round2 command not yet implemented");
96
+ });
97
+ signParticipantCmd.command("finalize").description("Receive finalize event").action(() => {
98
+ console.log("Sign participant finalize command not yet implemented");
99
+ });
100
+ program.parse();
101
+ }
102
+ main().catch((error) => {
103
+ console.error(error.message);
104
+ process.exit(1);
105
+ });
106
+
107
+ //#endregion
108
+ export { };
109
+ //# sourceMappingURL=frost.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frost.mjs","names":[],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\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 } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;AAqBA,eAAe,eAA8B;AAC3C,KAAI;EACF,MAAM,aAAc,MAAM,OAAO;EACjC,MAAM,WAAY,MAAM,OAAO;EAC/B,MAAM,iBAAkB,MAAM,OAAO;AAErC,MAAI,OAAO,WAAW,iBAAiB,WACrC,YAAW,cAAc;AAE3B,MAAI,OAAO,SAAS,iBAAiB,WACnC,UAAS,cAAc;AAEzB,MAAI,OAAO,eAAe,iBAAiB,WACzC,gBAAe,cAAc;SAEzB;;AAMV,eAAe,OAAsB;AAEnC,OAAM,cAAc;AAEpB,SAAQ,KAAK,QAAQ,CAAC,YAAY,8BAA8B,CAAC,QAAQ,QAAQ;CAGjF,MAAM,cAAc,QAAQ,QAAQ,WAAW,CAAC,YAAY,sBAAsB;AAKlF,CAFiB,YAAY,QAAQ,QAAQ,CAAC,YAAY,4BAA4B,CAGnF,QAAQ,gCAAgC,CACxC,YAAY,6EAA6E,CACzF,OAAO,yBAAyB,qCAAqC,CACrE,QAAQ,aAAqB,SAA6B,YAAmC;AAC5F,MAAI;AACF,YACE;IACE;IACA;IACA,cAAc,QAAQ;IACvB,EACD,QAAQ,KAAK,CACd;WACM,OAAO;AACd,WAAQ,MAAO,MAAgB,QAAQ;AACvC,WAAQ,KAAK,EAAE;;GAEjB;AAOJ,CAJuB,YACpB,QAAQ,cAAc,CACtB,YAAY,+BAA+B,CAG3C,QAAQ,gCAAgC,CACxC,YAAY,6CAA6C,CACzD,OAAO,yBAAyB,qCAAqC,CACrE,QAAQ,aAAqB,SAA6B,YAAmC;AAC5F,MAAI;AACF,kBACE;IACE;IACA;IACA,cAAc,QAAQ;IACvB,EACD,QAAQ,KAAK,CACd;WACM,OAAO;AACd,WAAQ,MAAO,MAAgB,QAAQ;AACvC,WAAQ,KAAK,EAAE;;GAEjB;CAGJ,M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MAAM,qBAAqB,QACxB,QAAQ,cAAc,CACtB,YAAY,4BAA4B;AAC3C,oBACG,QAAQ,UAAU,CAClB,YAAY,sBAAsB,CAClC,aAAa;AACZ,UAAQ,IAAI,uDAAuD;GACnE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,kBAAkB,CAC9B,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,uBAAuB,CACnC,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,WAAW,CACnB,YAAY,yBAAyB,CACrC,aAAa;AACZ,UAAQ,IAAI,wDAAwD;GACpE;AAEJ,SAAQ,OAAO;;AAGjB,MAAM,CAAC,OAAO,UAAmB;AAC/B,SAAQ,MAAO,MAAgB,QAAQ;AACvC,SAAQ,KAAK,EAAE;EACf"}
@@ -0,0 +1,53 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, symbols) => {
9
+ let target = {};
10
+ for (var name in all) {
11
+ __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ }
16
+ if (symbols) {
17
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ }
19
+ return target;
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
24
+ key = keys[i];
25
+ if (!__hasOwnProp.call(to, key) && key !== except) {
26
+ __defProp(to, key, {
27
+ get: ((k) => from[k]).bind(null, key),
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
+ });
30
+ }
31
+ }
32
+ }
33
+ return to;
34
+ };
35
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
36
+ value: mod,
37
+ enumerable: true
38
+ }) : target, mod));
39
+
40
+ //#endregion
41
+
42
+ Object.defineProperty(exports, '__exportAll', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return __exportAll;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, '__toESM', {
49
+ enumerable: true,
50
+ get: function () {
51
+ return __toESM;
52
+ }
53
+ });
@@ -0,0 +1,21 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region rolldown:runtime
4
+ var __defProp = Object.defineProperty;
5
+ var __exportAll = (all, symbols) => {
6
+ let target = {};
7
+ for (var name in all) {
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ }
13
+ if (symbols) {
14
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ }
16
+ return target;
17
+ };
18
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
19
+
20
+ //#endregion
21
+ export { __require as n, __exportAll as t };
@@ -0,0 +1,45 @@
1
+ require('../dkg-D4RcblWl.cjs');
2
+ require('../registry-D5yh293y.cjs');
3
+ const require_cmd = require('../cmd-CxUgryx_.cjs');
4
+ require('../frost-CMH1K0Cw.cjs');
5
+ const require_registry$1 = require('../registry-DNUNW6SH.cjs');
6
+
7
+ exports.CollectionResult = require_cmd.CollectionResult;
8
+ exports.DEFAULT_TIMEOUT_SECONDS = require_cmd.DEFAULT_TIMEOUT_SECONDS;
9
+ exports.Direction = require_cmd.Direction;
10
+ exports.buildFetchRequests = require_cmd.buildFetchRequests;
11
+ exports.checkAridExists = require_cmd.checkAridExists;
12
+ exports.createStorageClient = require_cmd.createStorageClient;
13
+ exports.directionEmoji = require_cmd.directionEmoji;
14
+ Object.defineProperty(exports, 'dkg', {
15
+ enumerable: true,
16
+ get: function () {
17
+ return require_cmd.dkg_exports;
18
+ }
19
+ });
20
+ exports.emptyCollectionResult = require_cmd.emptyCollectionResult;
21
+ exports.fetchStatusError = require_cmd.fetchStatusError;
22
+ exports.fetchStatusPending = require_cmd.fetchStatusPending;
23
+ exports.fetchStatusRejected = require_cmd.fetchStatusRejected;
24
+ exports.fetchStatusSuccess = require_cmd.fetchStatusSuccess;
25
+ exports.fetchStatusTimeout = require_cmd.fetchStatusTimeout;
26
+ exports.getWithIndicator = require_cmd.getWithIndicator;
27
+ exports.groupStateDir = require_cmd.groupStateDir;
28
+ exports.isVerbose = require_cmd.isVerbose;
29
+ exports.parallelFetch = require_cmd.parallelFetch;
30
+ exports.parallelFetchConfigWithTimeout = require_cmd.parallelFetchConfigWithTimeout;
31
+ exports.parallelSend = require_cmd.parallelSend;
32
+ exports.putWithIndicator = require_cmd.putWithIndicator;
33
+ Object.defineProperty(exports, 'registry', {
34
+ enumerable: true,
35
+ get: function () {
36
+ return require_registry$1.registry_exports;
37
+ }
38
+ });
39
+ exports.setVerbose = require_cmd.setVerbose;
40
+ Object.defineProperty(exports, 'sign', {
41
+ enumerable: true,
42
+ get: function () {
43
+ return require_cmd.sign_exports;
44
+ }
45
+ });
@@ -0,0 +1,4 @@
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$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-Dib1OE-e.cjs";
2
+ import "../index-DnvBKgec.cjs";
3
+ import "../index-BGVoWW5P.cjs";
4
+ export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, FetchStatus, ParallelFetchConfig, StorageClient, StorageSelection, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign };
@@ -0,0 +1,4 @@
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$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-ByMDUYKw.mjs";
2
+ import "../index-BJeUYrdE.mjs";
3
+ import "../index-DejLkr_F.mjs";
4
+ export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, FetchStatus, ParallelFetchConfig, StorageClient, StorageSelection, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign };
@@ -0,0 +1,7 @@
1
+ import "../dkg-DqGrAV81.mjs";
2
+ import "../registry-CWp2amuo.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-C8pmNd28.mjs";
4
+ import "../frost-Csp0IOrd.mjs";
5
+ import { t as registry_exports } from "../registry-CBjRRqNv.mjs";
6
+
7
+ export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, dkg_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registry_exports as registry, setVerbose, sign_exports as sign };