2.0.0 • Published 10 years ago

ripple-wallet v2.0.0

Weekly downloads
16
License
MIT
Repository
github
Last release
10 years ago

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.

Usage

var RippleWallet = require('ripple-wallet');
RippleWallet.generate();

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 1: rDBCTRPk7MMFNNew4uhiovz6LhAdoS7R7X
ADDRESS 2: rwLTwid3FJTme2uvMfjoLCxiJsnZfkVNfq

Algorithm Docs and Test Vectors

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