$ npm install ripple-wallet-generator
This is a simple, lightweight tool to generate a new ripple wallet, which consists of public and secret key components.
Beyond portability, the tool was created to isolate the cryptography behind wallet generation in the ripple client and ripple-lib.
var rippleLib = require('ripple-lib');
var RippleWallet = require('ripple-wallet')({
sjcl: rippleLib.sjcl
});
RippleWallet.generate();
will generate a random, unfunded Ripple address and secret.
{
address: 'r3sBHwjwAb6eFpHbCEbJmhC8scmDeqXZyZ',
secret: 'snovmDoPbb5Y14JVA5wxtBtPgHNaP'
}
Run the automated test suite, which uses test vectors from the wiki:
npm test
A description of the Cryptography can be found on the Wiki.
© 2010 - cnpmjs.org x YWFE | Home | YWFE