node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


Ripple Wallet

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 RippleWallet = require('ripple-wallet');

will generate a random, unfunded Ripple address and secret.

  address: 'r3sBHwjwAb6eFpHbCEbJmhC8scmDeqXZyZ',
  secret: 'snovmDoPbb5Y14JVA5wxtBtPgHNaP' 

Or generate multiple addresses for a given secret

wallet = RippleWallet.getRandom();
console.log('SECRET:', wallet.secret);
console.log('ADDRESS 0:', wallet.getAddress(0);
console.log('ADDRESS 1:', wallet.getAddress(1);
console.log('ADDRESS 2:', wallet.getAddress(2);

Will produce the output of multiple address

SECRET: sngAmh9y4YnynSdJoBxDqmidYVk8Z
ADDRESS 0: rJv55Ftoogpp6T1NFLknNvgMEzrLjMP2Xf
ADDRESS 2: rwLTwid3FJTme2uvMfjoLCxiJsnZfkVNfq

Algorithm Docs and Test Vectors

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