1.2.0 • Published 5 years ago
safex-addressjs v1.2.0
Safex Address Util (javascript)
This utility allows you to generate safex addresses and their checksums. The utility is self-contained, there are no external dependencies.
Based on monero-wallet-generator (original copyright notices are available here)
Usage
npm i --save safex-addressjs
Generate wallet
const sa = require('safex-addressjs');
const seed = sa.sc_reduce32(sa.rand_32());
const keys = sa.create_address(seed);
const pubkey = sa.pubkeys_to_string(keys.spend.pub, keys.view.pub);
console.log(keys);
console.log(pubkey);