@bcts/frost-hubert 1.0.0-alpha.22 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/frost.cjs +347 -75
- package/dist/bin/frost.cjs.map +1 -1
- package/dist/bin/frost.mjs +347 -75
- package/dist/bin/frost.mjs.map +1 -1
- package/dist/busy-DkM2jAIZ.mjs +27 -0
- package/dist/busy-DkM2jAIZ.mjs.map +1 -0
- package/dist/busy-EZU7EKr6.cjs +38 -0
- package/dist/busy-EZU7EKr6.cjs.map +1 -0
- package/dist/{chunk-uaV2rQ02.cjs → chunk-CZWwpsFl.cjs} +22 -32
- package/dist/{chunk-ClPoSABd.mjs → chunk-CjcI7cDX.mjs} +6 -12
- package/dist/cmd/index.cjs +46 -43
- package/dist/cmd/index.d.cts +2 -4
- package/dist/cmd/index.d.mts +2 -4
- package/dist/cmd/index.mjs +7 -6
- package/dist/cmd-Bw9_i2_f.cjs +130 -0
- package/dist/cmd-Bw9_i2_f.cjs.map +1 -0
- package/dist/cmd-CS1uJtuD.mjs +113 -0
- package/dist/cmd-CS1uJtuD.mjs.map +1 -0
- package/dist/common-CvH6dFvQ.mjs +282 -0
- package/dist/common-CvH6dFvQ.mjs.map +1 -0
- package/dist/common-DUWvtc08.mjs +96 -0
- package/dist/common-DUWvtc08.mjs.map +1 -0
- package/dist/common-lKP5EzHy.cjs +372 -0
- package/dist/common-lKP5EzHy.cjs.map +1 -0
- package/dist/common-lThIvJmZ.cjs +114 -0
- package/dist/common-lThIvJmZ.cjs.map +1 -0
- package/dist/dkg/index.cjs +245 -7
- package/dist/dkg/index.cjs.map +1 -0
- package/dist/dkg/index.d.cts +2 -2
- package/dist/dkg/index.d.mts +2 -2
- package/dist/dkg/index.mjs +238 -2
- package/dist/dkg/index.mjs.map +1 -0
- package/dist/finalize-BRgJK-Xv.cjs +402 -0
- package/dist/finalize-BRgJK-Xv.cjs.map +1 -0
- package/dist/finalize-BfLgzn8f.cjs +303 -0
- package/dist/finalize-BfLgzn8f.cjs.map +1 -0
- package/dist/finalize-CNTDj6aS.mjs +389 -0
- package/dist/finalize-CNTDj6aS.mjs.map +1 -0
- package/dist/finalize-EC3ikHQq.mjs +252 -0
- package/dist/finalize-EC3ikHQq.mjs.map +1 -0
- package/dist/finalize-IA01t_Qq.mjs +290 -0
- package/dist/finalize-IA01t_Qq.mjs.map +1 -0
- package/dist/finalize-UPyI1yb1.cjs +265 -0
- package/dist/finalize-UPyI1yb1.cjs.map +1 -0
- package/dist/frost/index.cjs +8 -9
- package/dist/frost/index.cjs.map +1 -1
- package/dist/frost/index.mjs +2 -3
- package/dist/frost/index.mjs.map +1 -1
- package/dist/{group-invite-Dz1Jmiky.d.cts → index-B3c-80VS.d.cts} +25 -2
- package/dist/index-B3c-80VS.d.cts.map +1 -0
- package/dist/{index-CcvTi5EA.d.cts → index-BgbSGpxn.d.mts} +102 -80
- package/dist/index-BgbSGpxn.d.mts.map +1 -0
- package/dist/{registry-impl-CE76sTXQ.d.cts → index-C8QeHNwa.d.cts} +46 -2
- package/dist/index-C8QeHNwa.d.cts.map +1 -0
- package/dist/{group-invite-Wk9CIbHL.d.mts → index-D3QTWkEm.d.mts} +25 -2
- package/dist/index-D3QTWkEm.d.mts.map +1 -0
- package/dist/{registry-impl-BETn_lEO.d.mts → index-DVbWyOs7.d.mts} +46 -2
- package/dist/index-DVbWyOs7.d.mts.map +1 -0
- package/dist/{index-DNCPeLNM.d.mts → index-F1iNEAJR.d.cts} +102 -80
- package/dist/index-F1iNEAJR.d.cts.map +1 -0
- package/dist/index.cjs +72 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/dist/invite-5277FQVT.cjs +274 -0
- package/dist/invite-5277FQVT.cjs.map +1 -0
- package/dist/invite-DUTcfTgX.cjs +109 -0
- package/dist/invite-DUTcfTgX.cjs.map +1 -0
- package/dist/invite-IU4n0dq2.mjs +96 -0
- package/dist/invite-IU4n0dq2.mjs.map +1 -0
- package/dist/invite-RU-OXTNS.mjs +219 -0
- package/dist/invite-RU-OXTNS.mjs.map +1 -0
- package/dist/parallel-D1R6ZGlY.cjs +318 -0
- package/dist/parallel-D1R6ZGlY.cjs.map +1 -0
- package/dist/parallel-D6zc6VW4.mjs +235 -0
- package/dist/parallel-D6zc6VW4.mjs.map +1 -0
- package/dist/proposed-participant-Dm1Eq6mX.cjs +141 -0
- package/dist/proposed-participant-Dm1Eq6mX.cjs.map +1 -0
- package/dist/proposed-participant-cWM7iUrO.mjs +129 -0
- package/dist/proposed-participant-cWM7iUrO.mjs.map +1 -0
- package/dist/receive-CAI-x4II.cjs +213 -0
- package/dist/receive-CAI-x4II.cjs.map +1 -0
- package/dist/receive-D2Nn68L7.mjs +188 -0
- package/dist/receive-D2Nn68L7.mjs.map +1 -0
- package/dist/receive-DA_KQEgk.mjs +177 -0
- package/dist/receive-DA_KQEgk.mjs.map +1 -0
- package/dist/receive-kZMsXhbK.cjs +190 -0
- package/dist/receive-kZMsXhbK.cjs.map +1 -0
- package/dist/registry/index.cjs +881 -13
- package/dist/registry/index.cjs.map +1 -0
- package/dist/registry/index.d.cts +1 -1
- package/dist/registry/index.d.mts +1 -1
- package/dist/registry/index.mjs +867 -2
- package/dist/registry/index.mjs.map +1 -0
- package/dist/{registry-FMU-ec5K.cjs → registry-9puTaRrD.cjs} +28 -31
- package/dist/registry-9puTaRrD.cjs.map +1 -0
- package/dist/{registry-BDnNV1Rk.mjs → registry-BpCwtrRt.mjs} +7 -10
- package/dist/{registry-BDnNV1Rk.mjs.map → registry-BpCwtrRt.mjs.map} +1 -1
- package/dist/round1-4Hyx8w0x.cjs +422 -0
- package/dist/round1-4Hyx8w0x.cjs.map +1 -0
- package/dist/round1-7v9LlE11.mjs +373 -0
- package/dist/round1-7v9LlE11.mjs.map +1 -0
- package/dist/round1-BHBjru1m.cjs +465 -0
- package/dist/round1-BHBjru1m.cjs.map +1 -0
- package/dist/round1-CMLKN2RR.mjs +195 -0
- package/dist/round1-CMLKN2RR.mjs.map +1 -0
- package/dist/round1-CWSXZx5R.cjs +208 -0
- package/dist/round1-CWSXZx5R.cjs.map +1 -0
- package/dist/round1-CcQCGlIT.mjs +208 -0
- package/dist/round1-CcQCGlIT.mjs.map +1 -0
- package/dist/round1-Cgm7j1kI.mjs +452 -0
- package/dist/round1-Cgm7j1kI.mjs.map +1 -0
- package/dist/round1-DQ0fnc1H.cjs +221 -0
- package/dist/round1-DQ0fnc1H.cjs.map +1 -0
- package/dist/round2-BWz9SQIi.cjs +305 -0
- package/dist/round2-BWz9SQIi.cjs.map +1 -0
- package/dist/round2-BkNRCXgS.mjs +292 -0
- package/dist/round2-BkNRCXgS.mjs.map +1 -0
- package/dist/round2-Bl2uK93U.mjs +450 -0
- package/dist/round2-Bl2uK93U.mjs.map +1 -0
- package/dist/round2-CdUT-AhH.cjs +499 -0
- package/dist/round2-CdUT-AhH.cjs.map +1 -0
- package/dist/round2-DOA3rnV-.mjs +280 -0
- package/dist/round2-DOA3rnV-.mjs.map +1 -0
- package/dist/round2-Dg24w-TU.mjs +397 -0
- package/dist/round2-Dg24w-TU.mjs.map +1 -0
- package/dist/round2-LylCa84n.cjs +293 -0
- package/dist/round2-LylCa84n.cjs.map +1 -0
- package/dist/round2-o2Q-GMbX.cjs +410 -0
- package/dist/round2-o2Q-GMbX.cjs.map +1 -0
- package/dist/storage-B-Gu68-O.cjs +79 -0
- package/dist/storage-B-Gu68-O.cjs.map +1 -0
- package/dist/storage-Bkkliz0K.mjs +74 -0
- package/dist/storage-Bkkliz0K.mjs.map +1 -0
- package/package.json +17 -17
- package/src/bin/frost.ts +849 -128
- package/src/cmd/common.ts +19 -1
- package/src/cmd/dkg/common.ts +97 -10
- package/src/cmd/dkg/coordinator/invite.ts +5 -2
- package/src/cmd/dkg/participant/finalize.ts +52 -18
- package/src/cmd/dkg/participant/round1.ts +39 -38
- package/src/cmd/dkg/participant/round2.ts +60 -26
- package/src/cmd/sign/coordinator/round2.ts +5 -1
- package/src/cmd/sign/participant/finalize.ts +6 -2
- package/src/cmd/sign/participant/receive.ts +5 -2
- package/src/dkg/group-invite.ts +12 -2
- package/src/dkg/proposed-participant.ts +33 -5
- package/src/frost/index.ts +1 -1
- package/src/registry/owner-record.ts +13 -2
- package/src/registry/participant-record.ts +36 -4
- package/src/registry/registry-impl.ts +74 -18
- package/dist/group-invite-CrbOabFL.cjs +0 -368
- package/dist/group-invite-CrbOabFL.cjs.map +0 -1
- package/dist/group-invite-Dz1Jmiky.d.cts.map +0 -1
- package/dist/group-invite-RPElq-fm.mjs +0 -338
- package/dist/group-invite-RPElq-fm.mjs.map +0 -1
- package/dist/group-invite-Wk9CIbHL.d.mts.map +0 -1
- package/dist/index-CcvTi5EA.d.cts.map +0 -1
- package/dist/index-DNCPeLNM.d.mts.map +0 -1
- package/dist/registry-FMU-ec5K.cjs.map +0 -1
- package/dist/registry-impl-BETn_lEO.d.mts.map +0 -1
- package/dist/registry-impl-C7w4awTv.cjs +0 -865
- package/dist/registry-impl-C7w4awTv.cjs.map +0 -1
- package/dist/registry-impl-CE76sTXQ.d.cts.map +0 -1
- package/dist/registry-impl-eYXVSPwM.mjs +0 -797
- package/dist/registry-impl-eYXVSPwM.mjs.map +0 -1
- package/dist/sign-2bOp18Fs.cjs +0 -4875
- package/dist/sign-2bOp18Fs.cjs.map +0 -1
- package/dist/sign-D8C3HJ4B.mjs +0 -4736
- package/dist/sign-D8C3HJ4B.mjs.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/cmd/busy.ts
|
|
2
|
+
/**
|
|
3
|
+
* Put an envelope to storage with a progress indicator.
|
|
4
|
+
*
|
|
5
|
+
* Port of `put_with_indicator()` from cmd/busy.rs.
|
|
6
|
+
*/
|
|
7
|
+
async function putWithIndicator(client, arid, envelope, message, verbose) {
|
|
8
|
+
if (verbose) console.log(`${message}...`);
|
|
9
|
+
await client.put(arid, envelope);
|
|
10
|
+
if (verbose) console.log(`${message}... done`);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get an envelope from storage with a progress indicator.
|
|
14
|
+
*
|
|
15
|
+
* Port of `get_with_indicator()` from cmd/busy.rs.
|
|
16
|
+
*/
|
|
17
|
+
async function getWithIndicator(client, arid, message, timeoutSeconds, verbose) {
|
|
18
|
+
if (verbose) console.log(`${message}...`);
|
|
19
|
+
const envelope = await client.get(arid, timeoutSeconds);
|
|
20
|
+
if (verbose) if (envelope) console.log(`${message}... found`);
|
|
21
|
+
else console.log(`${message}... not found`);
|
|
22
|
+
return envelope;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, "getWithIndicator", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function() {
|
|
28
|
+
return getWithIndicator;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "putWithIndicator", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function() {
|
|
34
|
+
return putWithIndicator;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=busy-EZU7EKr6.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"busy-EZU7EKr6.cjs","names":[],"sources":["../src/cmd/busy.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Progress indicator utilities.\n *\n * Port of cmd/busy.rs from frost-hubert-rust.\n *\n * @module\n */\n\nimport { type ARID } from \"@bcts/components\";\nimport { type Envelope } from \"@bcts/envelope\";\n\nimport { type StorageClient } from \"./storage.js\";\n\n/**\n * Put an envelope to storage with a progress indicator.\n *\n * Port of `put_with_indicator()` from cmd/busy.rs.\n */\nexport async function putWithIndicator(\n client: StorageClient,\n arid: ARID,\n envelope: Envelope,\n message: string,\n verbose: boolean,\n): Promise<void> {\n if (verbose) {\n console.log(`${message}...`);\n }\n\n await client.put(arid, envelope);\n\n if (verbose) {\n console.log(`${message}... done`);\n }\n}\n\n/**\n * Get an envelope from storage with a progress indicator.\n *\n * Port of `get_with_indicator()` from cmd/busy.rs.\n */\nexport async function getWithIndicator(\n client: StorageClient,\n arid: ARID,\n message: string,\n timeoutSeconds: number | undefined,\n verbose: boolean,\n): Promise<Envelope | undefined> {\n if (verbose) {\n console.log(`${message}...`);\n }\n\n const envelope = await client.get(arid, timeoutSeconds);\n\n if (verbose) {\n if (envelope) {\n console.log(`${message}... found`);\n } else {\n console.log(`${message}... not found`);\n }\n }\n\n return envelope;\n}\n"],"mappings":";;;;;;AAsBA,eAAsB,iBACpB,QACA,MACA,UACA,SACA,SACe;AACf,KAAI,QACF,SAAQ,IAAI,GAAG,QAAQ,KAAK;AAG9B,OAAM,OAAO,IAAI,MAAM,SAAS;AAEhC,KAAI,QACF,SAAQ,IAAI,GAAG,QAAQ,UAAU;;;;;;;AASrC,eAAsB,iBACpB,QACA,MACA,SACA,gBACA,SAC+B;AAC/B,KAAI,QACF,SAAQ,IAAI,GAAG,QAAQ,KAAK;CAG9B,MAAM,WAAW,MAAM,OAAO,IAAI,MAAM,eAAe;AAEvD,KAAI,QACF,KAAI,SACF,SAAQ,IAAI,GAAG,QAAQ,WAAW;KAElC,SAAQ,IAAI,GAAG,QAAQ,eAAe;AAI1C,QAAO"}
|
|
@@ -7,28 +7,20 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __exportAll = (all, no_symbols) => {
|
|
9
9
|
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (!no_symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
15
|
return target;
|
|
20
16
|
};
|
|
21
17
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
32
24
|
}
|
|
33
25
|
return to;
|
|
34
26
|
};
|
|
@@ -36,18 +28,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
28
|
value: mod,
|
|
37
29
|
enumerable: true
|
|
38
30
|
}) : target, mod));
|
|
39
|
-
|
|
40
31
|
//#endregion
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return __exportAll;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "__toESM", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return __toESM;
|
|
42
|
+
}
|
|
47
43
|
});
|
|
48
|
-
Object.defineProperty(exports, '__toESM', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return __toESM;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __exportAll = (all, no_symbols) => {
|
|
6
5
|
let target = {};
|
|
7
|
-
for (var name in all) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
if (!no_symbols) {
|
|
14
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
-
}
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
11
|
return target;
|
|
17
12
|
};
|
|
18
13
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
19
|
-
|
|
20
14
|
//#endregion
|
|
21
|
-
export { __require as n, __exportAll as t };
|
|
15
|
+
export { __require as n, __exportAll as t };
|
package/dist/cmd/index.cjs
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
require(
|
|
3
|
-
require(
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_common = require("../common-lKP5EzHy.cjs");
|
|
3
|
+
const require_busy = require("../busy-EZU7EKr6.cjs");
|
|
4
|
+
const require_parallel = require("../parallel-D1R6ZGlY.cjs");
|
|
5
|
+
const require_storage = require("../storage-B-Gu68-O.cjs");
|
|
6
|
+
const require_cmd = require("../cmd-Bw9_i2_f.cjs");
|
|
7
|
+
const require_registry = require("../registry-9puTaRrD.cjs");
|
|
8
|
+
exports.CollectionResult = require_parallel.CollectionResult;
|
|
9
|
+
exports.DEFAULT_TIMEOUT_SECONDS = require_parallel.DEFAULT_TIMEOUT_SECONDS;
|
|
10
|
+
exports.Direction = require_parallel.Direction;
|
|
11
|
+
exports.buildFetchRequests = require_parallel.buildFetchRequests;
|
|
12
|
+
exports.checkAridExists = require_cmd.checkAridExists;
|
|
13
|
+
exports.createStorageClient = require_storage.createStorageClient;
|
|
14
|
+
exports.directionEmoji = require_parallel.directionEmoji;
|
|
15
|
+
Object.defineProperty(exports, "dkg", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return require_cmd.dkg_exports;
|
|
19
|
+
}
|
|
19
20
|
});
|
|
20
|
-
exports.emptyCollectionResult =
|
|
21
|
-
exports.fetchStatusError =
|
|
22
|
-
exports.fetchStatusPending =
|
|
23
|
-
exports.fetchStatusRejected =
|
|
24
|
-
exports.fetchStatusSuccess =
|
|
25
|
-
exports.fetchStatusTimeout =
|
|
26
|
-
exports.getWithIndicator =
|
|
27
|
-
exports.groupStateDir =
|
|
28
|
-
exports.isVerbose =
|
|
29
|
-
exports.parallelFetch =
|
|
30
|
-
exports.parallelFetchConfigWithTimeout =
|
|
31
|
-
exports.parallelSend =
|
|
32
|
-
exports.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
exports.emptyCollectionResult = require_parallel.emptyCollectionResult;
|
|
22
|
+
exports.fetchStatusError = require_parallel.fetchStatusError;
|
|
23
|
+
exports.fetchStatusPending = require_parallel.fetchStatusPending;
|
|
24
|
+
exports.fetchStatusRejected = require_parallel.fetchStatusRejected;
|
|
25
|
+
exports.fetchStatusSuccess = require_parallel.fetchStatusSuccess;
|
|
26
|
+
exports.fetchStatusTimeout = require_parallel.fetchStatusTimeout;
|
|
27
|
+
exports.getWithIndicator = require_busy.getWithIndicator;
|
|
28
|
+
exports.groupStateDir = require_common.groupStateDir;
|
|
29
|
+
exports.isVerbose = require_common.isVerbose;
|
|
30
|
+
exports.parallelFetch = require_parallel.parallelFetch;
|
|
31
|
+
exports.parallelFetchConfigWithTimeout = require_parallel.parallelFetchConfigWithTimeout;
|
|
32
|
+
exports.parallelSend = require_parallel.parallelSend;
|
|
33
|
+
exports.parseAridUr = require_common.parseAridUr;
|
|
34
|
+
exports.putWithIndicator = require_busy.putWithIndicator;
|
|
35
|
+
Object.defineProperty(exports, "registry", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function() {
|
|
38
|
+
return require_registry.registry_exports;
|
|
39
|
+
}
|
|
38
40
|
});
|
|
39
|
-
exports.setVerbose =
|
|
40
|
-
Object.defineProperty(exports,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
41
|
+
exports.setVerbose = require_common.setVerbose;
|
|
42
|
+
Object.defineProperty(exports, "sign", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return require_cmd.sign_exports;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
exports.signingKeyFromVerifying = require_common.signingKeyFromVerifying;
|
package/dist/cmd/index.d.cts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
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-
|
|
2
|
-
|
|
3
|
-
import "../group-invite-Dz1Jmiky.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 };
|
|
1
|
+
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$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-F1iNEAJR.cjs";
|
|
2
|
+
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, parseAridUr, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign, signingKeyFromVerifying };
|
package/dist/cmd/index.d.mts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
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-
|
|
2
|
-
|
|
3
|
-
import "../group-invite-Wk9CIbHL.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 };
|
|
1
|
+
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$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-BgbSGpxn.mjs";
|
|
2
|
+
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, parseAridUr, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign, signingKeyFromVerifying };
|
package/dist/cmd/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { c as parseAridUr, h as signingKeyFromVerifying, n as isVerbose, r as setVerbose, t as groupStateDir } from "../common-CvH6dFvQ.mjs";
|
|
2
|
+
import { n as putWithIndicator, t as getWithIndicator } from "../busy-DkM2jAIZ.mjs";
|
|
3
|
+
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-D6zc6VW4.mjs";
|
|
4
|
+
import { t as createStorageClient } from "../storage-Bkkliz0K.mjs";
|
|
5
|
+
import { n as dkg_exports, r as checkAridExists, t as sign_exports } from "../cmd-CS1uJtuD.mjs";
|
|
6
|
+
import { t as registry_exports } from "../registry-BpCwtrRt.mjs";
|
|
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, parseAridUr, putWithIndicator, registry_exports as registry, setVerbose, sign_exports as sign, signingKeyFromVerifying };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CZWwpsFl.cjs");
|
|
2
|
+
const require_common = require("./common-lKP5EzHy.cjs");
|
|
3
|
+
require("./storage-B-Gu68-O.cjs");
|
|
4
|
+
const require_invite = require("./invite-DUTcfTgX.cjs");
|
|
5
|
+
const require_round1 = require("./round1-BHBjru1m.cjs");
|
|
6
|
+
const require_round2 = require("./round2-CdUT-AhH.cjs");
|
|
7
|
+
const require_finalize = require("./finalize-BfLgzn8f.cjs");
|
|
8
|
+
const require_receive = require("./receive-CAI-x4II.cjs");
|
|
9
|
+
const require_round1$1 = require("./round1-CWSXZx5R.cjs");
|
|
10
|
+
const require_round2$1 = require("./round2-LylCa84n.cjs");
|
|
11
|
+
const require_finalize$1 = require("./finalize-UPyI1yb1.cjs");
|
|
12
|
+
const require_common$1 = require("./common-lThIvJmZ.cjs");
|
|
13
|
+
const require_invite$1 = require("./invite-5277FQVT.cjs");
|
|
14
|
+
const require_round1$2 = require("./round1-4Hyx8w0x.cjs");
|
|
15
|
+
const require_round2$2 = require("./round2-o2Q-GMbX.cjs");
|
|
16
|
+
const require_receive$1 = require("./receive-kZMsXhbK.cjs");
|
|
17
|
+
const require_round1$3 = require("./round1-DQ0fnc1H.cjs");
|
|
18
|
+
const require_round2$3 = require("./round2-BWz9SQIi.cjs");
|
|
19
|
+
const require_finalize$2 = require("./finalize-BRgJK-Xv.cjs");
|
|
20
|
+
require("./registry-9puTaRrD.cjs");
|
|
21
|
+
//#region src/cmd/check.ts
|
|
22
|
+
/**
|
|
23
|
+
* Check if an ARID exists in storage.
|
|
24
|
+
*
|
|
25
|
+
* Port of check functionality from cmd/check.rs.
|
|
26
|
+
*/
|
|
27
|
+
async function checkAridExists(client, arid) {
|
|
28
|
+
return client.exists(arid);
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/cmd/dkg/coordinator/index.ts
|
|
32
|
+
var coordinator_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
33
|
+
buildFinalizeRequestForParticipant: () => require_round2.buildFinalizeRequestForParticipant,
|
|
34
|
+
collectRound2Parallel: () => require_round2.collectRound2Parallel,
|
|
35
|
+
dispatchFinalizeRequestsParallel: () => require_round2.dispatchFinalizeRequestsParallel,
|
|
36
|
+
finalize: () => require_finalize.finalize,
|
|
37
|
+
invite: () => require_invite.invite,
|
|
38
|
+
persistRound2Packages: () => require_round2.persistRound2Packages,
|
|
39
|
+
round1: () => require_round1.round1,
|
|
40
|
+
round2: () => require_round2.round2,
|
|
41
|
+
updatePendingForFinalizeFromCollection: () => require_round2.updatePendingForFinalizeFromCollection,
|
|
42
|
+
validateAndExtractRound2Response: () => require_round2.validateAndExtractRound2Response
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/cmd/dkg/participant/index.ts
|
|
46
|
+
var participant_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
47
|
+
decodeInviteDetails: () => require_receive.decodeInviteDetails,
|
|
48
|
+
finalize: () => require_finalize$1.finalize,
|
|
49
|
+
receive: () => require_receive.receive,
|
|
50
|
+
resolveInviteEnvelope: () => require_receive.resolveInviteEnvelope,
|
|
51
|
+
round1: () => require_round1$1.round1,
|
|
52
|
+
round2: () => require_round2$1.round2
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/cmd/dkg/index.ts
|
|
56
|
+
var dkg_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
57
|
+
buildGroupParticipants: () => require_common.buildGroupParticipants,
|
|
58
|
+
coordinator: () => coordinator_exports$1,
|
|
59
|
+
dkgStateDir: () => require_common.dkgStateDir,
|
|
60
|
+
formatNameWithOwnerMarker: () => require_common.formatNameWithOwnerMarker,
|
|
61
|
+
groupParticipantFromRegistry: () => require_common.groupParticipantFromRegistry,
|
|
62
|
+
groupStateDir: () => require_common.groupStateDir,
|
|
63
|
+
parseAridUr: () => require_common.parseAridUr,
|
|
64
|
+
parseEnvelopeUr: () => require_common.parseEnvelopeUr,
|
|
65
|
+
participant: () => participant_exports$1,
|
|
66
|
+
participantNamesFromRegistry: () => require_common.participantNamesFromRegistry,
|
|
67
|
+
resolveOwnerXidDocument: () => require_common.resolveOwnerXidDocument,
|
|
68
|
+
resolveParticipants: () => require_common.resolveParticipants,
|
|
69
|
+
resolveSender: () => require_common.resolveSender,
|
|
70
|
+
resolveSenderName: () => require_common.resolveSenderName,
|
|
71
|
+
signingKeyFromVerifying: () => require_common.signingKeyFromVerifying
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/cmd/sign/coordinator/index.ts
|
|
75
|
+
var coordinator_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
76
|
+
buildSessionStateJson: () => require_invite$1.buildSessionStateJson,
|
|
77
|
+
buildShareRequestForParticipant: () => require_round1$2.buildShareRequestForParticipant,
|
|
78
|
+
buildSignInviteRequest: () => require_invite$1.buildSignInviteRequest,
|
|
79
|
+
collectCommitmentsParallel: () => require_round1$2.collectCommitmentsParallel,
|
|
80
|
+
createSessionArids: () => require_invite$1.createSessionArids,
|
|
81
|
+
dispatchShareRequestsParallel: () => require_round1$2.dispatchShareRequestsParallel,
|
|
82
|
+
gatherRecipientDocuments: () => require_invite$1.gatherRecipientDocuments,
|
|
83
|
+
invite: () => require_invite$1.invite,
|
|
84
|
+
loadEnvelopeFromPath: () => require_invite$1.loadEnvelopeFromPath,
|
|
85
|
+
persistCommitments: () => require_round1$2.persistCommitments,
|
|
86
|
+
persistSessionState: () => require_invite$1.persistSessionState,
|
|
87
|
+
round1: () => require_round1$2.round1,
|
|
88
|
+
round2: () => require_round2$2.round2,
|
|
89
|
+
updatePendingForShare: () => require_round1$2.updatePendingForShare,
|
|
90
|
+
validateAndExtractCommitResponse: () => require_round1$2.validateAndExtractCommitResponse,
|
|
91
|
+
validateCoordinator: () => require_invite$1.validateCoordinator
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/cmd/sign/participant/index.ts
|
|
95
|
+
var participant_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
96
|
+
finalize: () => require_finalize$2.finalize,
|
|
97
|
+
receive: () => require_receive$1.receive,
|
|
98
|
+
round1: () => require_round1$3.round1,
|
|
99
|
+
round2: () => require_round2$3.round2
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/cmd/sign/index.ts
|
|
103
|
+
var sign_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
104
|
+
SignFinalizeContent: () => require_common$1.SignFinalizeContent,
|
|
105
|
+
coordinator: () => coordinator_exports,
|
|
106
|
+
participant: () => participant_exports,
|
|
107
|
+
signingStateDir: () => require_common$1.signingStateDir,
|
|
108
|
+
signingStateDirForGroup: () => require_common$1.signingStateDirForGroup
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
Object.defineProperty(exports, "checkAridExists", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function() {
|
|
114
|
+
return checkAridExists;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "dkg_exports", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function() {
|
|
120
|
+
return dkg_exports;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "sign_exports", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function() {
|
|
126
|
+
return sign_exports;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
//# sourceMappingURL=cmd-Bw9_i2_f.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd-Bw9_i2_f.cjs","names":[],"sources":["../src/cmd/check.ts","../src/cmd/dkg/coordinator/index.ts","../src/cmd/dkg/participant/index.ts","../src/cmd/dkg/index.ts","../src/cmd/sign/coordinator/index.ts","../src/cmd/sign/participant/index.ts","../src/cmd/sign/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Check command utilities.\n *\n * Port of cmd/check.rs from frost-hubert-rust.\n *\n * @module\n */\n\nimport { type ARID } from \"@bcts/components\";\n\nimport { type StorageClient } from \"./storage.js\";\n\n/**\n * Check if an ARID exists in storage.\n *\n * Port of check functionality from cmd/check.rs.\n */\nexport async function checkAridExists(client: StorageClient, arid: ARID): Promise<boolean> {\n return client.exists(arid);\n}\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG coordinator commands.\n *\n * Port of cmd/dkg/coordinator/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./invite.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG participant commands.\n *\n * Port of cmd/dkg/participant/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./receive.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG command module.\n *\n * Port of cmd/dkg/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./common.js\";\nexport * as coordinator from \"./coordinator/index.js\";\nexport * as participant from \"./participant/index.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign coordinator commands.\n *\n * Port of cmd/sign/coordinator/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./invite.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign participant commands.\n *\n * Port of cmd/sign/participant/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./receive.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign command module.\n *\n * Port of cmd/sign/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./common.js\";\nexport * as coordinator from \"./coordinator/index.js\";\nexport * as participant from \"./participant/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,eAAsB,gBAAgB,QAAuB,MAA8B;AACzF,QAAO,OAAO,OAAO,KAAK"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-CjcI7cDX.mjs";
|
|
2
|
+
import { a as dkgStateDir, c as parseAridUr, d as resolveOwnerXidDocument, f as resolveParticipants, h as signingKeyFromVerifying, i as buildGroupParticipants, l as parseEnvelopeUr, m as resolveSenderName, o as formatNameWithOwnerMarker, p as resolveSender, s as groupParticipantFromRegistry, t as groupStateDir, u as participantNamesFromRegistry } from "./common-CvH6dFvQ.mjs";
|
|
3
|
+
import "./storage-Bkkliz0K.mjs";
|
|
4
|
+
import { t as invite } from "./invite-IU4n0dq2.mjs";
|
|
5
|
+
import { t as round1 } from "./round1-Cgm7j1kI.mjs";
|
|
6
|
+
import { a as round2, c as validateAndExtractRound2Response, i as persistRound2Packages, n as collectRound2Parallel, r as dispatchFinalizeRequestsParallel, s as updatePendingForFinalizeFromCollection, t as buildFinalizeRequestForParticipant } from "./round2-Bl2uK93U.mjs";
|
|
7
|
+
import { t as finalize } from "./finalize-IA01t_Qq.mjs";
|
|
8
|
+
import { i as resolveInviteEnvelope, n as receive, t as decodeInviteDetails } from "./receive-D2Nn68L7.mjs";
|
|
9
|
+
import { t as round1$1 } from "./round1-CMLKN2RR.mjs";
|
|
10
|
+
import { t as round2$1 } from "./round2-DOA3rnV-.mjs";
|
|
11
|
+
import { t as finalize$1 } from "./finalize-EC3ikHQq.mjs";
|
|
12
|
+
import { n as signingStateDir, r as signingStateDirForGroup, t as SignFinalizeContent } from "./common-DUWvtc08.mjs";
|
|
13
|
+
import { a as invite$1, c as persistSessionState, i as gatherRecipientDocuments, l as validateCoordinator, n as buildSignInviteRequest, r as createSessionArids, s as loadEnvelopeFromPath, t as buildSessionStateJson } from "./invite-RU-OXTNS.mjs";
|
|
14
|
+
import { a as round1$2, c as validateAndExtractCommitResponse, i as persistCommitments, n as collectCommitmentsParallel, r as dispatchShareRequestsParallel, s as updatePendingForShare, t as buildShareRequestForParticipant } from "./round1-7v9LlE11.mjs";
|
|
15
|
+
import { t as round2$2 } from "./round2-Dg24w-TU.mjs";
|
|
16
|
+
import { t as receive$1 } from "./receive-DA_KQEgk.mjs";
|
|
17
|
+
import { t as round1$3 } from "./round1-CcQCGlIT.mjs";
|
|
18
|
+
import { t as round2$3 } from "./round2-BkNRCXgS.mjs";
|
|
19
|
+
import { t as finalize$2 } from "./finalize-CNTDj6aS.mjs";
|
|
20
|
+
import "./registry-BpCwtrRt.mjs";
|
|
21
|
+
//#region src/cmd/check.ts
|
|
22
|
+
/**
|
|
23
|
+
* Check if an ARID exists in storage.
|
|
24
|
+
*
|
|
25
|
+
* Port of check functionality from cmd/check.rs.
|
|
26
|
+
*/
|
|
27
|
+
async function checkAridExists(client, arid) {
|
|
28
|
+
return client.exists(arid);
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/cmd/dkg/coordinator/index.ts
|
|
32
|
+
var coordinator_exports$1 = /* @__PURE__ */ __exportAll({
|
|
33
|
+
buildFinalizeRequestForParticipant: () => buildFinalizeRequestForParticipant,
|
|
34
|
+
collectRound2Parallel: () => collectRound2Parallel,
|
|
35
|
+
dispatchFinalizeRequestsParallel: () => dispatchFinalizeRequestsParallel,
|
|
36
|
+
finalize: () => finalize,
|
|
37
|
+
invite: () => invite,
|
|
38
|
+
persistRound2Packages: () => persistRound2Packages,
|
|
39
|
+
round1: () => round1,
|
|
40
|
+
round2: () => round2,
|
|
41
|
+
updatePendingForFinalizeFromCollection: () => updatePendingForFinalizeFromCollection,
|
|
42
|
+
validateAndExtractRound2Response: () => validateAndExtractRound2Response
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/cmd/dkg/participant/index.ts
|
|
46
|
+
var participant_exports$1 = /* @__PURE__ */ __exportAll({
|
|
47
|
+
decodeInviteDetails: () => decodeInviteDetails,
|
|
48
|
+
finalize: () => finalize$1,
|
|
49
|
+
receive: () => receive,
|
|
50
|
+
resolveInviteEnvelope: () => resolveInviteEnvelope,
|
|
51
|
+
round1: () => round1$1,
|
|
52
|
+
round2: () => round2$1
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/cmd/dkg/index.ts
|
|
56
|
+
var dkg_exports = /* @__PURE__ */ __exportAll({
|
|
57
|
+
buildGroupParticipants: () => buildGroupParticipants,
|
|
58
|
+
coordinator: () => coordinator_exports$1,
|
|
59
|
+
dkgStateDir: () => dkgStateDir,
|
|
60
|
+
formatNameWithOwnerMarker: () => formatNameWithOwnerMarker,
|
|
61
|
+
groupParticipantFromRegistry: () => groupParticipantFromRegistry,
|
|
62
|
+
groupStateDir: () => groupStateDir,
|
|
63
|
+
parseAridUr: () => parseAridUr,
|
|
64
|
+
parseEnvelopeUr: () => parseEnvelopeUr,
|
|
65
|
+
participant: () => participant_exports$1,
|
|
66
|
+
participantNamesFromRegistry: () => participantNamesFromRegistry,
|
|
67
|
+
resolveOwnerXidDocument: () => resolveOwnerXidDocument,
|
|
68
|
+
resolveParticipants: () => resolveParticipants,
|
|
69
|
+
resolveSender: () => resolveSender,
|
|
70
|
+
resolveSenderName: () => resolveSenderName,
|
|
71
|
+
signingKeyFromVerifying: () => signingKeyFromVerifying
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/cmd/sign/coordinator/index.ts
|
|
75
|
+
var coordinator_exports = /* @__PURE__ */ __exportAll({
|
|
76
|
+
buildSessionStateJson: () => buildSessionStateJson,
|
|
77
|
+
buildShareRequestForParticipant: () => buildShareRequestForParticipant,
|
|
78
|
+
buildSignInviteRequest: () => buildSignInviteRequest,
|
|
79
|
+
collectCommitmentsParallel: () => collectCommitmentsParallel,
|
|
80
|
+
createSessionArids: () => createSessionArids,
|
|
81
|
+
dispatchShareRequestsParallel: () => dispatchShareRequestsParallel,
|
|
82
|
+
gatherRecipientDocuments: () => gatherRecipientDocuments,
|
|
83
|
+
invite: () => invite$1,
|
|
84
|
+
loadEnvelopeFromPath: () => loadEnvelopeFromPath,
|
|
85
|
+
persistCommitments: () => persistCommitments,
|
|
86
|
+
persistSessionState: () => persistSessionState,
|
|
87
|
+
round1: () => round1$2,
|
|
88
|
+
round2: () => round2$2,
|
|
89
|
+
updatePendingForShare: () => updatePendingForShare,
|
|
90
|
+
validateAndExtractCommitResponse: () => validateAndExtractCommitResponse,
|
|
91
|
+
validateCoordinator: () => validateCoordinator
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/cmd/sign/participant/index.ts
|
|
95
|
+
var participant_exports = /* @__PURE__ */ __exportAll({
|
|
96
|
+
finalize: () => finalize$2,
|
|
97
|
+
receive: () => receive$1,
|
|
98
|
+
round1: () => round1$3,
|
|
99
|
+
round2: () => round2$3
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/cmd/sign/index.ts
|
|
103
|
+
var sign_exports = /* @__PURE__ */ __exportAll({
|
|
104
|
+
SignFinalizeContent: () => SignFinalizeContent,
|
|
105
|
+
coordinator: () => coordinator_exports,
|
|
106
|
+
participant: () => participant_exports,
|
|
107
|
+
signingStateDir: () => signingStateDir,
|
|
108
|
+
signingStateDirForGroup: () => signingStateDirForGroup
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { dkg_exports as n, checkAridExists as r, sign_exports as t };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=cmd-CS1uJtuD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd-CS1uJtuD.mjs","names":[],"sources":["../src/cmd/check.ts","../src/cmd/dkg/coordinator/index.ts","../src/cmd/dkg/participant/index.ts","../src/cmd/dkg/index.ts","../src/cmd/sign/coordinator/index.ts","../src/cmd/sign/participant/index.ts","../src/cmd/sign/index.ts"],"sourcesContent":["/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Check command utilities.\n *\n * Port of cmd/check.rs from frost-hubert-rust.\n *\n * @module\n */\n\nimport { type ARID } from \"@bcts/components\";\n\nimport { type StorageClient } from \"./storage.js\";\n\n/**\n * Check if an ARID exists in storage.\n *\n * Port of check functionality from cmd/check.rs.\n */\nexport async function checkAridExists(client: StorageClient, arid: ARID): Promise<boolean> {\n return client.exists(arid);\n}\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG coordinator commands.\n *\n * Port of cmd/dkg/coordinator/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./invite.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG participant commands.\n *\n * Port of cmd/dkg/participant/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./receive.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * DKG command module.\n *\n * Port of cmd/dkg/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./common.js\";\nexport * as coordinator from \"./coordinator/index.js\";\nexport * as participant from \"./participant/index.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign coordinator commands.\n *\n * Port of cmd/sign/coordinator/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./invite.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign participant commands.\n *\n * Port of cmd/sign/participant/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./receive.js\";\nexport * from \"./round1.js\";\nexport * from \"./round2.js\";\nexport * from \"./finalize.js\";\n","/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n *\n * Sign command module.\n *\n * Port of cmd/sign/mod.rs from frost-hubert-rust.\n *\n * @module\n */\n\nexport * from \"./common.js\";\nexport * as coordinator from \"./coordinator/index.js\";\nexport * as participant from \"./participant/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,eAAsB,gBAAgB,QAAuB,MAA8B;AACzF,QAAO,OAAO,OAAO,KAAK"}
|