phrase
ModuleTwo-word passphrases that are easy to read out and type.
Contents
use utopia_auth::proofs::phrase::Phrase;Rust
pub struct PhraseA two-word passphrase, "Adjective noun", such as Brave kangaroo.
Rust
use utopia_auth::proofs::{Phrase, Proof};
let phrase = Phrase::new().generate()?;
let words: Vec<&[u8]> = phrase.split(|b| *b == b' ').collect();
assert_eq!(words.len(), 2);
assert!(words[0][0].is_ascii_uppercase());Also implements
Default.