Struct aleph_bft::DefaultMultiKeychain [−][src]
pub struct DefaultMultiKeychain<KB: KeyBox> { /* fields omitted */ }
Expand description
Keybox wrapper which implements MultiKeychain such that a partial multisignature is a list of signatures and a partial multisignature is considered complete if it contains more than 2N/3 signatures.
Note: this way of multisigning is very inefficient, and should be used only for testing.
Implementations
Trait Implementations
Signs a message msg
.
Returns the total number of known public keys.
type PartialMultisignature = SignatureSet<KB::Signature>
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.
Checks if enough signatures have beed added.
Auto Trait Implementations
impl<KB> RefUnwindSafe for DefaultMultiKeychain<KB> where
KB: RefUnwindSafe,
impl<KB> Send for DefaultMultiKeychain<KB>
impl<KB> Sync for DefaultMultiKeychain<KB>
impl<KB> Unpin for DefaultMultiKeychain<KB> where
KB: Unpin,
impl<KB> UnwindSafe for DefaultMultiKeychain<KB> where
KB: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more