[][src]Enum dup_crypto::keys::Sig

pub enum Sig {
    Ed25519(Signature),
    Schnorr(),
}

Store a cryptographic signature.

Variants

Ed25519(Signature)

Store a ed25519 Signature

Schnorr()

Store a Schnorr Signature

Methods

impl Sig[src]

pub fn size_in_bytes(&self) -> usize[src]

Get Sig size in bytes

Trait Implementations

impl Clone for Sig[src]

impl Copy for Sig[src]

impl Debug for Sig[src]

impl<'de> Deserialize<'de> for Sig[src]

impl Display for Sig[src]

impl Eq for Sig[src]

impl GetKeysAlgo for Sig[src]

impl Hash for Sig[src]

impl PartialEq<Sig> for Sig[src]

impl Serialize for Sig[src]

impl Signature for Sig[src]

impl StructuralEq for Sig[src]

impl StructuralPartialEq for Sig[src]

Auto Trait Implementations

impl RefUnwindSafe for Sig

impl Send for Sig

impl Sync for Sig

impl Unpin for Sig

impl UnwindSafe for Sig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.