1.0.2 • Published 6 years ago

blox-mnemonic v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

\<blox-mnemonic>

Build Status

A web component that generates a BIP39 mnemonic seed and 12 word phrase

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Install blox-mnemonic

$ npm install blox-mnemonic

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-mnemonic';

Basic Use

<blox-mnemonic
    password="secret!!"
    mnemonic="{{mnemonic}}"
    seed="{{seed}}">
</blox-mnemonic>

Javascript Use

<blox-mnemonic id="bloxMnemonic"></blox-mnemonic>
<script>
    this.$.bloxMnemonic.mnemonicfromPassword('secret!!')
    .then((hash) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago