Expand description
FROST(Ed25519, SHA-512) threshold signing (RFC 9591).
Wraps the audited Zcash Foundation frost-ed25519 crate. A key is split
among max_signers participants so that any min_signers of them can
produce a signature together, WITHOUT the full private key ever being
reconstructed at any point, not even during signing. This is distinct from
Shamir secret sharing (see the Python vouch.recovery module and its
split_secret/combine_shares), where the secret IS reconstructed; FROST
is for live, repeated signing across a threshold of custodians.
The critical property that makes this a drop-in fit for Vouch: the
aggregated signature is a STANDARD Ed25519 signature (RFC 8032), so it
verifies with the existing crate::keys::verify and needs no new proof
type, cryptosuite, or verifier anywhere in the protocol. A verifier cannot
tell whether a credential was signed by one key or by a threshold of
shares.
Design note: generate_key mints a FRESH threshold-native group
identity (via a trusted dealer), rather than converting an existing
single-key Ed25519 identity into a threshold one. This is deliberate: a
standard Ed25519 private key is derived from its 32-byte seed via
SHA-512-and-clamp (RFC 8032 §5.1.5), and the resulting scalar is not
generally a canonical element of the group order used by FROST’s scalar
field. Naively reducing it would silently produce a DIFFERENT public key,
which would break the DID it was meant to protect. Treat a threshold
identity as its own identity from the start, exactly like
generate_identity, and enroll it as a device or root the same way any
other Vouch identity is enrolled.
Ceremony (four steps, mirroring RFC 9591 §5):
generate_key: a trusted dealer mintsmax_signerskey shares and a group public key. (Full distributed key generation, where no single party ever sees a complete key even momentarily, is a further step not implemented here; the dealer only ever handles shares and the public key, never a reconstructed private scalar.)commit: each signer, locally, generates single-use signing nonces (kept secret, never transmitted) and a public commitment (safe to send to the coordinator).sign_share: each signer, given the message and every signer’s commitment, produces a signature share using its own key share and nonces.aggregate: the coordinator combinesmin_signers(or more) signature shares into one final, standard Ed25519 signature.
There is deliberately no reconstruct function exposed here. The
underlying crate provides one (frost_ed25519::keys::reconstruct) as an
explicit escape hatch documented as NOT required for signing; Vouch does
not wrap or expose it, so nothing in this module can assemble the full key.
Structs§
- Generate
KeyResult - Output of
generate_key. - Group
Public Key - The group’s public identity.
verifying_keyis a standard 32-byte Ed25519 public key: it is what you publish as the DID’s verification method key, exactly like any other Vouch identity’s public key. - KeyShare
- One participant’s share of a threshold key.
key_packageis secret key material (a scalar share of the group secret) and must be kept only by the participant it was issued to. - Round1
- Round 1 output for one signer: secret nonces (kept locally, used exactly once) and a public commitment (sent to the coordinator).
Functions§
- aggregate
- Combine
min_signers(or more) signature shares into the final, standard Ed25519 signature. Verify the result withcrate::keys::verifyagainstgroup_public_key.verifying_key, exactly like any other Vouch credential. - commit
- Round 1: a signer generates its single-use nonces and public commitment.
noncesMUST be used for exactly onesign_sharecall and then discarded; reusing them leaks the signer’s key share. - generate_
key - Mint a fresh threshold-native Ed25519 identity:
max_signerskey shares, anymin_signersof which can sign together, and a group public key. The dealer performing this call sees every share transiently (to hand them out) but never a reconstructed private key; the underlying crate samples the group secret directly as shares via verifiable secret sharing, never materializing it as a single scalar. - sign_
share - Round 2: given the message and every participating signer’s commitment,
this signer produces its signature share using its own key share and its
own (single-use) nonces from
commit.commitments_by_participantmust include an entry for every signer taking part in this signature, including this one.