Enum core::identifier::derive::SignatureDerivator
[−]pub enum SignatureDerivator {
Ed25519Sha512,
ECDSAsecp256k1,
}
Expand description
Enumeration with signature derivator types
Variants
Ed25519Sha512
ECDSAsecp256k1
Implementations
impl SignatureDerivator
impl SignatureDerivator
pub fn derive(&self, sign: &[u8]) -> SignatureIdentifier
Trait Implementations
impl BorshDeserialize for SignatureDerivator
impl BorshDeserialize for SignatureDerivator
fn deserialize(buf: &mut &[u8]) -> Result<SignatureDerivator, Error>
fn deserialize(buf: &mut &[u8]) -> Result<SignatureDerivator, 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 SignatureDerivator
impl BorshSerialize for SignatureDerivator
impl Clone for SignatureDerivator
impl Clone for SignatureDerivator
fn clone(&self) -> SignatureDerivator
fn clone(&self) -> SignatureDerivator
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 SignatureDerivator
impl Debug for SignatureDerivator
impl Derivator for SignatureDerivator
impl Derivator for SignatureDerivator
fn code_len(&self) -> usize
fn derivative_len(&self) -> usize
fn to_str(&self) -> String
fn material_len(&self) -> usize
impl FromStr for SignatureDerivator
impl FromStr for SignatureDerivator
fn from_str(
s: &str
) -> Result<SignatureDerivator, <SignatureDerivator as FromStr>::Err>
fn from_str(
s: &str
) -> Result<SignatureDerivator, <SignatureDerivator as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl Hash for SignatureDerivator
impl Hash for SignatureDerivator
impl PartialEq<SignatureDerivator> for SignatureDerivator
impl PartialEq<SignatureDerivator> for SignatureDerivator
fn eq(&self, other: &SignatureDerivator) -> bool
fn eq(&self, other: &SignatureDerivator) -> bool
impl PartialOrd<SignatureDerivator> for SignatureDerivator
impl PartialOrd<SignatureDerivator> for SignatureDerivator
fn partial_cmp(&self, other: &SignatureDerivator) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureDerivator) -> 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 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
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.