espend-wallet-generator
v1.0.3
Published
A node.js library for generating an eSpend wallet.
Downloads
5
Maintainers
Readme
eSpend Wallet
This is a simple, lightweight tool to generate a new eSpend wallet, which consists of public and secret key components.
Beyond portability, the tool was created to isolate the cryptography behind wallet generation in the eSpend client and espend-lib.
Usage
var espendLib = require('espend-lib');
var espendWallet = require('espend-wallet')({
sjcl: espendLib.sjcl
});
espendWallet.generate();
will generate a random, unfunded eSpend 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.