리플(ripple) 지갑생성
리플(ripple) 지갑생성
ripple-lib을 이용한 방식
nodeJs에서 ripple-lib을 이용한 방식
install
npm i ripple-lib
2.x
const xrpl = require("xrpl");
..........
// const wallet = xrpl.Wallet.generate("ed25519")
const wallet = xrpl.Wallet.generate()
Wallet {
publicKey: 'ED5EE633B0A37275F821F78A295AB2386762AAA45BDC449B44DFB171E9B5A70336',
privateKey: 'ED471B89F4971FF82F7EB4BF393D680374F54B6F955417820DCCAED8AAA2944990',
classicAddress: 'rDB5c7M4LmLbv1sQ2K7vtgbCEFYjV56gLg',
seed: 'sEd7TrD49TNH4EbbXjxQo7j4n4dSfR8'
1.x
const RippleAPI = require('ripple-lib').RippleAPI;
..........
const api = new RippleAPI({
server: 'wss://s.altnet.rippletest.net:51233'
});
api.generateAddress();