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

#17 in #brain

Download history 608/week @ 2023-11-25 334/week @ 2023-12-02 719/week @ 2023-12-09 293/week @ 2023-12-16 228/week @ 2023-12-23 172/week @ 2023-12-30 554/week @ 2024-01-06 379/week @ 2024-01-13 211/week @ 2024-01-20 304/week @ 2024-01-27 236/week @ 2024-02-03 179/week @ 2024-02-10 138/week @ 2024-02-17 230/week @ 2024-02-24 161/week @ 2024-03-02 92/week @ 2024-03-09

646 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

~540KB