Crate dkg_recovery

Crate dkg_recovery 

Source
Expand description

§Distributed Key Generation - Recovery

A utility function to recover a key from its secret shares.

Keys likely SHOULD NOT ever be recovered, making this primarily intended for testing purposes. Instead, the shares of the key should be used to produce shares for the desired action, allowing using the key while never reconstructing it.

Before being smashed, this crate was audited by Cypher Stack in March 2023, culminating in commit 669d2dbffc1dafb82a09d9419ea182667115df06. Any subsequent changes have not undergone auditing.

Structs§

Participant
The ID of a participant, defined as a non-zero u16.
ThresholdKeys
Threshold keys usable for signing.
ThresholdParams
Parameters for a multisig.
ThresholdView
View of keys, interpolated and with the expected linear combination taken for usage.

Enums§

DkgError
Errors encountered when working with threshold keys.
Interpolation
A method of interpolation.
RecoveryError
Errors encountered when recovering a secret-shared key from a collection of dkg::ThresholdKeys.

Functions§

recover_key
Recover a shared secret from a collection of dkg::ThresholdKeys.