Crates.io | tetsy-wordlist |
lib.rs | tetsy-wordlist |
version | 1.3.1 |
source | src |
created_at | 2021-02-19 05:47:52.0426 |
updated_at | 2021-02-21 13:19:58.986369 |
description | Word list used to generate brain wallets for Tetsy. |
homepage | |
repository | https://github.com/openvapory/tetsy-wordlist |
max_upload_size | |
id | 357407 |
size | 258,878 |
Tetsy Brain Wallets wordlist library
# 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));
$ 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)