Enum redgold_schema::structs::SignatureType
source · #[repr(i32)]pub enum SignatureType {
Ecdsa = 0,
EcdsaBitcoinSignMessageHardware = 1,
}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.
Implementations§
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 Default for SignatureType
impl Default for SignatureType
source§fn default() -> SignatureType
fn default() -> SignatureType
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SignatureType> for i32
impl From<SignatureType> for i32
source§fn from(value: SignatureType) -> i32
fn from(value: SignatureType) -> i32
Converts to this type from the input type.
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,
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 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 StructuralEq for SignatureType
impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more