Struct safe_crypto::Seed [−][src]
pub struct Seed { /* fields omitted */ }
Seed structure used to generate sign and encrypt keypairs deterministically.
Methods
impl Seed
[src]
impl Seed
pub fn new() -> Self
[src]
pub fn new() -> Self
Generates a new seed.
pub fn from_bytes(seed: [u8; 32]) -> Self
[src]
pub fn from_bytes(seed: [u8; 32]) -> Self
Create a seed from bytes.
pub fn into_bytes(self) -> [u8; 32]
[src]
pub fn into_bytes(self) -> [u8; 32]
Convert the Seed
into the raw underlying bytes.
Trait Implementations
impl Debug for Seed
[src]
impl Debug for Seed
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Seed
[src]
impl PartialEq for Seed
fn eq(&self, other: &Seed) -> bool
[src]
fn eq(&self, other: &Seed) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Seed) -> bool
[src]
fn ne(&self, other: &Seed) -> bool
This method tests for !=
.
impl Eq for Seed
[src]
impl Eq for Seed
impl Clone for Seed
[src]
impl Clone for Seed
fn clone(&self) -> Seed
[src]
fn clone(&self) -> Seed
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Seed
[src]
impl Default for Seed