Creates a DKG manager for a named participant.
Human-readable participant name.
OptionalsecretCommKey: Uint8Array<ArrayBufferLike>
Optional 32-byte communication key; random if omitted.
Lists peers whose dealer commitments are still outstanding.
Roster ids whose dealer commitments have not yet been collected.
Lists peers whose encrypted-share bundles are still outstanding.
Roster ids whose encrypted-share bundles have not yet been collected.
Projects the two progress dimensions onto the legacy linear flow state. State is derived from data, never assigned imperatively, so collection of the final commitment/share automatically advances the reported state.
The current DKG flow state.
Coordination snapshot for UIs and protocol drivers: the derived state plus exactly what this participant is still waiting on from peers.
Current state and the roster ids with outstanding artifacts.
Serializes the in-progress (or finalized) session to a JSON-safe snapshot.
The snapshot includes secret material (this participant's communication key and any decrypted local shares); persist it only to trusted storage.
A versioned, hex-encoded snapshot suitable for JSON.stringify.
StaticfromRebuilds a manager from a snapshot produced by DKGManager#toJSON.
A snapshot at the current SNAPSHOT_VERSION.
A manager restored to the snapshot's exact orchestration state.
Runs a single trusted-dealer key generation flow and returns finalized outputs.
Dealer secret used as the constant polynomial term.
Total number of participant shares to derive.
Minimum number of shares required for signing/recovery.
Finalized trusted-dealer shares, group public key, and viewing key.
Returns this participant's announcement payload for roster construction.
The participant name and public X25519 communication key.
Assigns the local participant identifier once the roster is known.
Positive integer identifier assigned to this participant.
Assigns the full participant roster and derives per-peer shared secrets. The local participant's own announcement key must be present in the roster.
Mapping of participant id to 32-byte public communication key.
Generates local polynomial commitments and dealer shares for a DKG round. Produces only — the caller broadcasts the returned commitments and feeds them back through DKGManager#addParticipantCommitments, exactly as it does for every peer dealer (one uniform collection path).
Dealer secret used as the constant polynomial term.
Total number of participants expected in the roster.
Minimum number of shares required by the DKG.
The dealer's per-recipient shares and public commitments.
Stores a dealer's public commitments for later verification and finalization.
Dealer identifier.
Public commitments broadcast by that dealer.
Stores a dealer's encrypted share bundle for this DKG session.
Dealer identifier.
Map of recipient id to encrypted share payload.
Encrypts local dealer shares for each roster participant using AES-GCM.
A per-recipient map of encrypted share payloads.
Decrypts the caller's shares from every dealer once all bundles are available.
A map of dealer id to decrypted share scalar.
Finalizes the participant's aggregate signing share and group metadata.
The finalized participant share, group public key, and viewing key.
Derives the public X25519 communication key used for share transport.
Private 32-byte X25519-compatible secret key.
The public communication key.
Derives a shared secret with another participant's communication key.
Another participant's public communication key.
The derived shared secret.
Human-readable participant name used in announcements.
Underlying trusted-dealer / coordinator-less DKG primitive.
Local participant identifier once the roster is known.
Public X25519 communication key announced to peers.
Mapping of participant id to public communication key.
Per-peer shared secrets derived from the roster.
Participant identifiers this dealer produced shares for.
Encrypted share bundles keyed by dealer id then recipient id.
Stateful orchestration helper for trusted-dealer and coordinator-less DKG.
Instances are single-flow helpers. Recreate them for new sessions instead of trying to reuse finalized state. In-progress sessions can be persisted and resumed across process restarts via DKGManager#toJSON and DKGManager.fromJSON.