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

#29 in #brain

Download history 73/week @ 2024-11-17 99/week @ 2024-11-24 277/week @ 2024-12-01 264/week @ 2024-12-08 247/week @ 2024-12-15 48/week @ 2024-12-22 46/week @ 2024-12-29 161/week @ 2025-01-05 243/week @ 2025-01-12 230/week @ 2025-01-19 114/week @ 2025-01-26 295/week @ 2025-02-02 401/week @ 2025-02-09 176/week @ 2025-02-16 258/week @ 2025-02-23 122/week @ 2025-03-02

1,050 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
~36K SLoC