WasmiumRandom

Struct WasmiumRandom 

Source
pub struct WasmiumRandom;
Expand description

WasmiumRandom contains helper method to generate different random byte length. See module level documentation for more details crate

Implementations§

Source§

impl WasmiumRandom

Source

pub fn secure_alphabet12() -> [u8; 12]

Generate alphabet bytes of size 12

Source

pub fn secure_alphabet24() -> [u8; 24]

Generate alphabet bytes of size 24

Source

pub fn secure_alphabet32() -> [u8; 32]

Generate alphabet bytes of size 32

Source

pub fn secure_alphabet64() -> [u8; 64]

Generate alphabet bytes of size 64

Source

pub fn secure_alphabet128() -> [u8; 128]

Generate alphabet bytes of size 128

Source

pub fn secure_alphabet256() -> [u8; 256]

Generate alphabet bytes of size 256

Source

pub fn secure_alphabet512() -> [u8; 512]

Generate alphabet bytes of size 512

Source

pub fn secure_alphabet1024() -> [u8; 1024]

Generate alphabet bytes of size 1024

Source

pub fn secure_alphabet2048() -> [u8; 2048]

Generate english alphabet bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn secure_alphanumeric12() -> [u8; 12]

Generate alphanumeric bytes of size 12

Source

pub fn secure_alphanumeric24() -> [u8; 24]

Generate alphanumeric bytes of size 24

Source

pub fn secure_alphanumeric32() -> [u8; 32]

Generate alphanumeric bytes of size 32

Source

pub fn secure_alphanumeric64() -> [u8; 64]

Generate alphanumeric bytes of size 64

Source

pub fn secure_alphanumeric128() -> [u8; 128]

Generate alphanumeric bytes of size 128

Source

pub fn secure_alphanumeric256() -> [u8; 256]

Generate alphanumeric bytes of size 256

Source

pub fn secure_alphanumeric512() -> [u8; 512]

Generate alphanumeric bytes of size 512

Source

pub fn secure_alphanumeric1024() -> [u8; 1024]

Generate alphanumeric bytes of size 1024

Source

pub fn secure_alphanumeric2048() -> [u8; 2048]

Generate alphanumeric bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn secure_numeric12() -> [u8; 12]

Generate numeric bytes of size 12

Source

pub fn secure_numeric24() -> [u8; 24]

Generate numeric bytes of size 24

Source

pub fn secure_numeric32() -> [u8; 32]

Generate numeric bytes of size 32

Source

pub fn secure_numeric64() -> [u8; 64]

Generate numeric bytes of size 64

Source

pub fn secure_numeric128() -> [u8; 128]

Generate numeric bytes of size 128

Source

pub fn secure_numeric256() -> [u8; 256]

Generate numeric bytes of size 256

Source

pub fn secure_numeric512() -> [u8; 512]

Generate numeric bytes of size 512

Source

pub fn secure_numeric1024() -> [u8; 1024]

Generate numeric bytes of size 1024

Source

pub fn secure_numeric2048() -> [u8; 2048]

Generate numeric bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn wyrand_alphabet12() -> [u8; 12]

Generate alphabet bytes of size 12

Source

pub fn wyrand_alphabet24() -> [u8; 24]

Generate alphabet bytes of size 24

Source

pub fn wyrand_alphabet32() -> [u8; 32]

Generate alphabet bytes of size 32

Source

pub fn wyrand_alphabet64() -> [u8; 64]

Generate alphabet bytes of size 64

Source

pub fn wyrand_alphabet128() -> [u8; 128]

Generate alphabet bytes of size 128

Source

pub fn wyrand_alphabet256() -> [u8; 256]

Generate alphabet bytes of size 256

Source

pub fn wyrand_alphabet512() -> [u8; 512]

Generate alphabet bytes of size 512

Source

pub fn wyrand_alphabet1024() -> [u8; 1024]

Generate alphabet bytes of size 1024

Source

pub fn wyrand_alphabet2048() -> [u8; 2048]

Generate english alphabet bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn wyrand_alphanumeric12() -> [u8; 12]

Generate alphanumeric bytes of size 12

Source

pub fn wyrand_alphanumeric24() -> [u8; 24]

Generate alphanumeric bytes of size 24

Source

pub fn wyrand_alphanumeric32() -> [u8; 32]

Generate alphanumeric bytes of size 32

Source

pub fn wyrand_alphanumeric64() -> [u8; 64]

Generate alphanumeric bytes of size 64

Source

pub fn wyrand_alphanumeric128() -> [u8; 128]

Generate alphanumeric bytes of size 128

Source

pub fn wyrand_alphanumeric256() -> [u8; 256]

Generate alphanumeric bytes of size 256

Source

pub fn wyrand_alphanumeric512() -> [u8; 512]

Generate alphanumeric bytes of size 512

Source

pub fn wyrand_alphanumeric1024() -> [u8; 1024]

Generate alphanumeric bytes of size 1024

Source

pub fn wyrand_alphanumeric2048() -> [u8; 2048]

Generate alphanumeric bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn wyrand_numeric12() -> [u8; 12]

Generate numeric bytes of size 12

Source

pub fn wyrand_numeric24() -> [u8; 24]

Generate numeric bytes of size 24

Source

pub fn wyrand_numeric32() -> [u8; 32]

Generate numeric bytes of size 32

Source

pub fn wyrand_numeric64() -> [u8; 64]

Generate numeric bytes of size 64

Source

pub fn wyrand_numeric128() -> [u8; 128]

Generate numeric bytes of size 128

Source

pub fn wyrand_numeric256() -> [u8; 256]

Generate numeric bytes of size 256

Source

pub fn wyrand_numeric512() -> [u8; 512]

Generate numeric bytes of size 512

Source

pub fn wyrand_numeric1024() -> [u8; 1024]

Generate numeric bytes of size 1024

Source

pub fn wyrand_numeric2048() -> [u8; 2048]

Generate numeric bytes of size 2048

Source§

impl WasmiumRandom

Source

pub fn secure_bip39() -> [&'static str; 6]

Generate BIP39 phrase 6 words long`

Source

pub fn secure_bip39_8words() -> [&'static str; 8]

Generate BIP39 phrase 8 words long`

Source

pub fn secure_bip39_12words() -> [&'static str; 12]

Generate BIP39 phrase 12 words long`

Source

pub fn secure_bip39_16words() -> [&'static str; 16]

Generate BIP39 phrase 16 words long`

Source

pub fn secure_eff_shortlist() -> [&'static str; 6]

Generate EFF Short word list phrase 6 words long`

Source

pub fn secure_eff_shortlist_8words() -> [&'static str; 8]

Generate EFF short word list phrase 8 words long`

Source

pub fn secure_eff_shortlist_12words() -> [&'static str; 12]

Generate EFF short word list phrase 12 words long`

Source

pub fn secure_eff_shortlist_16words() -> [&'static str; 16]

Generate EFF short word list phrase 16 words long`

Source

pub fn secure_eff_largelist() -> [&'static str; 4]

Generate EFF large word list phrase 4 words long`

Source

pub fn secure_eff_largelist_6words() -> [&'static str; 6]

Generate EFF large word list phrase 6 words long`

Source

pub fn secure_eff_largelist_8words() -> [&'static str; 8]

Generate EFF large word list phrase 8 words long`

Source

pub fn secure_eff_largelist_12words() -> [&'static str; 12]

Generate EFF large word list phrase 12 words long`

Source

pub fn secure_eff_largelist_16words() -> [&'static str; 16]

Generate EFF large word list phrase 16 words long`

Source

pub fn wyrand_bip39() -> [&'static str; 6]

Generate BIP39 phrase 6 words long`

Source

pub fn wyrand_bip39_8words() -> [&'static str; 8]

Generate BIP39 phrase 8 words long`

Source

pub fn wyrand_bip39_12words() -> [&'static str; 12]

Generate BIP39 phrase 12 words long`

Source

pub fn wyrand_bip39_16words() -> [&'static str; 16]

Generate BIP39 phrase 16 words long`

Source

pub fn wyrand_eff_shortlist() -> [&'static str; 6]

Generate EFF Short word list phrase 6 words long`

Source

pub fn wyrand_eff_shortlist_8words() -> [&'static str; 8]

Generate EFF short word list phrase 8 words long`

Source

pub fn wyrand_eff_shortlist_12words() -> [&'static str; 12]

Generate EFF short word list phrase 12 words long`

Source

pub fn wyrand_eff_shortlist_16words() -> [&'static str; 16]

Generate EFF short word list phrase 16 words long`

Source

pub fn wyrand_eff_largelist() -> [&'static str; 4]

Generate EFF large word list phrase 4 words long`

Source

pub fn wyrand_eff_largelist_6words() -> [&'static str; 6]

Generate EFF large word list phrase 6 words long`

Source

pub fn wyrand_eff_largelist_8words() -> [&'static str; 8]

Generate EFF large word list phrase 8 words long`

Source

pub fn wyrand_eff_largelist_12words() -> [&'static str; 12]

Generate EFF large word list phrase 12 words long`

Source

pub fn wyrand_eff_largelist_16words() -> [&'static str; 16]

Generate EFF large word list phrase 16 words long`

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.