Trait mnemonic39::BytesManipulation [−][src]
pub trait BytesManipulation { fn checksum(&self) -> u8; fn checksum_validation(&self) -> bool; fn hex_string(&self) -> String; fn mnemonic_string(&self, lang: &[&str; 2048]) -> Result<String, Error>; fn unchecked_len(&self) -> usize; }
Expand description
Functions to manipulate data in form of arbitrary number of bytes u8.
Required methods
fn checksum_validation(&self) -> bool
fn checksum_validation(&self) -> bool
Validate the checksum contained in the last word.
fn hex_string(&self) -> String
fn hex_string(&self) -> String
Receives bytes and return string of hexadecimal characters.
Receives entropy as bytes and returns a String of mnemonic words.
fn unchecked_len(&self) -> usize
fn unchecked_len(&self) -> usize
Retrieve the length of entropy bytes excluding the checksum.