Enum core::identifier::derive::KeyDerivator
[−]pub enum KeyDerivator {
Ed25519,
Secp256k1,
}
Expand description
Enumeration with key derivator types
Variants
Ed25519
Secp256k1
Implementations
impl KeyDerivator
impl KeyDerivator
pub fn derive(&self, public_key: &[u8]) -> KeyIdentifier
pub fn to_signature_derivator(&self) -> SignatureDerivator
Trait Implementations
impl BorshDeserialize for KeyDerivator
impl BorshDeserialize for KeyDerivator
fn deserialize(buf: &mut &[u8]) -> Result<KeyDerivator, Error>
fn deserialize(buf: &mut &[u8]) -> Result<KeyDerivator, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
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.
impl BorshSerialize for KeyDerivator
impl BorshSerialize for KeyDerivator
impl Clone for KeyDerivator
impl Clone for KeyDerivator
fn clone(&self) -> KeyDerivator
fn clone(&self) -> KeyDerivator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for KeyDerivator
impl Debug for KeyDerivator
impl Derivator for KeyDerivator
impl Derivator for KeyDerivator
fn code_len(&self) -> usize
fn derivative_len(&self) -> usize
fn to_str(&self) -> String
fn material_len(&self) -> usize
impl<'de> Deserialize<'de> for KeyDerivator
impl<'de> Deserialize<'de> for KeyDerivator
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyDerivator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<KeyDerivator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for KeyDerivator
impl FromStr for KeyDerivator
fn from_str(s: &str) -> Result<KeyDerivator, <KeyDerivator as FromStr>::Err>
fn from_str(s: &str) -> Result<KeyDerivator, <KeyDerivator as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl Hash for KeyDerivator
impl Hash for KeyDerivator
impl PartialEq<KeyDerivator> for KeyDerivator
impl PartialEq<KeyDerivator> for KeyDerivator
fn eq(&self, other: &KeyDerivator) -> bool
fn eq(&self, other: &KeyDerivator) -> bool
impl PartialOrd<KeyDerivator> for KeyDerivator
impl PartialOrd<KeyDerivator> for KeyDerivator
fn partial_cmp(&self, other: &KeyDerivator) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyDerivator) -> Option<Ordering>
1.0.0 · sourcefn 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 Serialize for KeyDerivator
impl Serialize for KeyDerivator
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.