@bcts/frost-hubert 1.0.0-alpha.19 → 1.0.0-alpha.21
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/LICENSE +2 -1
- package/dist/bin/frost.cjs +7 -2
- package/dist/bin/frost.cjs.map +1 -1
- package/dist/bin/frost.mjs +7 -2
- package/dist/bin/frost.mjs.map +1 -1
- package/dist/cmd/index.cjs +4 -4
- package/dist/cmd/index.d.cts +1 -1
- package/dist/cmd/index.d.mts +1 -1
- package/dist/cmd/index.mjs +4 -4
- package/dist/dkg/index.cjs +1 -1
- package/dist/dkg/index.mjs +1 -1
- package/dist/frost/index.cjs +4 -0
- package/dist/frost/index.cjs.map +1 -1
- package/dist/frost/index.d.cts.map +1 -1
- package/dist/frost/index.d.mts.map +1 -1
- package/dist/frost/index.mjs +4 -0
- package/dist/frost/index.mjs.map +1 -1
- package/dist/{group-invite-CgDh9dmd.cjs → group-invite-CrbOabFL.cjs} +5 -1
- package/dist/group-invite-CrbOabFL.cjs.map +1 -0
- package/dist/group-invite-Dz1Jmiky.d.cts.map +1 -1
- package/dist/{group-invite-Dx9z9mIL.mjs → group-invite-RPElq-fm.mjs} +5 -1
- package/dist/{group-invite-CgDh9dmd.cjs.map → group-invite-RPElq-fm.mjs.map} +1 -1
- package/dist/group-invite-Wk9CIbHL.d.mts.map +1 -1
- package/dist/{index-Dfa7J_Uq.d.cts → index-CcvTi5EA.d.cts} +5 -1
- package/dist/index-CcvTi5EA.d.cts.map +1 -0
- package/dist/{index-C1wKERLw.d.mts → index-DNCPeLNM.d.mts} +5 -1
- package/dist/index-DNCPeLNM.d.mts.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/registry/index.cjs +1 -1
- package/dist/registry/index.mjs +1 -1
- package/dist/{registry-l7VlItwO.mjs → registry-BDnNV1Rk.mjs} +14 -2
- package/dist/registry-BDnNV1Rk.mjs.map +1 -0
- package/dist/{registry-CmsVWFv9.cjs → registry-FMU-ec5K.cjs} +14 -2
- package/dist/registry-FMU-ec5K.cjs.map +1 -0
- package/dist/registry-impl-BETn_lEO.d.mts.map +1 -1
- package/dist/{registry-impl-jitwNQUo.cjs → registry-impl-C7w4awTv.cjs} +9 -1
- package/dist/registry-impl-C7w4awTv.cjs.map +1 -0
- package/dist/registry-impl-CE76sTXQ.d.cts.map +1 -1
- package/dist/{registry-impl-CRr0oOyI.mjs → registry-impl-eYXVSPwM.mjs} +9 -1
- package/dist/registry-impl-eYXVSPwM.mjs.map +1 -0
- package/dist/{sign-BTY-iAN6.cjs → sign-2bOp18Fs.cjs} +79 -7
- package/dist/sign-2bOp18Fs.cjs.map +1 -0
- package/dist/{sign-NQ8KssL7.mjs → sign-D8C3HJ4B.mjs} +79 -7
- package/dist/sign-D8C3HJ4B.mjs.map +1 -0
- package/package.json +17 -28
- package/src/bin/frost.ts +5 -0
- package/src/cmd/busy.ts +4 -0
- package/src/cmd/check.ts +4 -0
- package/src/cmd/common.ts +4 -0
- package/src/cmd/dkg/common.ts +4 -0
- package/src/cmd/dkg/coordinator/finalize.ts +7 -2
- package/src/cmd/dkg/coordinator/index.ts +4 -0
- package/src/cmd/dkg/coordinator/invite.ts +4 -0
- package/src/cmd/dkg/coordinator/round1.ts +4 -0
- package/src/cmd/dkg/coordinator/round2.ts +4 -0
- package/src/cmd/dkg/index.ts +4 -0
- package/src/cmd/dkg/participant/finalize.ts +4 -0
- package/src/cmd/dkg/participant/index.ts +4 -0
- package/src/cmd/dkg/participant/receive.ts +4 -0
- package/src/cmd/dkg/participant/round1.ts +4 -0
- package/src/cmd/dkg/participant/round2.ts +4 -0
- package/src/cmd/index.ts +4 -0
- package/src/cmd/parallel.ts +4 -0
- package/src/cmd/registry/index.ts +4 -0
- package/src/cmd/registry/owner/index.ts +4 -0
- package/src/cmd/registry/owner/set.ts +4 -0
- package/src/cmd/registry/participant/add.ts +4 -0
- package/src/cmd/registry/participant/index.ts +4 -0
- package/src/cmd/sign/common.ts +4 -0
- package/src/cmd/sign/coordinator/index.ts +4 -0
- package/src/cmd/sign/coordinator/invite.ts +5 -1
- package/src/cmd/sign/coordinator/round1.ts +4 -0
- package/src/cmd/sign/coordinator/round2.ts +4 -0
- package/src/cmd/sign/index.ts +4 -0
- package/src/cmd/sign/participant/finalize.ts +4 -0
- package/src/cmd/sign/participant/index.ts +4 -0
- package/src/cmd/sign/participant/receive.ts +4 -0
- package/src/cmd/sign/participant/round1.ts +4 -0
- package/src/cmd/sign/participant/round2.ts +4 -0
- package/src/cmd/storage.ts +4 -0
- package/src/dkg/group-invite.ts +4 -0
- package/src/dkg/index.ts +4 -0
- package/src/dkg/proposed-participant.ts +4 -0
- package/src/frost/index.ts +4 -0
- package/src/index.ts +4 -0
- package/src/registry/group-record.ts +4 -0
- package/src/registry/index.ts +4 -0
- package/src/registry/owner-record.ts +4 -0
- package/src/registry/participant-record.ts +4 -0
- package/src/registry/registry-impl.ts +4 -0
- package/dist/group-invite-Dx9z9mIL.mjs.map +0 -1
- package/dist/index-C1wKERLw.d.mts.map +0 -1
- package/dist/index-Dfa7J_Uq.d.cts.map +0 -1
- package/dist/registry-CmsVWFv9.cjs.map +0 -1
- package/dist/registry-impl-CRr0oOyI.mjs.map +0 -1
- package/dist/registry-impl-jitwNQUo.cjs.map +0 -1
- package/dist/registry-l7VlItwO.mjs.map +0 -1
- package/dist/sign-BTY-iAN6.cjs.map +0 -1
- package/dist/sign-NQ8KssL7.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __require, t as __exportAll } from "./chunk-ClPoSABd.mjs";
|
|
2
|
-
import { n as DkgInvite, t as DkgInvitation } from "./group-invite-
|
|
3
|
-
import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, u as GroupRecord } from "./registry-impl-
|
|
2
|
+
import { n as DkgInvite, t as DkgInvitation } from "./group-invite-RPElq-fm.mjs";
|
|
3
|
+
import { a as resolveRegistryPath, c as ContributionPaths, d as PendingRequests, i as Registry, l as GroupParticipant, u as GroupRecord } from "./registry-impl-eYXVSPwM.mjs";
|
|
4
4
|
import { aggregateSignatures, bytesToHex, createRng, createSigningPackage, deserializeKeyPackage, deserializePublicKeyPackage, deserializeSignatureShare, deserializeSigningCommitments, dkgPart1, dkgPart2, dkgPart3, hexToBytes as hexToBytes$1, identifierFromU16, identifierToHex, serializeDkgRound2Package, serializeKeyPackage, serializePublicKeyPackage, serializeSignature, serializeSignatureShare, serializeSigningCommitments, serializeSigningNonces, signingRound1, signingRound2 } from "./frost/index.mjs";
|
|
5
5
|
import { ARID, JSON as JSON$1, Signature, XID } from "@bcts/components";
|
|
6
6
|
import { CborDate } from "@bcts/dcbor";
|
|
@@ -15,6 +15,10 @@ import { CoefficientCommitment, Nonce, SigningNonces, VerifiableSecretSharingCom
|
|
|
15
15
|
|
|
16
16
|
//#region src/cmd/common.ts
|
|
17
17
|
/**
|
|
18
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
19
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
20
|
+
*
|
|
21
|
+
*
|
|
18
22
|
* Common utilities for commands.
|
|
19
23
|
*
|
|
20
24
|
* Port of cmd/common.rs from frost-hubert-rust.
|
|
@@ -393,6 +397,10 @@ async function checkAridExists(client, arid) {
|
|
|
393
397
|
//#endregion
|
|
394
398
|
//#region src/cmd/dkg/common.ts
|
|
395
399
|
/**
|
|
400
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
401
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
402
|
+
*
|
|
403
|
+
*
|
|
396
404
|
* Common utilities for DKG commands.
|
|
397
405
|
*
|
|
398
406
|
* Port of cmd/dkg/common.rs from frost-hubert-rust.
|
|
@@ -545,6 +553,10 @@ function signingKeyFromVerifying(verifyingKeyBytes) {
|
|
|
545
553
|
//#endregion
|
|
546
554
|
//#region src/cmd/dkg/coordinator/invite.ts
|
|
547
555
|
/**
|
|
556
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
557
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
558
|
+
*
|
|
559
|
+
*
|
|
548
560
|
* DKG coordinator invite command.
|
|
549
561
|
*
|
|
550
562
|
* Port of cmd/dkg/coordinator/invite.rs from frost-hubert-rust.
|
|
@@ -626,6 +638,10 @@ async function invite$1(client, options, cwd) {
|
|
|
626
638
|
//#endregion
|
|
627
639
|
//#region src/cmd/dkg/coordinator/round1.ts
|
|
628
640
|
/**
|
|
641
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
642
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
643
|
+
*
|
|
644
|
+
*
|
|
629
645
|
* DKG coordinator round 1 command.
|
|
630
646
|
*
|
|
631
647
|
* Port of cmd/dkg/coordinator/round1.rs from frost-hubert-rust.
|
|
@@ -1059,6 +1075,10 @@ async function round1$4(client, options, cwd) {
|
|
|
1059
1075
|
//#endregion
|
|
1060
1076
|
//#region src/cmd/dkg/coordinator/round2.ts
|
|
1061
1077
|
/**
|
|
1078
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1079
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1080
|
+
*
|
|
1081
|
+
*
|
|
1062
1082
|
* DKG coordinator round 2 command.
|
|
1063
1083
|
*
|
|
1064
1084
|
* Port of cmd/dkg/coordinator/round2.rs from frost-hubert-rust.
|
|
@@ -1484,6 +1504,10 @@ async function round2$4(client, options, cwd) {
|
|
|
1484
1504
|
//#endregion
|
|
1485
1505
|
//#region src/cmd/dkg/coordinator/finalize.ts
|
|
1486
1506
|
/**
|
|
1507
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1508
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1509
|
+
*
|
|
1510
|
+
*
|
|
1487
1511
|
* DKG coordinator finalize command.
|
|
1488
1512
|
*
|
|
1489
1513
|
* Port of cmd/dkg/coordinator/finalize.rs from frost-hubert-rust.
|
|
@@ -1624,7 +1648,7 @@ function finalizeFinalizeCollectionResults(collection, registryPath, registry, g
|
|
|
1624
1648
|
try {
|
|
1625
1649
|
signingKey = signingKeyFromVerifying(hexToBytes(pubKeyPkg.verifying_key));
|
|
1626
1650
|
} catch (err) {
|
|
1627
|
-
throw new Error(`Failed to extract verifying key for ${xid.urString()}: ${err instanceof Error ? err.message : String(err)}
|
|
1651
|
+
throw new Error(`Failed to extract verifying key for ${xid.urString()}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
|
|
1628
1652
|
}
|
|
1629
1653
|
if (groupVerifyingKey !== void 0) {
|
|
1630
1654
|
if (groupVerifyingKey.urString() !== signingKey.urString()) throw new Error(`Group verifying key mismatch for participant ${xid.urString()}`);
|
|
@@ -1680,9 +1704,9 @@ async function finalize$2(client, options, cwd) {
|
|
|
1680
1704
|
const coordinatorKeys = owner.xidDocument().inceptionPrivateKeys();
|
|
1681
1705
|
if (coordinatorKeys === void 0) throw new Error("Coordinator XID document has no private keys");
|
|
1682
1706
|
let verifyingKey;
|
|
1683
|
-
let collected
|
|
1707
|
+
let collected;
|
|
1684
1708
|
let rejected = 0;
|
|
1685
|
-
let errors
|
|
1709
|
+
let errors;
|
|
1686
1710
|
let timeouts = 0;
|
|
1687
1711
|
if (options.parallel === true) {
|
|
1688
1712
|
const collection = await collectFinalizeParallel(client, registry, pendingRequests, coordinatorKeys, groupId, options.timeoutSeconds);
|
|
@@ -1774,6 +1798,10 @@ var coordinator_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
1774
1798
|
//#endregion
|
|
1775
1799
|
//#region src/cmd/dkg/participant/receive.ts
|
|
1776
1800
|
/**
|
|
1801
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1802
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1803
|
+
*
|
|
1804
|
+
*
|
|
1777
1805
|
* DKG participant receive command.
|
|
1778
1806
|
*
|
|
1779
1807
|
* Port of cmd/dkg/participant/receive.rs from frost-hubert-rust.
|
|
@@ -1938,6 +1966,10 @@ async function receive$1(_client, options, cwd) {
|
|
|
1938
1966
|
//#endregion
|
|
1939
1967
|
//#region src/cmd/dkg/participant/round1.ts
|
|
1940
1968
|
/**
|
|
1969
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1970
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1971
|
+
*
|
|
1972
|
+
*
|
|
1941
1973
|
* DKG participant round 1 command.
|
|
1942
1974
|
*
|
|
1943
1975
|
* Port of cmd/dkg/participant/round1.rs from frost-hubert-rust.
|
|
@@ -2134,6 +2166,10 @@ function resolveSenderXidDocument(registry, raw) {
|
|
|
2134
2166
|
//#endregion
|
|
2135
2167
|
//#region src/cmd/dkg/participant/round2.ts
|
|
2136
2168
|
/**
|
|
2169
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2170
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2171
|
+
*
|
|
2172
|
+
*
|
|
2137
2173
|
* DKG participant round 2 command.
|
|
2138
2174
|
*
|
|
2139
2175
|
* Port of cmd/dkg/participant/round2.rs from frost-hubert-rust.
|
|
@@ -2368,6 +2404,10 @@ async function round2$3(_client, options, cwd) {
|
|
|
2368
2404
|
//#endregion
|
|
2369
2405
|
//#region src/cmd/dkg/participant/finalize.ts
|
|
2370
2406
|
/**
|
|
2407
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2408
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2409
|
+
*
|
|
2410
|
+
*
|
|
2371
2411
|
* DKG participant finalize command.
|
|
2372
2412
|
*
|
|
2373
2413
|
* Port of cmd/dkg/participant/finalize.rs from frost-hubert-rust.
|
|
@@ -2624,6 +2664,10 @@ var dkg_exports = /* @__PURE__ */ __exportAll({
|
|
|
2624
2664
|
//#endregion
|
|
2625
2665
|
//#region src/cmd/sign/common.ts
|
|
2626
2666
|
/**
|
|
2667
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2668
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2669
|
+
*
|
|
2670
|
+
*
|
|
2627
2671
|
* Common utilities for sign commands.
|
|
2628
2672
|
*
|
|
2629
2673
|
* Port of cmd/sign/common.rs from frost-hubert-rust.
|
|
@@ -2712,6 +2756,10 @@ var SignFinalizeContent = class SignFinalizeContent {
|
|
|
2712
2756
|
//#endregion
|
|
2713
2757
|
//#region src/cmd/sign/coordinator/invite.ts
|
|
2714
2758
|
/**
|
|
2759
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2760
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2761
|
+
*
|
|
2762
|
+
*
|
|
2715
2763
|
* Sign coordinator invite command.
|
|
2716
2764
|
*
|
|
2717
2765
|
* Port of cmd/sign/coordinator/invite.rs from frost-hubert-rust.
|
|
@@ -2838,7 +2886,7 @@ function loadEnvelopeFromPath(filePath) {
|
|
|
2838
2886
|
try {
|
|
2839
2887
|
return Envelope.fromURString(trimmed);
|
|
2840
2888
|
} catch (e) {
|
|
2841
|
-
throw new Error(`Failed to load target envelope from ${filePath}: ${String(e)}
|
|
2889
|
+
throw new Error(`Failed to load target envelope from ${filePath}: ${String(e)}`, { cause: e });
|
|
2842
2890
|
}
|
|
2843
2891
|
}
|
|
2844
2892
|
/**
|
|
@@ -2904,6 +2952,10 @@ async function invite(client, options, cwd) {
|
|
|
2904
2952
|
//#endregion
|
|
2905
2953
|
//#region src/cmd/sign/coordinator/round1.ts
|
|
2906
2954
|
/**
|
|
2955
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
2956
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
2957
|
+
*
|
|
2958
|
+
*
|
|
2907
2959
|
* Sign coordinator round 1 command.
|
|
2908
2960
|
*
|
|
2909
2961
|
* Port of cmd/sign/coordinator/round1.rs from frost-hubert-rust.
|
|
@@ -3253,6 +3305,10 @@ async function round1$2(client, options, cwd) {
|
|
|
3253
3305
|
//#endregion
|
|
3254
3306
|
//#region src/cmd/sign/coordinator/round2.ts
|
|
3255
3307
|
/**
|
|
3308
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3309
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3310
|
+
*
|
|
3311
|
+
*
|
|
3256
3312
|
* Sign coordinator round 2 command.
|
|
3257
3313
|
*
|
|
3258
3314
|
* Port of cmd/sign/coordinator/round2.rs from frost-hubert-rust.
|
|
@@ -3652,6 +3708,10 @@ var coordinator_exports = /* @__PURE__ */ __exportAll({
|
|
|
3652
3708
|
//#endregion
|
|
3653
3709
|
//#region src/cmd/sign/participant/receive.ts
|
|
3654
3710
|
/**
|
|
3711
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3712
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3713
|
+
*
|
|
3714
|
+
*
|
|
3655
3715
|
* Sign participant receive command.
|
|
3656
3716
|
*
|
|
3657
3717
|
* Port of cmd/sign/participant/receive.rs from frost-hubert-rust.
|
|
@@ -3813,6 +3873,10 @@ async function receive(client, selection, options, cwd) {
|
|
|
3813
3873
|
//#endregion
|
|
3814
3874
|
//#region src/cmd/sign/participant/round1.ts
|
|
3815
3875
|
/**
|
|
3876
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
3877
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
3878
|
+
*
|
|
3879
|
+
*
|
|
3816
3880
|
* Sign participant round 1 command.
|
|
3817
3881
|
*
|
|
3818
3882
|
* Port of cmd/sign/participant/round1.rs from frost-hubert-rust.
|
|
@@ -4001,6 +4065,10 @@ async function round1$1(_client, options, cwd) {
|
|
|
4001
4065
|
//#endregion
|
|
4002
4066
|
//#region src/cmd/sign/participant/round2.ts
|
|
4003
4067
|
/**
|
|
4068
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4069
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4070
|
+
*
|
|
4071
|
+
*
|
|
4004
4072
|
* Sign participant round 2 command.
|
|
4005
4073
|
*
|
|
4006
4074
|
* Port of cmd/sign/participant/round2.rs from frost-hubert-rust.
|
|
@@ -4273,6 +4341,10 @@ async function round2$1(client, options, cwd) {
|
|
|
4273
4341
|
//#endregion
|
|
4274
4342
|
//#region src/cmd/sign/participant/finalize.ts
|
|
4275
4343
|
/**
|
|
4344
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
4345
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
4346
|
+
*
|
|
4347
|
+
*
|
|
4276
4348
|
* Sign participant finalize command.
|
|
4277
4349
|
*
|
|
4278
4350
|
* Port of cmd/sign/participant/finalize.rs from frost-hubert-rust.
|
|
@@ -4661,4 +4733,4 @@ var sign_exports = /* @__PURE__ */ __exportAll({
|
|
|
4661
4733
|
|
|
4662
4734
|
//#endregion
|
|
4663
4735
|
export { setVerbose as C, isVerbose as S, parallelFetchConfigWithTimeout as _, CollectionResult as a, putWithIndicator as b, buildFetchRequests as c, fetchStatusError as d, fetchStatusPending as f, parallelFetch as g, fetchStatusTimeout as h, createStorageClient as i, directionEmoji as l, fetchStatusSuccess as m, dkg_exports as n, DEFAULT_TIMEOUT_SECONDS as o, fetchStatusRejected as p, checkAridExists as r, Direction as s, sign_exports as t, emptyCollectionResult as u, parallelSend as v, groupStateDir as x, getWithIndicator as y };
|
|
4664
|
-
//# sourceMappingURL=sign-
|
|
4736
|
+
//# sourceMappingURL=sign-D8C3HJ4B.mjs.map
|