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

Generate a checksum according to informed bytes.

Validate the checksum contained in the last word.

Receives bytes and return string of hexadecimal characters.

Receives entropy as bytes and returns a String of mnemonic words.

Retrieve the length of entropy bytes excluding the checksum.

Implementations on Foreign Types

Implementation of trait BytesManipulation for u8.

Implementors