Enum oasis_runtime_sdk::crypto::signature::SignatureType
source · 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§fn eq(&self, other: &SignatureType) -> bool
fn eq(&self, other: &SignatureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
source§fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.