Skip to content

openvapory/tetsy-wordlist

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)