[][src]Enum casperlabs_types::account::PublicKey

pub enum PublicKey {
    Ed25519(Ed25519),
}

An enum of supported public key types.

Variants

Ed25519(Ed25519)

An Ed25519 public key type.

Methods

impl PublicKey[src]

pub const fn ed25519_from(key: Ed25519Bytes) -> PublicKey[src]

Constructs a new PublicKey using Ed25519 bytes.

pub fn ed25519_try_from(
    bytes: &[u8]
) -> Result<PublicKey, TryFromSliceForPublicKeyError>
[src]

Attemps a new PublicKey creation using a slice of bytes.

pub fn as_bytes(&self) -> &[u8][src]

Returns the raw bytes of the public key as a slice.

Trait Implementations

impl CLTyped for PublicKey[src]

impl Clone for PublicKey[src]

impl Copy for PublicKey[src]

impl Debug for PublicKey[src]

impl Display for PublicKey[src]

impl Eq for PublicKey[src]

impl From<Ed25519> for PublicKey[src]

impl FromBytes for PublicKey[src]

impl Hash for PublicKey[src]

impl Ord for PublicKey[src]

impl PartialEq<PublicKey> for PublicKey[src]

impl PartialOrd<PublicKey> for PublicKey[src]

impl StructuralEq for PublicKey[src]

impl StructuralPartialEq for PublicKey[src]

impl ToBytes for PublicKey[src]

Auto Trait Implementations

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> 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.