Wordlist

Sophon Brain Wallets wordlist library

Rust Documentation

RUST

```toml

Cargo.toml

[dependencies] sophon-wordlist = "1.2" ```

```rust

main.rs

extern crate sophon_wordlist;

fn main() { println!("Words: {}", sophonwordlist::randomphrase(12));

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

JavaScript

bash $ npm i @sophon/wordlist --save

```js // main.js

import { randomPhrase, verifyPhrase } from '@sophon/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) ```