pub enum SignatureType {
Ed25519_Oasis,
Ed25519_Pure,
Ed25519_PrehashedSha512,
Secp256k1_Oasis,
Secp256k1_PrehashedKeccak256,
Secp256k1_PrehashedSha256,
Sr25519_Pure,
Secp256r1_PrehashedSha256,
Secp384r1_PrehashedSha384,
}
Expand description
A specific combination of signature and hash.
Variants§
Ed25519_Oasis
Ed25519_Pure
Ed25519_PrehashedSha512
Secp256k1_Oasis
Secp256k1_PrehashedKeccak256
Secp256k1_PrehashedSha256
Sr25519_Pure
Secp256r1_PrehashedSha256
Secp384r1_PrehashedSha384
Implementations§
Source§impl SignatureType
impl SignatureType
pub fn as_int(&self) -> u8
pub fn is_prehashed(&self) -> bool
pub fn is_ed25519_variant(&self) -> bool
pub fn is_secp256k1_variant(&self) -> bool
pub fn is_secp256r1_variant(&self) -> bool
pub fn is_secp384r1_variant(&self) -> bool
pub fn is_sr25519_variant(&self) -> bool
Trait Implementations§
Source§impl Clone for SignatureType
impl Clone for SignatureType
Source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SignatureType
impl Debug for SignatureType
Source§impl Decode for SignatureType
impl Decode for SignatureType
Source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.Source§impl Encode for SignatureType
impl Encode for SignatureType
Source§impl Hash for SignatureType
impl Hash for SignatureType
Source§impl Ord for SignatureType
impl Ord for SignatureType
Source§fn cmp(&self, other: &SignatureType) -> Ordering
fn cmp(&self, other: &SignatureType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignatureType
impl PartialEq for SignatureType
Source§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
Source§impl TryFrom<u8> for SignatureType
impl TryFrom<u8> for SignatureType
impl Copy for SignatureType
impl Eq for SignatureType
impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
impl Freeze for SignatureType
impl RefUnwindSafe for SignatureType
impl Send for SignatureType
impl Sync for SignatureType
impl Unpin for SignatureType
impl UnwindSafe for SignatureType
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.