Struct aleph_bft::UncheckedSigned [−][src]
Expand description
A pair consisting of an instance of the Signable
trait and an (arbitrary) signature.
The method [UncheckedSigned::check]
can be used to upgrade this struct
to
[Signed<'a, T, KB>]
which ensures that the signature matches the signed object.
Implementations
pub fn check_multi<MK: MultiKeychain<PartialMultisignature = S>>(
self,
keychain: &MK
) -> Result<Multisigned<'_, T, MK>, SignatureError<T, S>>
pub fn check_multi<MK: MultiKeychain<PartialMultisignature = S>>(
self,
keychain: &MK
) -> Result<Multisigned<'_, T, MK>, SignatureError<T, S>>
Verifies whether the multisignature matches the signed data.
Trait Implementations
impl<'a, T: Signable, MK: MultiKeychain> From<Multisigned<'a, T, MK>> for UncheckedSigned<T, MK::PartialMultisignature>
impl<'a, T: Signable, MK: MultiKeychain> From<Multisigned<'a, T, MK>> for UncheckedSigned<T, MK::PartialMultisignature>
Performs the conversion.
Performs the conversion.
impl<T: PartialEq + Signable, S: PartialEq + Signature> PartialEq<UncheckedSigned<T, S>> for UncheckedSigned<T, S>
impl<T: PartialEq + Signable, S: PartialEq + Signature> PartialEq<UncheckedSigned<T, S>> for UncheckedSigned<T, S>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T: Signable, S: Signature> EncodeLike<UncheckedSigned<T, S>> for UncheckedSigned<T, S> where
T: Encode,
T: Encode,
S: Encode,
S: Encode,
Auto Trait Implementations
impl<T, S> RefUnwindSafe for UncheckedSigned<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for UncheckedSigned<T, S> where
T: Send,
impl<T, S> Sync for UncheckedSigned<T, S> where
T: Sync,
impl<T, S> Unpin for UncheckedSigned<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for UncheckedSigned<T, S> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more