Enum taple_core::KeyDerivator
source · pub enum KeyDerivator {
Ed25519,
Secp256k1,
}
Expand description
An enumeration of key derivator types.
Variants§
Implementations§
source§impl KeyDerivator
impl KeyDerivator
pub fn derive(&self, public_key: &[u8]) -> KeyIdentifier
pub fn to_signature_derivator(&self) -> SignatureDerivator
Trait Implementations§
source§impl BorshDeserialize for KeyDerivator
impl BorshDeserialize for KeyDerivator
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 KeyDerivator
impl BorshSerialize for KeyDerivator
source§impl Clone for KeyDerivator
impl Clone for KeyDerivator
source§fn clone(&self) -> KeyDerivator
fn clone(&self) -> KeyDerivator
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 KeyDerivator
impl Debug for KeyDerivator
source§impl Derivator for KeyDerivator
impl Derivator for KeyDerivator
source§impl<'de> Deserialize<'de> for KeyDerivator
impl<'de> Deserialize<'de> for KeyDerivator
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 EnumExt for KeyDerivator
impl EnumExt for KeyDerivator
source§impl From<KeyDerivator> for Value
impl From<KeyDerivator> for Value
source§fn from(data: KeyDerivator) -> Self
fn from(data: KeyDerivator) -> Self
Converts to this type from the input type.
source§impl FromStr for KeyDerivator
impl FromStr for KeyDerivator
source§impl Hash for KeyDerivator
impl Hash for KeyDerivator
source§impl PartialEq<KeyDerivator> for KeyDerivator
impl PartialEq<KeyDerivator> for KeyDerivator
source§fn eq(&self, other: &KeyDerivator) -> bool
fn eq(&self, other: &KeyDerivator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<KeyDerivator> for KeyDerivator
impl PartialOrd<KeyDerivator> for KeyDerivator
source§fn partial_cmp(&self, other: &KeyDerivator) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyDerivator) -> 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 KeyDerivator
impl Serialize for KeyDerivator
impl Copy for KeyDerivator
impl Eq for KeyDerivator
impl StructuralEq for KeyDerivator
impl StructuralPartialEq for KeyDerivator
Auto Trait Implementations§
impl RefUnwindSafe for KeyDerivator
impl Send for KeyDerivator
impl Sync for KeyDerivator
impl Unpin for KeyDerivator
impl UnwindSafe for KeyDerivator
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.