[][src]Enum dup_crypto::keys::PubKey

pub enum PubKey {
    Ed25519(PublicKey),
    Schnorr(),
}

Store a cryptographic public key.

Variants

Ed25519(PublicKey)

Store a ed25519 public key.

Schnorr()

Store a Schnorr public key.

Methods

impl PubKey[src]

pub fn from_bytes(bytes: &[u8]) -> Result<Self, PubkeyFromBytesError>[src]

Create pubkey from bytes

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

Compute PubKey size in bytes

Trait Implementations

impl Clone for PubKey[src]

impl Copy for PubKey[src]

impl Debug for PubKey[src]

impl Default for PubKey[src]

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

impl Display for PubKey[src]

impl Eq for PubKey[src]

impl FromStr for PubKey[src]

type Err = BaseConvertionError

The associated error which can be returned from parsing.

impl GetKeysAlgo for PubKey[src]

impl Hash for PubKey[src]

impl PartialEq<PubKey> for PubKey[src]

impl PublicKey for PubKey[src]

type Signature = Sig

Signature type of associated cryptosystem.

impl Serialize for PubKey[src]

impl StructuralEq for PubKey[src]

impl StructuralPartialEq for PubKey[src]

impl ToBase58 for PubKey[src]

Auto Trait Implementations

impl RefUnwindSafe for PubKey

impl Send for PubKey

impl Sync for PubKey

impl Unpin for PubKey

impl UnwindSafe for PubKey

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.