Show the crate…
2 stable releases
1.3.1 | Feb 21, 2021 |
---|---|
1.2.0 | Feb 19, 2021 |
#26 in #brain
31 downloads per month
Used in 13 crates
(3 directly)
88KB
186 lines
Wordlist
Tetsy Brain Wallets wordlist library
RUST
# Cargo.toml
[dependencies]
tetsy-wordlist = "1.3"
// main.rs
println!("Words: {}", tetsy_wordlist::random_phrase(12));
let phrase = "violin oblivion cylinder list disarray wobbly fastball showplace oasis patronize septic spearhead";
println!("Valid: {:?}", tetsy_wordlist::validate_phrase(phrase, 12));
JavaScript
$ npm i tetsy-wordlist --save
// main.js
import { randomPhrase, verifyPhrase } from 'tetsy-wordlist'
console.log(randomPhrase(12))
// This will throw if the phrase is not valid:
verifyPhrase("violin oblivion cylinder list disarray wobbly fastball showplace oasis patronize septic spearhead", 12)
lib.rs
:
Tetsy Brain Wallet Generator.
Dependencies
~1.4–2MB
~37K SLoC