@bcts/frost-hubert 1.0.0-alpha.21 → 1.0.0-alpha.23
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 +3 -5
- package/dist/bin/frost.cjs.map +1 -1
- package/dist/bin/frost.mjs +3 -5
- package/dist/bin/frost.mjs.map +1 -1
- 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 +40 -43
- package/dist/cmd/index.d.cts +1 -3
- package/dist/cmd/index.d.mts +1 -3
- package/dist/cmd/index.mjs +3 -6
- package/dist/{sign-D8C3HJ4B.mjs → cmd-5yLeC_QL.mjs} +16 -44
- package/dist/cmd-5yLeC_QL.mjs.map +1 -0
- package/dist/{sign-2bOp18Fs.cjs → cmd-BfZjC3Uh.cjs} +182 -210
- package/dist/cmd-BfZjC3Uh.cjs.map +1 -0
- package/dist/dkg/index.cjs +341 -7
- package/dist/dkg/index.cjs.map +1 -0
- package/dist/dkg/index.d.cts +1 -1
- package/dist/dkg/index.d.mts +1 -1
- package/dist/dkg/index.mjs +335 -2
- package/dist/dkg/index.mjs.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/{index-CcvTi5EA.d.cts → index-BJlwbPYu.d.cts} +3 -3
- package/dist/{index-CcvTi5EA.d.cts.map → index-BJlwbPYu.d.cts.map} +1 -1
- package/dist/{registry-impl-CE76sTXQ.d.cts → index-BMbPgH0W.d.cts} +1 -1
- package/dist/index-BMbPgH0W.d.cts.map +1 -0
- package/dist/{group-invite-Dz1Jmiky.d.cts → index-BkqLimZT.d.mts} +2 -2
- package/dist/index-BkqLimZT.d.mts.map +1 -0
- package/dist/{group-invite-Wk9CIbHL.d.mts → index-DmxfT59Y.d.cts} +2 -2
- package/dist/index-DmxfT59Y.d.cts.map +1 -0
- package/dist/{registry-impl-BETn_lEO.d.mts → index-DoV5HFvV.d.mts} +1 -1
- package/dist/index-DoV5HFvV.d.mts.map +1 -0
- package/dist/{index-DNCPeLNM.d.mts → index-Dzm1v4_4.d.mts} +3 -3
- package/dist/{index-DNCPeLNM.d.mts.map → index-Dzm1v4_4.d.mts.map} +1 -1
- package/dist/index.cjs +64 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/dist/registry/index.cjs +806 -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 +792 -2
- package/dist/registry/index.mjs.map +1 -0
- package/dist/{registry-BDnNV1Rk.mjs → registry-CgrCZ4En.mjs} +7 -10
- package/dist/{registry-BDnNV1Rk.mjs.map → registry-CgrCZ4En.mjs.map} +1 -1
- package/dist/{registry-FMU-ec5K.cjs → registry-loI1_Mh1.cjs} +28 -31
- package/dist/registry-loI1_Mh1.cjs.map +1 -0
- package/package.json +17 -17
- package/src/cmd/dkg/participant/finalize.ts +1 -1
- package/src/dkg/proposed-participant.ts +1 -2
- package/src/frost/index.ts +1 -1
- package/src/registry/owner-record.ts +1 -2
- package/src/registry/participant-record.ts +1 -2
- 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/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.map +0 -1
- package/dist/sign-D8C3HJ4B.mjs.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_frost_index = require(
|
|
1
|
+
const require_chunk = require("./chunk-CZWwpsFl.cjs");
|
|
2
|
+
const require_dkg_index = require("./dkg/index.cjs");
|
|
3
|
+
const require_registry_index = require("./registry/index.cjs");
|
|
4
|
+
const require_frost_index = require("./frost/index.cjs");
|
|
5
|
+
require("./registry-loI1_Mh1.cjs");
|
|
5
6
|
let _bcts_components = require("@bcts/components");
|
|
6
7
|
let _bcts_dcbor = require("@bcts/dcbor");
|
|
7
8
|
let _bcts_envelope = require("@bcts/envelope");
|
|
@@ -9,12 +10,11 @@ let _bcts_gstp = require("@bcts/gstp");
|
|
|
9
10
|
let _bcts_xid = require("@bcts/xid");
|
|
10
11
|
let _bcts_uniform_resources = require("@bcts/uniform-resources");
|
|
11
12
|
let node_fs = require("node:fs");
|
|
12
|
-
node_fs = require_chunk.__toESM(node_fs);
|
|
13
|
+
node_fs = require_chunk.__toESM(node_fs, 1);
|
|
13
14
|
let node_path = require("node:path");
|
|
14
|
-
node_path = require_chunk.__toESM(node_path);
|
|
15
|
+
node_path = require_chunk.__toESM(node_path, 1);
|
|
15
16
|
let _frosts_ed25519 = require("@frosts/ed25519");
|
|
16
17
|
let _frosts_core = require("@frosts/core");
|
|
17
|
-
|
|
18
18
|
//#region src/cmd/common.ts
|
|
19
19
|
/**
|
|
20
20
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
@@ -54,7 +54,6 @@ function setVerbose(value) {
|
|
|
54
54
|
function isVerbose() {
|
|
55
55
|
return verboseFlag;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
57
|
//#endregion
|
|
59
58
|
//#region src/cmd/busy.ts
|
|
60
59
|
/**
|
|
@@ -79,7 +78,6 @@ async function getWithIndicator(client, arid, message, timeoutSeconds, verbose)
|
|
|
79
78
|
else console.log(`${message}... not found`);
|
|
80
79
|
return envelope;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
81
|
//#endregion
|
|
84
82
|
//#region src/cmd/parallel.ts
|
|
85
83
|
/**
|
|
@@ -140,8 +138,8 @@ let Direction = /* @__PURE__ */ function(Direction) {
|
|
|
140
138
|
*/
|
|
141
139
|
function directionEmoji(direction) {
|
|
142
140
|
switch (direction) {
|
|
143
|
-
case
|
|
144
|
-
case
|
|
141
|
+
case "Get": return "⬇️";
|
|
142
|
+
case "Put": return "⬆️";
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
/**
|
|
@@ -246,32 +244,32 @@ function logProgress(direction, name, status, message) {
|
|
|
246
244
|
*/
|
|
247
245
|
async function parallelFetch(client, requests, validate, config) {
|
|
248
246
|
const result = new CollectionResult();
|
|
249
|
-
const timeoutSeconds = config.timeoutSeconds ??
|
|
247
|
+
const timeoutSeconds = config.timeoutSeconds ?? 600;
|
|
250
248
|
if (config.verbose === true) console.error(`Waiting for ${requests.length} responses...`);
|
|
251
249
|
const promises = requests.map(async ([xid, arid, name]) => {
|
|
252
250
|
try {
|
|
253
251
|
const envelope = await client.get(arid, timeoutSeconds);
|
|
254
252
|
if (!envelope) {
|
|
255
253
|
result.timeouts.push(xid);
|
|
256
|
-
if (config.verbose === true) logProgress(
|
|
254
|
+
if (config.verbose === true) logProgress("Get", name, "timeout");
|
|
257
255
|
return;
|
|
258
256
|
}
|
|
259
257
|
const parsed = validate(envelope, xid);
|
|
260
258
|
if (parsed !== null && typeof parsed === "object" && "rejected" in parsed) {
|
|
261
259
|
result.rejections.push([xid, parsed.rejected]);
|
|
262
|
-
if (config.verbose === true) logProgress(
|
|
260
|
+
if (config.verbose === true) logProgress("Get", name, "error", parsed.rejected);
|
|
263
261
|
} else {
|
|
264
262
|
result.successes.push([xid, parsed]);
|
|
265
|
-
if (config.verbose === true) logProgress(
|
|
263
|
+
if (config.verbose === true) logProgress("Get", name, "success");
|
|
266
264
|
}
|
|
267
265
|
} catch (error) {
|
|
268
266
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
269
267
|
if (errorMessage.includes("Timeout") || errorMessage.includes("timeout")) {
|
|
270
268
|
result.timeouts.push(xid);
|
|
271
|
-
if (config.verbose === true) logProgress(
|
|
269
|
+
if (config.verbose === true) logProgress("Get", name, "timeout");
|
|
272
270
|
} else {
|
|
273
271
|
result.errors.push([xid, `${name}: ${errorMessage}`]);
|
|
274
|
-
if (config.verbose === true) logProgress(
|
|
272
|
+
if (config.verbose === true) logProgress("Get", name, "error", errorMessage);
|
|
275
273
|
}
|
|
276
274
|
}
|
|
277
275
|
});
|
|
@@ -296,11 +294,11 @@ async function parallelSend(client, messages, verbose) {
|
|
|
296
294
|
try {
|
|
297
295
|
await client.put(arid, envelope);
|
|
298
296
|
results.push([xid, null]);
|
|
299
|
-
if (verbose === true) logProgress(
|
|
297
|
+
if (verbose === true) logProgress("Put", name, "success");
|
|
300
298
|
} catch (error) {
|
|
301
299
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
302
300
|
results.push([xid, err]);
|
|
303
|
-
if (verbose === true) logProgress(
|
|
301
|
+
if (verbose === true) logProgress("Put", name, "error", err.message);
|
|
304
302
|
}
|
|
305
303
|
});
|
|
306
304
|
await Promise.all(promises);
|
|
@@ -312,7 +310,6 @@ async function parallelSend(client, messages, verbose) {
|
|
|
312
310
|
}
|
|
313
311
|
return results;
|
|
314
312
|
}
|
|
315
|
-
|
|
316
313
|
//#endregion
|
|
317
314
|
//#region src/cmd/storage.ts
|
|
318
315
|
/**
|
|
@@ -384,7 +381,6 @@ async function createStorageClient(selection, serverUrl) {
|
|
|
384
381
|
}
|
|
385
382
|
}
|
|
386
383
|
}
|
|
387
|
-
|
|
388
384
|
//#endregion
|
|
389
385
|
//#region src/cmd/check.ts
|
|
390
386
|
/**
|
|
@@ -395,7 +391,6 @@ async function createStorageClient(selection, serverUrl) {
|
|
|
395
391
|
async function checkAridExists(client, arid) {
|
|
396
392
|
return client.exists(arid);
|
|
397
393
|
}
|
|
398
|
-
|
|
399
394
|
//#endregion
|
|
400
395
|
//#region src/cmd/dkg/common.ts
|
|
401
396
|
/**
|
|
@@ -502,9 +497,9 @@ function buildGroupParticipants(registry, owner, participants) {
|
|
|
502
497
|
*/
|
|
503
498
|
function groupParticipantFromRegistry(registry, owner, document) {
|
|
504
499
|
const xid = document.xid();
|
|
505
|
-
if (xid.urString() === owner.xid().urString()) return new
|
|
500
|
+
if (xid.urString() === owner.xid().urString()) return new require_registry_index.GroupParticipant(xid);
|
|
506
501
|
if (!registry.participant(xid)) throw new Error(`Invite participant not found in registry: ${xid.urString()}`);
|
|
507
|
-
return new
|
|
502
|
+
return new require_registry_index.GroupParticipant(xid);
|
|
508
503
|
}
|
|
509
504
|
/**
|
|
510
505
|
* Format a participant name with owner marker if applicable.
|
|
@@ -551,7 +546,6 @@ function signingKeyFromVerifying(verifyingKeyBytes) {
|
|
|
551
546
|
const { SigningPublicKey: SigningPublicKeyClass } = require("@bcts/components");
|
|
552
547
|
return SigningPublicKeyClass.fromBytes(verifyingKeyBytes);
|
|
553
548
|
}
|
|
554
|
-
|
|
555
549
|
//#endregion
|
|
556
550
|
//#region src/cmd/dkg/coordinator/invite.ts
|
|
557
551
|
/**
|
|
@@ -575,7 +569,7 @@ function buildInvite(registry, minSignersArg, charter, participantNames, validDa
|
|
|
575
569
|
const participantDocs = resolved.map(([, record]) => record.xidDocumentUr());
|
|
576
570
|
const participantXids = resolved.map(([xid]) => xid);
|
|
577
571
|
const collectFromArids = participantDocs.map(() => _bcts_components.ARID.new());
|
|
578
|
-
const pendingRequests = new
|
|
572
|
+
const pendingRequests = new require_registry_index.PendingRequests();
|
|
579
573
|
for (let i = 0; i < participantXids.length; i++) pendingRequests.addCollectOnly(participantXids[i], collectFromArids[i]);
|
|
580
574
|
const participantCount = participantDocs.length;
|
|
581
575
|
if (participantCount < 2) throw new Error("At least two participants are required for a DKG invite");
|
|
@@ -586,7 +580,7 @@ function buildInvite(registry, minSignersArg, charter, participantNames, validDa
|
|
|
586
580
|
const now = /* @__PURE__ */ new Date();
|
|
587
581
|
const validUntil = new Date(Date.now() + validDays * 24 * 60 * 60 * 1e3);
|
|
588
582
|
return {
|
|
589
|
-
invite:
|
|
583
|
+
invite: require_dkg_index.DkgInvite.create(_bcts_components.ARID.new(), sender, _bcts_components.ARID.new(), now, validUntil, minSigners, charter, participantDocs, collectFromArids),
|
|
590
584
|
participantXids,
|
|
591
585
|
pendingRequests
|
|
592
586
|
};
|
|
@@ -597,8 +591,8 @@ function buildInvite(registry, minSignersArg, charter, participantNames, validDa
|
|
|
597
591
|
* Port of `invite()` from cmd/dkg/coordinator/invite.rs.
|
|
598
592
|
*/
|
|
599
593
|
async function invite$1(client, options, cwd) {
|
|
600
|
-
const registryPath =
|
|
601
|
-
const registry =
|
|
594
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
595
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
602
596
|
const { invite: dkgInvite, participantXids, pendingRequests } = buildInvite(registry, options.minSigners, options.charter, options.participantNames, options.validDays);
|
|
603
597
|
const groupId = dkgInvite.groupId();
|
|
604
598
|
const requestId = dkgInvite.requestId();
|
|
@@ -607,9 +601,9 @@ async function invite$1(client, options, cwd) {
|
|
|
607
601
|
await putWithIndicator(client, startArid, envelope, "Sending DKG invite", options.verbose ?? false);
|
|
608
602
|
const owner = registry.owner();
|
|
609
603
|
if (!owner) throw new Error("Registry owner is required to issue invites");
|
|
610
|
-
const coordinator = new
|
|
611
|
-
const groupParticipants = participantXids.map((xid) => new
|
|
612
|
-
const groupRecord = new
|
|
604
|
+
const coordinator = new require_registry_index.GroupParticipant(owner.xid());
|
|
605
|
+
const groupParticipants = participantXids.map((xid) => new require_registry_index.GroupParticipant(xid));
|
|
606
|
+
const groupRecord = new require_registry_index.GroupRecord(options.charter, dkgInvite.minSigners(), coordinator, groupParticipants);
|
|
613
607
|
groupRecord.setPendingRequests(pendingRequests);
|
|
614
608
|
registry.recordGroup(groupId, groupRecord);
|
|
615
609
|
registry.save(registryPath);
|
|
@@ -636,7 +630,6 @@ async function invite$1(client, options, cwd) {
|
|
|
636
630
|
envelopeUr: envelope.urString()
|
|
637
631
|
};
|
|
638
632
|
}
|
|
639
|
-
|
|
640
633
|
//#endregion
|
|
641
634
|
//#region src/cmd/dkg/coordinator/round1.ts
|
|
642
635
|
/**
|
|
@@ -810,7 +803,7 @@ async function dispatchRound2RequestsParallel(client, registry, registryPath, co
|
|
|
810
803
|
for (const [xid, error] of failures) console.error(`Failed to send to ${xid.urString()}: ${error}`);
|
|
811
804
|
throw new Error(`Failed to send Round 2 requests to ${failures.length} participants`);
|
|
812
805
|
}
|
|
813
|
-
const newPendingRequests = new
|
|
806
|
+
const newPendingRequests = new require_registry_index.PendingRequests();
|
|
814
807
|
for (const [xid, collectFromArid] of collectArids) newPendingRequests.addCollectOnly(xid, collectFromArid);
|
|
815
808
|
const groupRecord = registry.groupMut(groupId);
|
|
816
809
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -824,7 +817,7 @@ async function dispatchRound2RequestsParallel(client, registry, registryPath, co
|
|
|
824
817
|
* Port of `update_pending_for_round2_from_collection()` from cmd/dkg/coordinator/round1.rs lines 710-726.
|
|
825
818
|
*/
|
|
826
819
|
function updatePendingForRound2FromCollection(registry, registryPath, groupId, successes) {
|
|
827
|
-
const newPending = new
|
|
820
|
+
const newPending = new require_registry_index.PendingRequests();
|
|
828
821
|
for (const [xid, data] of successes) newPending.addSendOnly(xid, data.nextResponseArid);
|
|
829
822
|
const groupRecord = registry.groupMut(groupId);
|
|
830
823
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -898,7 +891,7 @@ async function collectRound1Responses(ctx, pendingRequests, timeout) {
|
|
|
898
891
|
* Port of `update_pending_for_round2()` from cmd/dkg/coordinator/round1.rs lines 342-357.
|
|
899
892
|
*/
|
|
900
893
|
function updatePendingForRound2(ctx, nextResponseArids) {
|
|
901
|
-
const newPending = new
|
|
894
|
+
const newPending = new require_registry_index.PendingRequests();
|
|
902
895
|
for (const [xid, sendToArid] of nextResponseArids) newPending.addSendOnly(xid, sendToArid);
|
|
903
896
|
const groupRecord = ctx.registry.groupMut(ctx.groupId);
|
|
904
897
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -928,7 +921,7 @@ function buildRound2ParticipantInfo(registry, nextResponseArids) {
|
|
|
928
921
|
* Port of `update_pending_for_round2_collection()` from cmd/dkg/coordinator/round1.rs lines 460-475.
|
|
929
922
|
*/
|
|
930
923
|
function updatePendingForRound2Collection(ctx, participantInfo) {
|
|
931
|
-
const newPendingRequests = new
|
|
924
|
+
const newPendingRequests = new require_registry_index.PendingRequests();
|
|
932
925
|
for (const [xid, , , collectFromArid] of participantInfo) newPendingRequests.addCollectOnly(xid, collectFromArid);
|
|
933
926
|
const groupRecord = ctx.registry.groupMut(ctx.groupId);
|
|
934
927
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -1033,8 +1026,8 @@ function bailWithCollectionSummary(collection) {
|
|
|
1033
1026
|
* Port of `CommandArgs::exec()` from cmd/dkg/coordinator/round1.rs lines 59-173.
|
|
1034
1027
|
*/
|
|
1035
1028
|
async function round1$4(client, options, cwd) {
|
|
1036
|
-
const registryPath =
|
|
1037
|
-
const registry =
|
|
1029
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
1030
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
1038
1031
|
const owner = registry.owner();
|
|
1039
1032
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
1040
1033
|
const ownerDoc = owner.xidDocument();
|
|
@@ -1073,7 +1066,6 @@ async function round1$4(client, options, cwd) {
|
|
|
1073
1066
|
};
|
|
1074
1067
|
}
|
|
1075
1068
|
}
|
|
1076
|
-
|
|
1077
1069
|
//#endregion
|
|
1078
1070
|
//#region src/cmd/dkg/coordinator/round2.ts
|
|
1079
1071
|
/**
|
|
@@ -1206,7 +1198,7 @@ async function collectRound2(client, registryPath, registry, coordinatorKeys, gr
|
|
|
1206
1198
|
throw new Error(`Round 2 collection incomplete: ${errors.length} of ${pendingRequests.len()} responses failed`);
|
|
1207
1199
|
}
|
|
1208
1200
|
const displayPath = persistRound2PackagesFromMap(registryPath, groupId, allPackages, nextResponseArids);
|
|
1209
|
-
const newPending = new
|
|
1201
|
+
const newPending = new require_registry_index.PendingRequests();
|
|
1210
1202
|
for (const [xid, sendToArid] of nextResponseArids) newPending.addSendOnly(xid, sendToArid);
|
|
1211
1203
|
const groupRecord = registry.group(groupId);
|
|
1212
1204
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -1286,7 +1278,7 @@ function persistRound2Packages(registryPath, groupId, successes) {
|
|
|
1286
1278
|
* Port of `update_pending_for_finalize_from_collection()` from round2.rs lines 761-777.
|
|
1287
1279
|
*/
|
|
1288
1280
|
function updatePendingForFinalizeFromCollection(registry, registryPath, groupId, successes) {
|
|
1289
|
-
const newPending = new
|
|
1281
|
+
const newPending = new require_registry_index.PendingRequests();
|
|
1290
1282
|
for (const [xid, data] of successes) newPending.addSendOnly(xid, data.nextResponseArid);
|
|
1291
1283
|
const groupRecord = registry.group(groupId);
|
|
1292
1284
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -1353,7 +1345,7 @@ async function sendFinalizeRequests(client, registryPath, registry, coordinator,
|
|
|
1353
1345
|
if (preview && previewOutput === void 0) previewOutput = [participantName, request.toEnvelope(validUntil, signerPrivateKeys, void 0).urString()];
|
|
1354
1346
|
await putWithIndicator(client, sendToArid, request.toEnvelopeForRecipients(validUntil, signerPrivateKeys, [recipientDoc]), participantName, isVerbose());
|
|
1355
1347
|
}
|
|
1356
|
-
const newPendingRequests = new
|
|
1348
|
+
const newPendingRequests = new require_registry_index.PendingRequests();
|
|
1357
1349
|
for (const [xid, , , collectFromArid] of participantInfo) newPendingRequests.addCollectOnly(xid, collectFromArid);
|
|
1358
1350
|
const groupRecord = registry.group(groupId);
|
|
1359
1351
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -1398,7 +1390,7 @@ async function dispatchFinalizeRequestsParallel(client, registry, registryPath,
|
|
|
1398
1390
|
for (const [xid, error] of failures) if (error !== null) console.error(`Failed to send to ${xid.urString()}: ${error.message}`);
|
|
1399
1391
|
throw new Error(`Failed to send finalize requests to ${failures.length} participants`);
|
|
1400
1392
|
}
|
|
1401
|
-
const newPendingRequests = new
|
|
1393
|
+
const newPendingRequests = new require_registry_index.PendingRequests();
|
|
1402
1394
|
for (const [xid, collectFromArid] of collectArids) newPendingRequests.addCollectOnly(xid, collectFromArid);
|
|
1403
1395
|
const groupRecord = registry.group(groupId);
|
|
1404
1396
|
if (groupRecord === void 0) throw new Error("Group not found in registry");
|
|
@@ -1453,8 +1445,8 @@ function printSummaryParallel(collection, displayPath, preview) {
|
|
|
1453
1445
|
* Port of `CommandArgs::exec()` from cmd/dkg/coordinator/round2.rs lines 59-203.
|
|
1454
1446
|
*/
|
|
1455
1447
|
async function round2$4(client, options, cwd) {
|
|
1456
|
-
const registryPath =
|
|
1457
|
-
const registry =
|
|
1448
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
1449
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
1458
1450
|
const owner = registry.owner();
|
|
1459
1451
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
1460
1452
|
const ownerDoc = owner.xidDocument();
|
|
@@ -1502,7 +1494,6 @@ async function round2$4(client, options, cwd) {
|
|
|
1502
1494
|
};
|
|
1503
1495
|
}
|
|
1504
1496
|
}
|
|
1505
|
-
|
|
1506
1497
|
//#endregion
|
|
1507
1498
|
//#region src/cmd/dkg/coordinator/finalize.ts
|
|
1508
1499
|
/**
|
|
@@ -1693,8 +1684,8 @@ function hexToBytes(hex) {
|
|
|
1693
1684
|
* Port of `finalize()` from cmd/dkg/coordinator/finalize.rs.
|
|
1694
1685
|
*/
|
|
1695
1686
|
async function finalize$2(client, options, cwd) {
|
|
1696
|
-
const registryPath =
|
|
1697
|
-
const registry =
|
|
1687
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
1688
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
1698
1689
|
const owner = registry.owner();
|
|
1699
1690
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
1700
1691
|
const groupId = parseAridUr(options.groupId);
|
|
@@ -1781,7 +1772,6 @@ async function finalize$2(client, options, cwd) {
|
|
|
1781
1772
|
timeouts
|
|
1782
1773
|
};
|
|
1783
1774
|
}
|
|
1784
|
-
|
|
1785
1775
|
//#endregion
|
|
1786
1776
|
//#region src/cmd/dkg/coordinator/index.ts
|
|
1787
1777
|
var coordinator_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -1796,7 +1786,6 @@ var coordinator_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
1796
1786
|
updatePendingForFinalizeFromCollection: () => updatePendingForFinalizeFromCollection,
|
|
1797
1787
|
validateAndExtractRound2Response: () => validateAndExtractRound2Response
|
|
1798
1788
|
});
|
|
1799
|
-
|
|
1800
1789
|
//#endregion
|
|
1801
1790
|
//#region src/cmd/dkg/participant/receive.ts
|
|
1802
1791
|
/**
|
|
@@ -1871,7 +1860,7 @@ function decodeInviteDetails(invite, now, registry, recipient, expectedSender) {
|
|
|
1871
1860
|
if (xidDocument.xid().urString() === recipientXid.urString()) responseArid = participant.objectForPredicate("response_arid").decryptToRecipient(recipientPrivateKeys).extractSubject((cbor) => _bcts_components.ARID.fromTaggedCbor(cbor));
|
|
1872
1861
|
participantDocs.push(xidDocument);
|
|
1873
1862
|
}
|
|
1874
|
-
const invitation =
|
|
1863
|
+
const invitation = require_dkg_index.DkgInvitation.fromInvite(invite, now, expectedSender, recipient);
|
|
1875
1864
|
if (responseArid === void 0) throw new Error("Invite does not include a response ARID for this recipient");
|
|
1876
1865
|
return {
|
|
1877
1866
|
invitation,
|
|
@@ -1911,8 +1900,8 @@ function resolveSenderXidDocument$1(registry, raw) {
|
|
|
1911
1900
|
*/
|
|
1912
1901
|
async function receive$1(_client, options, cwd) {
|
|
1913
1902
|
if (options.storageSelection === void 0 && options.timeoutSeconds !== void 0) throw new Error("--timeout requires Hubert storage parameters");
|
|
1914
|
-
const registryPath =
|
|
1915
|
-
const registry =
|
|
1903
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
1904
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
1916
1905
|
const owner = registry.owner();
|
|
1917
1906
|
if (!owner) throw new Error("Registry owner with private keys is required");
|
|
1918
1907
|
const expectedSender = options.sender ? resolveSenderXidDocument$1(registry, options.sender) : void 0;
|
|
@@ -1964,7 +1953,6 @@ async function receive$1(_client, options, cwd) {
|
|
|
1964
1953
|
participantNames
|
|
1965
1954
|
};
|
|
1966
1955
|
}
|
|
1967
|
-
|
|
1968
1956
|
//#endregion
|
|
1969
1957
|
//#region src/cmd/dkg/participant/round1.ts
|
|
1970
1958
|
/**
|
|
@@ -2052,7 +2040,7 @@ function persistRound1State(registryPath, groupId, round1Secret, round1Package)
|
|
|
2052
2040
|
const packageJson = _frosts_ed25519.serde.round1PackageToJson(round1Package);
|
|
2053
2041
|
node_fs.writeFileSync(secretPath, globalThis.JSON.stringify(secretJson, null, 2));
|
|
2054
2042
|
node_fs.writeFileSync(packagePath, globalThis.JSON.stringify(packageJson, null, 2));
|
|
2055
|
-
return new
|
|
2043
|
+
return new require_registry_index.ContributionPaths({
|
|
2056
2044
|
round1Secret: secretPath,
|
|
2057
2045
|
round1Package: packagePath,
|
|
2058
2046
|
round2Secret: void 0,
|
|
@@ -2069,8 +2057,8 @@ function persistRound1State(registryPath, groupId, round1Secret, round1Package)
|
|
|
2069
2057
|
async function round1$3(_client, options, cwd) {
|
|
2070
2058
|
if (options.storageSelection === void 0 && options.timeoutSeconds !== void 0) throw new Error("--timeout requires Hubert storage parameters");
|
|
2071
2059
|
if (options.storageSelection !== void 0 && options.preview === true) throw new Error("--preview cannot be used with Hubert storage options");
|
|
2072
|
-
const registryPath =
|
|
2073
|
-
const registry =
|
|
2060
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
2061
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
2074
2062
|
const owner = registry.owner();
|
|
2075
2063
|
if (!owner) throw new Error("Registry owner with private keys is required");
|
|
2076
2064
|
let expectedSender;
|
|
@@ -2096,7 +2084,7 @@ async function round1$3(_client, options, cwd) {
|
|
|
2096
2084
|
const [round1Secret, round1Package] = require_frost_index.dkgPart1(identifier, total, minSigners, require_frost_index.createRng());
|
|
2097
2085
|
contributions = persistRound1State(registryPath, details.invitation.groupId(), round1Secret, round1Package);
|
|
2098
2086
|
responseBody = buildResponseBody$4(details.invitation.groupId(), owner.xid(), nextResponseArid, round1Package);
|
|
2099
|
-
const groupRecord = new
|
|
2087
|
+
const groupRecord = new require_registry_index.GroupRecord(details.invitation.charter(), details.invitation.minSigners(), coordinator, groupParticipants);
|
|
2100
2088
|
groupRecord.setContributions(contributions);
|
|
2101
2089
|
groupRecord.setListeningAtArid(nextResponseArid);
|
|
2102
2090
|
registry.recordGroup(details.invitation.groupId(), groupRecord);
|
|
@@ -2164,7 +2152,6 @@ function resolveSenderXidDocument(registry, raw) {
|
|
|
2164
2152
|
throw new Error(`Sender '${raw}' not found in registry`);
|
|
2165
2153
|
}
|
|
2166
2154
|
}
|
|
2167
|
-
|
|
2168
2155
|
//#endregion
|
|
2169
2156
|
//#region src/cmd/dkg/participant/round2.ts
|
|
2170
2157
|
/**
|
|
@@ -2334,8 +2321,8 @@ function persistRound2State(registryPath, groupId, round2Secret, round1PackagesB
|
|
|
2334
2321
|
*/
|
|
2335
2322
|
async function round2$3(_client, options, cwd) {
|
|
2336
2323
|
if (options.storageSelection === void 0) throw new Error("Hubert storage is required for round2");
|
|
2337
|
-
const registryPath =
|
|
2338
|
-
const registry =
|
|
2324
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
2325
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
2339
2326
|
const owner = registry.owner();
|
|
2340
2327
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
2341
2328
|
const groupId = parseAridUr(options.groupId);
|
|
@@ -2402,7 +2389,6 @@ async function round2$3(_client, options, cwd) {
|
|
|
2402
2389
|
if (isVerbose() || options.verbose === true) console.error(`Posted Round 2 response to ${responseArid.urString()}`);
|
|
2403
2390
|
return { listeningArid: nextResponseArid.urString() };
|
|
2404
2391
|
}
|
|
2405
|
-
|
|
2406
2392
|
//#endregion
|
|
2407
2393
|
//#region src/cmd/dkg/participant/finalize.ts
|
|
2408
2394
|
/**
|
|
@@ -2537,8 +2523,8 @@ function persistFinalizeState(registryPath, groupId, keyPackage, publicKeyPackag
|
|
|
2537
2523
|
*/
|
|
2538
2524
|
async function finalize$1(_client, options, cwd) {
|
|
2539
2525
|
if (options.storageSelection === void 0) throw new Error("Hubert storage is required for finalize respond");
|
|
2540
|
-
const registryPath =
|
|
2541
|
-
const registry =
|
|
2526
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
2527
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
2542
2528
|
const owner = registry.owner();
|
|
2543
2529
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
2544
2530
|
const groupId = parseAridUr(options.groupId);
|
|
@@ -2632,7 +2618,6 @@ async function finalize$1(_client, options, cwd) {
|
|
|
2632
2618
|
publicKeyPackagePath
|
|
2633
2619
|
};
|
|
2634
2620
|
}
|
|
2635
|
-
|
|
2636
2621
|
//#endregion
|
|
2637
2622
|
//#region src/cmd/dkg/participant/index.ts
|
|
2638
2623
|
var participant_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -2643,7 +2628,6 @@ var participant_exports$1 = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
2643
2628
|
round1: () => round1$3,
|
|
2644
2629
|
round2: () => round2$3
|
|
2645
2630
|
});
|
|
2646
|
-
|
|
2647
2631
|
//#endregion
|
|
2648
2632
|
//#region src/cmd/dkg/index.ts
|
|
2649
2633
|
var dkg_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -2662,7 +2646,6 @@ var dkg_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
2662
2646
|
resolveSenderName: () => resolveSenderName$1,
|
|
2663
2647
|
signingKeyFromVerifying: () => signingKeyFromVerifying
|
|
2664
2648
|
});
|
|
2665
|
-
|
|
2666
2649
|
//#endregion
|
|
2667
2650
|
//#region src/cmd/sign/common.ts
|
|
2668
2651
|
/**
|
|
@@ -2754,7 +2737,6 @@ var SignFinalizeContent = class SignFinalizeContent {
|
|
|
2754
2737
|
return this._envelope;
|
|
2755
2738
|
}
|
|
2756
2739
|
};
|
|
2757
|
-
|
|
2758
2740
|
//#endregion
|
|
2759
2741
|
//#region src/cmd/sign/coordinator/invite.ts
|
|
2760
2742
|
/**
|
|
@@ -2900,8 +2882,8 @@ function loadEnvelopeFromPath(filePath) {
|
|
|
2900
2882
|
*/
|
|
2901
2883
|
async function invite(client, options, cwd) {
|
|
2902
2884
|
if (client !== void 0 && options.preview === true) throw new Error("--preview cannot be used with Hubert storage options");
|
|
2903
|
-
const registryPath =
|
|
2904
|
-
const registry =
|
|
2885
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
2886
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
2905
2887
|
const owner = registry.owner();
|
|
2906
2888
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
2907
2889
|
const groupId = parseAridUr(options.groupId);
|
|
@@ -2950,7 +2932,6 @@ async function invite(client, options, cwd) {
|
|
|
2950
2932
|
startArid: sessionArids.startArid.urString()
|
|
2951
2933
|
};
|
|
2952
2934
|
}
|
|
2953
|
-
|
|
2954
2935
|
//#endregion
|
|
2955
2936
|
//#region src/cmd/sign/coordinator/round1.ts
|
|
2956
2937
|
/**
|
|
@@ -3182,8 +3163,8 @@ function updatePendingForShare(_registry, _collection, _startState) {}
|
|
|
3182
3163
|
* Port of `round1()` from cmd/sign/coordinator/round1.rs.
|
|
3183
3164
|
*/
|
|
3184
3165
|
async function round1$1(client, options, cwd) {
|
|
3185
|
-
const registryPath =
|
|
3186
|
-
const registry =
|
|
3166
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
3167
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
3187
3168
|
const owner = registry.owner();
|
|
3188
3169
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
3189
3170
|
const sessionId = parseAridUr(options.sessionId);
|
|
@@ -3218,7 +3199,6 @@ async function round1$1(client, options, cwd) {
|
|
|
3218
3199
|
for (const [xid, error] of failures) if (error !== null) console.error(`Failed to send to ${xid.urString()}: ${error.message}`);
|
|
3219
3200
|
throw new Error(`Failed to send signRound2 requests to ${failures.length} participants`);
|
|
3220
3201
|
}
|
|
3221
|
-
/* @__PURE__ */ updatePendingForShare(registry, collection, startState);
|
|
3222
3202
|
const displayPath = node_path.relative(cwd, commitmentsPath) || commitmentsPath;
|
|
3223
3203
|
if (isVerbose() || options.verbose === true) {
|
|
3224
3204
|
console.error();
|
|
@@ -3303,7 +3283,6 @@ async function round1$1(client, options, cwd) {
|
|
|
3303
3283
|
};
|
|
3304
3284
|
}
|
|
3305
3285
|
}
|
|
3306
|
-
|
|
3307
3286
|
//#endregion
|
|
3308
3287
|
//#region src/cmd/sign/coordinator/round2.ts
|
|
3309
3288
|
/**
|
|
@@ -3562,8 +3541,8 @@ function commitmentsWithIdentifiers$2(commitments, xidToIdentifier) {
|
|
|
3562
3541
|
* Port of `CommandArgs::exec()` from cmd/sign/coordinator/round2.rs.
|
|
3563
3542
|
*/
|
|
3564
3543
|
async function round2$1(client, options, cwd) {
|
|
3565
|
-
const registryPath =
|
|
3566
|
-
const registry =
|
|
3544
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
3545
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
3567
3546
|
const owner = registry.owner();
|
|
3568
3547
|
if (!owner) throw new Error("Registry owner is required");
|
|
3569
3548
|
const sessionId = parseAridUr(options.sessionId);
|
|
@@ -3685,7 +3664,6 @@ async function round2$1(client, options, cwd) {
|
|
|
3685
3664
|
timeouts: 0
|
|
3686
3665
|
};
|
|
3687
3666
|
}
|
|
3688
|
-
|
|
3689
3667
|
//#endregion
|
|
3690
3668
|
//#region src/cmd/sign/coordinator/index.ts
|
|
3691
3669
|
var coordinator_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -3706,7 +3684,6 @@ var coordinator_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
3706
3684
|
validateAndExtractCommitResponse: () => validateAndExtractCommitResponse,
|
|
3707
3685
|
validateCoordinator: () => validateCoordinator
|
|
3708
3686
|
});
|
|
3709
|
-
|
|
3710
3687
|
//#endregion
|
|
3711
3688
|
//#region src/cmd/sign/participant/receive.ts
|
|
3712
3689
|
/**
|
|
@@ -3797,8 +3774,8 @@ function formatParticipantNames(registry, participants, owner) {
|
|
|
3797
3774
|
*/
|
|
3798
3775
|
async function receive(client, selection, options, cwd) {
|
|
3799
3776
|
if (selection === void 0 && options.timeoutSeconds !== void 0) throw new Error("--timeout requires Hubert storage parameters");
|
|
3800
|
-
const registryPath =
|
|
3801
|
-
const registry =
|
|
3777
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
3778
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
3802
3779
|
const owner = registry.owner();
|
|
3803
3780
|
if (!owner) throw new Error("Registry owner with private keys is required");
|
|
3804
3781
|
let expectedSender;
|
|
@@ -3871,7 +3848,6 @@ async function receive(client, selection, options, cwd) {
|
|
|
3871
3848
|
participantNames
|
|
3872
3849
|
};
|
|
3873
3850
|
}
|
|
3874
|
-
|
|
3875
3851
|
//#endregion
|
|
3876
3852
|
//#region src/cmd/sign/participant/round1.ts
|
|
3877
3853
|
/**
|
|
@@ -3998,8 +3974,8 @@ function persistCommitState(registryPath, groupId, sessionId, receiveState, sign
|
|
|
3998
3974
|
async function round1(_client, options, cwd) {
|
|
3999
3975
|
if (options.storageSelection === void 0 && options.preview !== true) throw new Error("Hubert storage is required for sign commit");
|
|
4000
3976
|
if (options.storageSelection !== void 0 && options.preview === true) throw new Error("--preview cannot be used with Hubert storage options");
|
|
4001
|
-
const registryPath =
|
|
4002
|
-
const registry =
|
|
3977
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
3978
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
4003
3979
|
const owner = registry.owner();
|
|
4004
3980
|
if (!owner) throw new Error("Registry owner is required");
|
|
4005
3981
|
const sessionId = parseAridUr(options.sessionId);
|
|
@@ -4063,7 +4039,6 @@ async function round1(_client, options, cwd) {
|
|
|
4063
4039
|
if (nextShareArid !== void 0) result.listeningArid = nextShareArid.urString();
|
|
4064
4040
|
return result;
|
|
4065
4041
|
}
|
|
4066
|
-
|
|
4067
4042
|
//#endregion
|
|
4068
4043
|
//#region src/cmd/sign/participant/round2.ts
|
|
4069
4044
|
/**
|
|
@@ -4266,8 +4241,8 @@ function persistShareState(registryPath, groupId, sessionId, responseArid, final
|
|
|
4266
4241
|
* Port of `CommandArgs::exec()` from cmd/sign/participant/round2.rs.
|
|
4267
4242
|
*/
|
|
4268
4243
|
async function round2(client, options, cwd) {
|
|
4269
|
-
const registryPath =
|
|
4270
|
-
const registry =
|
|
4244
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
4245
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
4271
4246
|
const owner = registry.owner();
|
|
4272
4247
|
if (!owner) throw new Error("Registry owner is required");
|
|
4273
4248
|
const ownerXidDocument = owner.xidDocument();
|
|
@@ -4339,7 +4314,6 @@ async function round2(client, options, cwd) {
|
|
|
4339
4314
|
if (options.verbose === true) console.error(`Posted signature share to ${responseArid.urString()}`);
|
|
4340
4315
|
return { listeningArid: finalizeArid.urString() };
|
|
4341
4316
|
}
|
|
4342
|
-
|
|
4343
4317
|
//#endregion
|
|
4344
4318
|
//#region src/cmd/sign/participant/finalize.ts
|
|
4345
4319
|
/**
|
|
@@ -4676,8 +4650,8 @@ function persistFinalState(registryPath, groupId, sessionId, signature, signedEn
|
|
|
4676
4650
|
* Port of `finalize()` from cmd/sign/participant/finalize.rs.
|
|
4677
4651
|
*/
|
|
4678
4652
|
async function finalize(client, options, cwd) {
|
|
4679
|
-
const registryPath =
|
|
4680
|
-
const registry =
|
|
4653
|
+
const registryPath = require_registry_index.resolveRegistryPath(options.registryPath, cwd);
|
|
4654
|
+
const registry = require_registry_index.Registry.load(registryPath);
|
|
4681
4655
|
const owner = registry.owner();
|
|
4682
4656
|
if (owner === void 0) throw new Error("Registry owner is required");
|
|
4683
4657
|
const sessionId = parseAridUr(options.sessionId);
|
|
@@ -4713,7 +4687,6 @@ async function finalize(client, options, cwd) {
|
|
|
4713
4687
|
signedEnvelope: signedEnvelopeStr
|
|
4714
4688
|
};
|
|
4715
4689
|
}
|
|
4716
|
-
|
|
4717
4690
|
//#endregion
|
|
4718
4691
|
//#region src/cmd/sign/participant/index.ts
|
|
4719
4692
|
var participant_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -4722,7 +4695,6 @@ var participant_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
4722
4695
|
round1: () => round1,
|
|
4723
4696
|
round2: () => round2
|
|
4724
4697
|
});
|
|
4725
|
-
|
|
4726
4698
|
//#endregion
|
|
4727
4699
|
//#region src/cmd/sign/index.ts
|
|
4728
4700
|
var sign_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -4732,144 +4704,144 @@ var sign_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
|
4732
4704
|
signingStateDir: () => signingStateDir,
|
|
4733
4705
|
signingStateDirForGroup: () => signingStateDirForGroup
|
|
4734
4706
|
});
|
|
4735
|
-
|
|
4736
4707
|
//#endregion
|
|
4737
|
-
Object.defineProperty(exports,
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4708
|
+
Object.defineProperty(exports, "CollectionResult", {
|
|
4709
|
+
enumerable: true,
|
|
4710
|
+
get: function() {
|
|
4711
|
+
return CollectionResult;
|
|
4712
|
+
}
|
|
4742
4713
|
});
|
|
4743
|
-
Object.defineProperty(exports,
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4714
|
+
Object.defineProperty(exports, "DEFAULT_TIMEOUT_SECONDS", {
|
|
4715
|
+
enumerable: true,
|
|
4716
|
+
get: function() {
|
|
4717
|
+
return DEFAULT_TIMEOUT_SECONDS;
|
|
4718
|
+
}
|
|
4748
4719
|
});
|
|
4749
|
-
Object.defineProperty(exports,
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4720
|
+
Object.defineProperty(exports, "Direction", {
|
|
4721
|
+
enumerable: true,
|
|
4722
|
+
get: function() {
|
|
4723
|
+
return Direction;
|
|
4724
|
+
}
|
|
4754
4725
|
});
|
|
4755
|
-
Object.defineProperty(exports,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4726
|
+
Object.defineProperty(exports, "buildFetchRequests", {
|
|
4727
|
+
enumerable: true,
|
|
4728
|
+
get: function() {
|
|
4729
|
+
return buildFetchRequests;
|
|
4730
|
+
}
|
|
4760
4731
|
});
|
|
4761
|
-
Object.defineProperty(exports,
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4732
|
+
Object.defineProperty(exports, "checkAridExists", {
|
|
4733
|
+
enumerable: true,
|
|
4734
|
+
get: function() {
|
|
4735
|
+
return checkAridExists;
|
|
4736
|
+
}
|
|
4766
4737
|
});
|
|
4767
|
-
Object.defineProperty(exports,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4738
|
+
Object.defineProperty(exports, "createStorageClient", {
|
|
4739
|
+
enumerable: true,
|
|
4740
|
+
get: function() {
|
|
4741
|
+
return createStorageClient;
|
|
4742
|
+
}
|
|
4772
4743
|
});
|
|
4773
|
-
Object.defineProperty(exports,
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4744
|
+
Object.defineProperty(exports, "directionEmoji", {
|
|
4745
|
+
enumerable: true,
|
|
4746
|
+
get: function() {
|
|
4747
|
+
return directionEmoji;
|
|
4748
|
+
}
|
|
4778
4749
|
});
|
|
4779
|
-
Object.defineProperty(exports,
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4750
|
+
Object.defineProperty(exports, "dkg_exports", {
|
|
4751
|
+
enumerable: true,
|
|
4752
|
+
get: function() {
|
|
4753
|
+
return dkg_exports;
|
|
4754
|
+
}
|
|
4784
4755
|
});
|
|
4785
|
-
Object.defineProperty(exports,
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4756
|
+
Object.defineProperty(exports, "emptyCollectionResult", {
|
|
4757
|
+
enumerable: true,
|
|
4758
|
+
get: function() {
|
|
4759
|
+
return emptyCollectionResult;
|
|
4760
|
+
}
|
|
4790
4761
|
});
|
|
4791
|
-
Object.defineProperty(exports,
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4762
|
+
Object.defineProperty(exports, "fetchStatusError", {
|
|
4763
|
+
enumerable: true,
|
|
4764
|
+
get: function() {
|
|
4765
|
+
return fetchStatusError;
|
|
4766
|
+
}
|
|
4796
4767
|
});
|
|
4797
|
-
Object.defineProperty(exports,
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4768
|
+
Object.defineProperty(exports, "fetchStatusPending", {
|
|
4769
|
+
enumerable: true,
|
|
4770
|
+
get: function() {
|
|
4771
|
+
return fetchStatusPending;
|
|
4772
|
+
}
|
|
4802
4773
|
});
|
|
4803
|
-
Object.defineProperty(exports,
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4774
|
+
Object.defineProperty(exports, "fetchStatusRejected", {
|
|
4775
|
+
enumerable: true,
|
|
4776
|
+
get: function() {
|
|
4777
|
+
return fetchStatusRejected;
|
|
4778
|
+
}
|
|
4808
4779
|
});
|
|
4809
|
-
Object.defineProperty(exports,
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4780
|
+
Object.defineProperty(exports, "fetchStatusSuccess", {
|
|
4781
|
+
enumerable: true,
|
|
4782
|
+
get: function() {
|
|
4783
|
+
return fetchStatusSuccess;
|
|
4784
|
+
}
|
|
4814
4785
|
});
|
|
4815
|
-
Object.defineProperty(exports,
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4786
|
+
Object.defineProperty(exports, "fetchStatusTimeout", {
|
|
4787
|
+
enumerable: true,
|
|
4788
|
+
get: function() {
|
|
4789
|
+
return fetchStatusTimeout;
|
|
4790
|
+
}
|
|
4820
4791
|
});
|
|
4821
|
-
Object.defineProperty(exports,
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4792
|
+
Object.defineProperty(exports, "getWithIndicator", {
|
|
4793
|
+
enumerable: true,
|
|
4794
|
+
get: function() {
|
|
4795
|
+
return getWithIndicator;
|
|
4796
|
+
}
|
|
4826
4797
|
});
|
|
4827
|
-
Object.defineProperty(exports,
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4798
|
+
Object.defineProperty(exports, "groupStateDir", {
|
|
4799
|
+
enumerable: true,
|
|
4800
|
+
get: function() {
|
|
4801
|
+
return groupStateDir;
|
|
4802
|
+
}
|
|
4832
4803
|
});
|
|
4833
|
-
Object.defineProperty(exports,
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4804
|
+
Object.defineProperty(exports, "isVerbose", {
|
|
4805
|
+
enumerable: true,
|
|
4806
|
+
get: function() {
|
|
4807
|
+
return isVerbose;
|
|
4808
|
+
}
|
|
4838
4809
|
});
|
|
4839
|
-
Object.defineProperty(exports,
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4810
|
+
Object.defineProperty(exports, "parallelFetch", {
|
|
4811
|
+
enumerable: true,
|
|
4812
|
+
get: function() {
|
|
4813
|
+
return parallelFetch;
|
|
4814
|
+
}
|
|
4844
4815
|
});
|
|
4845
|
-
Object.defineProperty(exports,
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4816
|
+
Object.defineProperty(exports, "parallelFetchConfigWithTimeout", {
|
|
4817
|
+
enumerable: true,
|
|
4818
|
+
get: function() {
|
|
4819
|
+
return parallelFetchConfigWithTimeout;
|
|
4820
|
+
}
|
|
4850
4821
|
});
|
|
4851
|
-
Object.defineProperty(exports,
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4822
|
+
Object.defineProperty(exports, "parallelSend", {
|
|
4823
|
+
enumerable: true,
|
|
4824
|
+
get: function() {
|
|
4825
|
+
return parallelSend;
|
|
4826
|
+
}
|
|
4856
4827
|
});
|
|
4857
|
-
Object.defineProperty(exports,
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4828
|
+
Object.defineProperty(exports, "putWithIndicator", {
|
|
4829
|
+
enumerable: true,
|
|
4830
|
+
get: function() {
|
|
4831
|
+
return putWithIndicator;
|
|
4832
|
+
}
|
|
4862
4833
|
});
|
|
4863
|
-
Object.defineProperty(exports,
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4834
|
+
Object.defineProperty(exports, "setVerbose", {
|
|
4835
|
+
enumerable: true,
|
|
4836
|
+
get: function() {
|
|
4837
|
+
return setVerbose;
|
|
4838
|
+
}
|
|
4868
4839
|
});
|
|
4869
|
-
Object.defineProperty(exports,
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4840
|
+
Object.defineProperty(exports, "sign_exports", {
|
|
4841
|
+
enumerable: true,
|
|
4842
|
+
get: function() {
|
|
4843
|
+
return sign_exports;
|
|
4844
|
+
}
|
|
4874
4845
|
});
|
|
4875
|
-
|
|
4846
|
+
|
|
4847
|
+
//# sourceMappingURL=cmd-BfZjC3Uh.cjs.map
|