7 stable releases

1.3.1 Feb 7, 2020
1.3.0 Jul 1, 2019
1.2.1 Oct 1, 2018
1.2.0 Sep 28, 2017
1.0.0 Mar 29, 2017

#24 in #brain

Download history 160/week @ 2024-07-22 115/week @ 2024-07-29 95/week @ 2024-08-05 147/week @ 2024-08-12 107/week @ 2024-08-19 90/week @ 2024-08-26 125/week @ 2024-09-02 72/week @ 2024-09-09 124/week @ 2024-09-16 183/week @ 2024-09-23 154/week @ 2024-09-30 69/week @ 2024-10-07 250/week @ 2024-10-14 145/week @ 2024-10-21 88/week @ 2024-10-28 68/week @ 2024-11-04

556 downloads per month
Used in sstp

GPL-3.0 license

69KB
186 lines

Wordlist

Parity Brain Wallets wordlist library

Rust Documentation

RUST

# Cargo.toml

[dependencies]
parity-wordlist = "1.3"
// main.rs

println!("Words: {}", parity_wordlist::random_phrase(12));

let phrase = "violin oblivion cylinder list disarray wobbly fastball showplace oasis patronize septic spearhead";
println!("Valid: {:?}", parity_wordlist::validate_phrase(phrase, 12));

JavaScript

$ npm i @parity/wordlist --save
// main.js

import { randomPhrase, verifyPhrase } from '@parity/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:

Parity Brain Wallet Generator.

Dependencies

~1.4–2MB
~37K SLoC