tetsy-wordlist

Crates.iotetsy-wordlist
lib.rstetsy-wordlist
version1.3.1
sourcesrc
created_at2021-02-19 05:47:52.0426
updated_at2021-02-21 13:19:58.986369
descriptionWord list used to generate brain wallets for Tetsy.
homepage
repositoryhttps://github.com/openvapory/tetsy-wordlist
max_upload_size
id357407
size258,878
Marlon Hanks (marlonhanks)

documentation

README

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)
Commit count: 25

cargo fmt