Trait aleph_bft::PartialMultisignature
source · pub trait PartialMultisignature: Signature {
type Signature: Signature;
// Required method
fn add_signature(
self,
signature: &Self::Signature,
index: NodeIndex
) -> Self;
}
Expand description
A type to which signatures can be aggregated.
Any signature can be added to multisignature.
After adding sufficiently many signatures, the partial multisignature becomes a “complete”
multisignature.
Whether a multisignature is complete, can be verified with MultiKeychain::is_complete
method.
The signature and the index passed to the add_signature
method are required to be valid.
Required Associated Types§
Required Methods§
sourcefn add_signature(self, signature: &Self::Signature, index: NodeIndex) -> Self
fn add_signature(self, signature: &Self::Signature, index: NodeIndex) -> Self
Adds the signature.
Object Safety§
This trait is not object safe.