Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 687 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 687 Bytes

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);

License

MIT