#word-list #wallet #brain #tetsy #generate #cryptocurrency

tetsy-wordlist

Word list used to generate brain wallets for Tetsy

Show the crate…

2 stable releases

1.3.1 Feb 21, 2021
1.2.0 Feb 19, 2021

#23 in #brain

45 downloads per month
Used in 13 crates (3 directly)

GPL-3.0 license

88KB
186 lines

Wordlist

Tetsy Brain Wallets wordlist library

Rust Documentation

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

~535KB