#[repr(i32)]pub enum SignatureType {
Ecdsa = 0,
EcdsaBitcoinSignMessageHardware = 1,
EcdsaRecoverable = 2,
}Expand description
The verification type associated with a signature. Denotes common patterns, i.e. the default common ECDSA curve and parameters, or a custom curve denoted by a particular enum, or a particular signing algorithm. Each specific curve type or signing algorithm should be assigned it’s own enum here, so that the signing flow can be recreated from a single reference.
Variants§
Ecdsa = 0
The most common secp256k1 curve used for Bitcoin and Ethereum, corresponds to the standard ECDSA signature used by most hardware / software wallets
EcdsaBitcoinSignMessageHardware = 1
The same curve as above, but following the Bitcoin Message signing strategy in order to make use of existing hardware cold wallets, can be deprecated once hardware wallet support is added for native signatures matching Redgold schema.
EcdsaRecoverable = 2
The raw RSV signature outputs, used for ETH compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for SignatureType
impl Clone for SignatureType
Source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignatureType
impl Debug for SignatureType
Source§impl Default for SignatureType
impl Default for SignatureType
Source§fn default() -> SignatureType
fn default() -> SignatureType
Source§impl<'de> Deserialize<'de> for SignatureType
impl<'de> Deserialize<'de> for SignatureType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<SignatureType> for i32
impl From<SignatureType> for i32
Source§fn from(value: SignatureType) -> i32
fn from(value: SignatureType) -> i32
Source§impl FromStr for SignatureType
impl FromStr for SignatureType
Source§impl Hash for SignatureType
impl Hash for SignatureType
Source§impl IntoEnumIterator for SignatureType
impl IntoEnumIterator for SignatureType
type Iterator = SignatureTypeIter
fn iter() -> SignatureTypeIter ⓘ
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,
Source§impl PartialEq for SignatureType
impl PartialEq for SignatureType
Source§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
Source§impl Serialize for SignatureType
impl Serialize for SignatureType
Source§impl TryFrom<&str> for SignatureType
impl TryFrom<&str> 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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more