Struct signatory::Ed25519PublicKey[][src]

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

Ed25519 public keys

Methods

impl Ed25519PublicKey
[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 Copy for Ed25519PublicKey
[src]

impl Clone for Ed25519PublicKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Ed25519PublicKey
[src]

impl PartialEq for Ed25519PublicKey
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Ed25519PublicKey
[src]

Feeds this value into the given [Hasher]. Read more

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

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

Important traits for &'a [u8]

Performs the conversion.

impl Debug for Ed25519PublicKey
[src]

Formats the value using the given formatter. Read more

impl Decode for Ed25519PublicKey
[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 Ed25519PublicKey
[src]

Important traits for Vec<u8>

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

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

Encode the data read to the given io::Read type with the provided Encoding, returning the encoded value or a Error. Read more

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

impl PublicKey for Ed25519PublicKey
[src]

Auto Trait Implementations