Creates a DKG helper bound to the default hash context.
Returns the subgroup order used by the FROST and DKG primitives.
The Baby Jubjub subgroup order.
Returns the additive identity for the Baby Jubjub subgroup.
The affine identity point.
Samples a scalar uniformly from the subgroup order.
When true, uses rejection sampling to avoid bias.
A uniformly sampled scalar.
Multiplies the subgroup generator by a scalar.
Scalar multiplier.
The resulting affine point.
Multiplies an affine point by a scalar.
Affine point.
Scalar multiplier.
The resulting affine point.
Serializes an affine subgroup point using RFC 8032-style compression.
Affine point to serialize.
The compressed 32-byte point encoding.
Deserializes a compressed point and verifies subgroup membership.
Compressed point bytes.
The decoded affine point.
Serializes a scalar into the canonical 32-byte form expected by the repo.
Scalar to serialize.
The serialized scalar bytes.
Deserializes a scalar from the canonical 32-byte form.
Serialized scalar bytes.
The decoded scalar.
Compares two affine points for coordinate equality.
First affine point.
Second affine point.
true when both coordinates match.
Converts a scalar into the repo's canonical 32-byte little-endian form.
Scalar to encode.
Encoded bytes.
Decodes a scalar from the repo's canonical 32-byte little-endian form.
Encoded bytes.
The decoded scalar.
Reduces a bigint modulo the full curve order.
Value to reduce.
The reduced scalar.
Reduces a bigint modulo the prime-order subgroup.
Value to reduce.
The reduced scalar.
Computes a multiplicative inverse in the subgroup field.
Scalar to invert.
The multiplicative inverse modulo the subgroup order.
Applies EdDSA bit pruning to a 32-byte buffer.
Input bytes.
The pruned buffer.
Derives the Baby Jubjub secret scalar for the provided private key.
Private key bytes.
The derived subgroup scalar divided by the cofactor.
Maps an Edwards point into Montgomery coordinates when the mapping exists.
Edwards affine point.
Edwards x-coordinate.
Edwards y-coordinate.
The mapped Montgomery coordinates.
Evaluates the sharing polynomial for a participant identifier.
Participant identifier.
Polynomial coefficients in ascending order.
The polynomial value modulo the subgroup order.
Generates trusted-dealer coefficients, shares, and commitments.
Dealer secret used as the constant term, which is the polynomial's base value.
Total number of participant shares to generate.
Threshold required for reconstruction or signing.
Dealer shares, polynomial coefficients, and public commitments.
Computes Baby Jubjub commitments for each polynomial coefficient.
Polynomial coefficients in ascending order.
The per-coefficient public commitments.
Verifies a single Feldman VSS share against a dealer's commitments.
Participant share input.
Participant identifier.
Share scalar for that participant.
Dealer commitment vector.
Threshold parameter kept for compatibility.
true when the share matches the commitment vector.
Splits a secret into per-participant shares using the supplied coefficients.
Secret used as the constant term, which is the polynomial's base value.
Additional polynomial coefficients.
Total number of shares to derive.
The derived shares and the full coefficient list including s.
Derives the group public key, participant public keys, and viewing key.
Total number of participants.
Threshold used to evaluate participant public keys.
Dealer commitment vector.
Derived group metadata for the trusted-dealer flow.
StaticassertValidates that recipient identifiers are strictly increasing positive integers.
Recipient identifier list to validate.
Combines every dealer's constant commitment into the group public key.
Commitment vectors from every dealer.
The aggregate group public key.
Verifies that every dealer commitment lives in the expected subgroup.
Commitment vectors from every dealer.
true when all commitments live in the expected subgroup.
Verifies a finalized participant share against a dealer's commitments.
Participant identifier.
Share scalar for that participant.
Dealer commitment vector.
true when the share matches the commitments.
Computes the Lagrange coefficient for a participant identifier at zero.
Participant identifiers in the reconstruction subset.
Identifier to evaluate.
The interpolation coefficient reduced modulo the subgroup order.
Reconstructs the polynomial constant from a threshold subset of shares.
Threshold subset of participant shares.
The reconstructed constant term.
Derives a deterministic viewing key from the set of dealer commitments.
By design this is a pure function of the (broadcast) dealer commitments, so every participant independently derives the same viewing key without any extra exchange. This is intentional: each share-holder must load the same shareable viewing key into the engine to have view access to the funds the group controls. Consequently this value is NOT secret against anyone who observes the dealer commitments — its confidentiality relies on those commitments not leaking outside the participant set, not on per-participant secret entropy.
Commitment vectors from every dealer.
The derived 32-byte shared viewing private key.
Finalizes a participant's aggregate signing share from all dealer shares.
Participant identifier.
Share contribution from every dealer.
Commitment vectors from every dealer.
The finalized participant share, group public key, and viewing key.
Computes the canonical digest of the full dealer-commitment set.
Commitment vectors from every dealer.
Digest used as AAD when encrypting and decrypting shares.
Encrypts each dealer share for its intended recipient with AES-GCM + AAD.
Map of recipient id to share scalar.
Map of recipient id to derived shared secret.
Commitment vectors from every dealer.
A map of recipient id to encrypted share payload.
Decrypts a single encrypted share for the specified participant.
Encrypted share payload.
AES-GCM key bytes.
Recipient participant identifier.
Commitment vectors from every dealer.
The decrypted share scalar.
ReadonlycurveReadonlygeneratorReadonlyFrReadonlyorderReadonlyidentityReadonlyfieldReadonlycontext
Trusted-dealer and coordinator-less DKG primitive helpers for Baby Jubjub FROST.
This class exposes the math and encrypted-share transport helpers used by
DKGManager, but does not enforce end-to-end protocol sequencing itself.