Struct signatory::Ed25519Seed[][src]

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

Executes the destructor for this type. Read more

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

Performs the conversion.

Auto Trait Implementations

impl Send for Ed25519Seed

impl Sync for Ed25519Seed