[][src]Struct signatory::ed25519::PublicKey

pub struct PublicKey(pub [u8; 32]);

Ed25519 public keys

Methods

impl PublicKey
[src]

Create an Ed25519 public key from a 32-byte array

Create an Ed25519 public key from its serialized (compressed Edwards-y) form

Obtain public key as a byte array reference

Convert public key into owned byte array

Trait Implementations

impl Decode for PublicKey
[src]

Decode an Ed25519 seed from a byte slice with the given encoding (e.g. hex, Base64)

Decode the given string-alike type with the provided Encoding, returning the decoded value or a Error. Read more

Decode the data read from the given io::Read type with the provided Encoding, returning the decoded value or a Error. Read more

Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more

impl Encode for PublicKey
[src]

Important traits for Vec<u8>

Encode an Ed25519 seed with the given encoding (e.g. hex, Base64)

Encode self to a String using the provided Encoding, returning the encoded value or a Error. Read more

Encode self with the given Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more

Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more

impl PublicKey for PublicKey
[src]

impl PartialEq<PublicKey> for PublicKey
[src]

impl Eq for PublicKey
[src]

impl Ord for PublicKey
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd<PublicKey> for PublicKey
[src]

impl Debug for PublicKey
[src]

impl Hash for PublicKey
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for PublicKey
[src]

impl Clone for PublicKey
[src]

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for PublicKey
[src]

Auto Trait Implementations

Blanket Implementations

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

impl<T> Same for T

Should always be Self