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.
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.