Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 907 Bytes

README.md

File metadata and controls

57 lines (41 loc) · 907 Bytes

<blox-keypair>

Makes two EOS key-pairs

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-keypair

$ npm install blox-keypair

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-keypair';

Basic Use

<blox-keypair
    id="keypair"
    generate="0"
    keypairs="{{keyPairs}}">
</blox-keypair>

Javascript Generate Number

<blox-keypair id="keypair"></blox-keypair>
<script>
    this.$.keypair.generate()
    .then((keypairArray) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>