Skip to content

ZeroGames-CoffeWorld/wordlist

This branch is up to date with openethereum/wordlist:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 29, 2017
Feb 7, 2020
Sep 28, 2017
Mar 29, 2017
Mar 29, 2017
Mar 29, 2017
Feb 7, 2020
Mar 28, 2017
Feb 7, 2020
Jun 14, 2017
Jun 14, 2017
Jun 14, 2017

Repository files navigation

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)

About

Parity Brain Wallets Word List Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.5%
  • Rust 39.5%
  • Shell 2.0%