Enum taple_core::identifier::derive::SignatureDerivator   
source · pub enum SignatureDerivator {
    Ed25519Sha512,
    ECDSAsecp256k1,
}Expand description
Enumeration with signature derivator types
Variants§
Implementations§
source§impl SignatureDerivator
 
impl SignatureDerivator
pub fn derive(&self, sign: &[u8]) -> SignatureIdentifier
Trait Implementations§
source§impl BorshDeserialize for SignatureDerivator
 
impl BorshDeserialize for SignatureDerivator
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
 
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
 
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for SignatureDerivator
 
impl BorshSerialize for SignatureDerivator
source§impl Clone for SignatureDerivator
 
impl Clone for SignatureDerivator
source§fn clone(&self) -> SignatureDerivator
 
fn clone(&self) -> SignatureDerivator
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 SignatureDerivator
 
impl Debug for SignatureDerivator
source§impl Derivator for SignatureDerivator
 
impl Derivator for SignatureDerivator
source§impl EnumExt for SignatureDerivator
 
impl EnumExt for SignatureDerivator
source§impl FromStr for SignatureDerivator
 
impl FromStr for SignatureDerivator
source§impl Hash for SignatureDerivator
 
impl Hash for SignatureDerivator
source§impl PartialEq<SignatureDerivator> for SignatureDerivator
 
impl PartialEq<SignatureDerivator> for SignatureDerivator
source§fn eq(&self, other: &SignatureDerivator) -> bool
 
fn eq(&self, other: &SignatureDerivator) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SignatureDerivator> for SignatureDerivator
 
impl PartialOrd<SignatureDerivator> for SignatureDerivator
source§fn partial_cmp(&self, other: &SignatureDerivator) -> Option<Ordering>
 
fn partial_cmp(&self, other: &SignatureDerivator) -> 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 moreimpl Copy for SignatureDerivator
impl Eq for SignatureDerivator
impl StructuralEq for SignatureDerivator
impl StructuralPartialEq for SignatureDerivator
Auto Trait Implementations§
impl RefUnwindSafe for SignatureDerivator
impl Send for SignatureDerivator
impl Sync for SignatureDerivator
impl Unpin for SignatureDerivator
impl UnwindSafe for SignatureDerivator
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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.