[][src]Struct signatory::Ed25519Seed

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

Ed25519 seeds: derivation secrets for Ed25519 private scalars/nonce prefixes

Methods

impl Seed
[src]

Create an Ed25519 seed from a 32-byte array

Generate a new Ed25519 seed using the operating system's cryptographically secure random number generator

Generate a new Ed25519 seed using the provided random number generator

Create an Ed25519 seed from a byte slice, returning KeyInvalid if the slice is not the correct size (32-bytes)

Create an Ed25519 seed from a keypair: i.e. a seed and its assocaited public key (i.e. compressed Edwards-y coordinate)

Decode a Seed from an encoded (hex or Base64) Ed25519 keypair

Important traits for &'a mut [u8]

Expose the secret values of the Seed as a byte slice

Trait Implementations

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

impl From<[u8; 32]> for Seed
[src]

impl Clone for Seed
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Ed25519Seed

impl Sync for Ed25519Seed

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