Skip to main content

Module share_envelope

Module share_envelope 

Source
Expand description

Versioned share envelope — canonical wire format for threshold shares.

Provides:

  • Version field for forward/backward compatibility
  • Scheme identifier (CMP20, FROST-P256, FROST-ed25519, GG18)
  • Quorum association
  • Tamper detection via HMAC-SHA256 integrity tag

The envelope wraps scheme-specific share bytes without interpreting them. Each scheme (CMP20, FROST, etc.) serializes its own share type to bytes, then the envelope adds the versioning and integrity layer.

Structs§

ShareEnvelope
A versioned, integrity-protected threshold share envelope.

Enums§

EnvelopeError
Errors during envelope operations.

Constants§

ENVELOPE_VERSION
Current envelope format version.