New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ripple-account-family

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ripple-account-family

ripple account family

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
455
decreased by-66.79%
Maintainers
1
Weekly downloads
 
Created
Source

node-ripple-account-family

Build Status Coverage Status

This software is not guaranteed forever. When using it, please at your own risk.

warning

Except for index number 0, it is incompatible with ripple ecosystem. You can not use the ripple ecosystem handling existing ripple secret keys.

install

npm i ripple-account-family

usage

const RootWallet = require("ripple-account-family").RootWallet
const ColdWallet = require("ripple-account-family").ColdWallet

const seed = "ss7vwFuNi2Zud1ekn68LivP2P7UF1"
const rw = new RootWallet(seed)
const publicGen = rw.getPublicGenerator()
const cw = new ColdWallet(publicGen)

const f = (n) => [rw.derive(n).getAddress(), cw.getAddress(n)]
const list = Array(5).fill(0).map((v,i)=> f(i))
console.log(JSON.stringify(list, null, 2))

console.log(rw.derive(0).getInfo())
console.log(rw.derive(1).getInfo())

transaction sign

  • Use the signature function provided with RIPPLE-LIB
const RootWallet = require("ripple-account-family").RootWallet
const RippleApi = require('ripple-lib').RippleAPI
const api = new RippleApi();
const options = { signAs: '' };
const txJSON = 'preparePayment output...'

const seed = "ss7vwFuNi2Zud1ekn68LivP2P7UF1"
const rw = new RootWallet(seed)
const keypair = rw.derive(0).getKeyPair()
const signedTx = api.sign(txJSON, void 0, options, keypair)
console.log(signedTx)

generate seed

  • This library provides seed creation functions, but use the official generation logic.
const generateSeed = require("ripple-account-family").generateSeed
const seed = generateSeed()
console.log(seed)

Keywords

FAQs

Package last updated on 03 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc