[][src]Struct dup_crypto::seeds::Seed32

pub struct Seed32(_);

Store a 32 bytes seed used to generate keys.

Methods

impl Seed32[src]

pub fn new(seed_bytes: [u8; 32]) -> Seed32[src]

Create new seed

pub fn from_base58(base58_str: &str) -> Result<Self, BaseConvertionError>[src]

Create seed from base58 str

pub fn random() -> Result<Seed32, UnspecifiedRandError>[src]

Generate random seed

Trait Implementations

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

impl Clone for Seed32[src]

impl Debug for Seed32[src]

impl Default for Seed32[src]

impl<'de> Deserialize<'de> for Seed32[src]

impl Display for Seed32[src]

impl Drop for Seed32[src]

impl Eq for Seed32[src]

impl Hash for Seed32[src]

impl PartialEq<Seed32> for Seed32[src]

impl Serialize for Seed32[src]

impl StructuralEq for Seed32[src]

impl StructuralPartialEq for Seed32[src]

impl ToBase58 for Seed32[src]

impl Zeroize for Seed32[src]

Auto Trait Implementations

impl RefUnwindSafe for Seed32

impl Send for Seed32

impl Sync for Seed32

impl Unpin for Seed32

impl UnwindSafe for Seed32

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]