divvy-wallet

1.0.3 • Public • Published

Divvy Wallet

This is a simple, lightweight tool to generate a new divvy wallet, which consists of public and secret key components.

Beyond portability, the tool was created to isolate the cryptography behind wallet generation in the divvy client and divvy-lib.

Usage

var divvyLib = require('divvy-lib');
var DivvyWallet = require('divvy-wallet')({
  sjcl: divvyLib.sjcl
});

DivvyWallet.generate();

will generate a random, unfunded Divvy address and secret.

{ 
  address: 'r3sBHwjwAb6eFpHbCEbJmhC8scmDeqXZyZ',
  secret: 'snovmDoPbb5Y14JVA5wxtBtPgHNaP' 
}

Tests

Run the automated test suite, which uses test vectors from the wiki:

npm test

Algorithm Docs and Test Vectors

A description of the Cryptography can be found on the Wiki.

Notes

Environment: node.js > 0.10.25 mocha@2.5.1

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i divvy-wallet

      Weekly Downloads

      2

      Version

      1.0.3

      License

      ISC

      Unpacked Size

      14 kB

      Total Files

      10

      Last publish

      Collaborators

      • marlonhanks