[][src]Struct ed25519_compact::Seed

pub struct Seed(_);

A seed, which a key pair can be derived from.

Implementations

impl Seed[src]

pub const BYTES: usize[src]

Number of raw bytes in a seed.

pub fn new(seed: [u8; 32]) -> Self[src]

Creates a seed from raw bytes.

pub fn from_slice(seed: &[u8]) -> Result<Self, Error>[src]

Creates a seed from a slice.

Trait Implementations

impl Default for Seed[src]

fn default() -> Self[src]

Generates a random seed.

impl Deref for Seed[src]

type Target = [u8; 32]

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Returns a seed as raw bytes.

Auto Trait Implementations

impl RefUnwindSafe for Seed

impl Send for Seed

impl Sync for Seed

impl Unpin for Seed

impl UnwindSafe for Seed

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