Skip to Content
oxcrypto

Threshold signatures

Split a signing key between participants and sign with a quorum.

A threshold signature scheme splits one signing key into shares. Any min_signers of the max_signers participants can produce a signature that verifies under the single group verifying key; fewer cannot.

Protocols with several rounds are exposed as typed state objects. Each round method consumes its state and returns the next one, so a state cannot be used twice. Using a consumed state raises ValueError. State objects cannot be copied or pickled.

Invalid parameters, malformed packages and failed protocol checks raise ValueError. Inputs of the wrong type raise TypeError.

Algorithms

  • FROST RFC 9591 two-round Schnorr threshold signatures over Ed25519, Ed448 and ristretto255.

Zeroization

Key packages, signing nonces and DKG round states own Rust values from the upstream crates. Every wrapped secret type implements ZeroizeOnDrop, which is checked when oxcrypto is compiled, so the signing share, the nonces and the DKG polynomial coefficients are overwritten with zeros when the object is freed. Serialized secret packages are held in zeroizing buffers until they are copied into Python bytes. oxcrypto has not verified the upstream zeroization independently.

Zeroization does not cover:

  • Secret shares, key packages and DKG round 2 packages returned as Python bytes. Python owns these objects. oxcrypto does not wipe them, and Python may copy them or leave them in freed memory.
  • Short-lived copies the upstream crates make during a call. See the FROST page for the list.

Note

Treat zeroization as defense in depth. It does not guarantee that secrets are gone from process memory.

On this page