Trait aleph_bft::MultiKeychain [−][src]
pub trait MultiKeychain: KeyBox {
type PartialMultisignature: PartialMultisignature<Signature = Self::Signature>;
fn from_signature(
&self,
signature: &Self::Signature,
index: NodeIndex
) -> Self::PartialMultisignature;
fn is_complete(
&self,
msg: &[u8],
partial: &Self::PartialMultisignature
) -> bool;
}
Expand description
Extends KeyBox with multisigning functionalities.
A single Signature can be rised to a Multisignature. Allows to verify whether a partial multisignature is complete (and valid).
Associated Types
type PartialMultisignature: PartialMultisignature<Signature = Self::Signature>
Required methods
fn from_signature(
&self,
signature: &Self::Signature,
index: NodeIndex
) -> Self::PartialMultisignature
fn from_signature(
&self,
signature: &Self::Signature,
index: NodeIndex
) -> Self::PartialMultisignature
Transform a single signature to a multisignature consisting of the signature.
fn is_complete(&self, msg: &[u8], partial: &Self::PartialMultisignature) -> bool
fn is_complete(&self, msg: &[u8], partial: &Self::PartialMultisignature) -> bool
Checks if enough signatures have beed added.