Trait ThresholdCoordinator

Source
pub trait ThresholdCoordinator: Coordinator {
    type Identity;
    type Share;

    // Required methods
    fn identity(&self, index: Self::Index) -> Option<&Self::Identity>;
    fn share(&self, index: Self::Index) -> Option<&Self::Share>;
}
Expand description

ThresholdCoordinator is the interface responsible for managing which identity (typically a group polynomial with a fixed constant factor) and share for a signer is active at a given time.

Required Associated Types§

Source

type Identity

Identity is the type against which partial signatures are verified.

Source

type Share

Share is the type used to generate a partial signature that can be verified against Identity.

Required Methods§

Source

fn identity(&self, index: Self::Index) -> Option<&Self::Identity>

Returns the identity (typically a group polynomial with a fixed constant factor) at the given index. This is used to verify partial signatures from participants enumerated in Coordinator::signers.

Source

fn share(&self, index: Self::Index) -> Option<&Self::Share>

Returns share to sign with at a given index. After resharing, the share may change (and old shares may be deleted).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§