1.0.2 • Published 7 years ago
blox-mnemonic v1.0.2
\<blox-mnemonic>
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-mnemonicViewing Your Element
$ polymer serveRunning Tests
$ polymer testImport
$ 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>