zaddr
A lightweight Javascript library for generating Zcash zaddrs and zkeys
NOTE: This library is under active development. Observe the marked TODOs and proceed at your own discretion.
Install
npm install zaddr --save
Example
const zaddr = require('zaddr')
const network = 'mainnet'
const key = zaddr.generateKey(network)
// => SKxsbCVjuidoTfTm58UmGv32Bap5YeboJqVc2hScye1WrearWbHA
const address = zaddr.generateAddressFromKey(key, network)
// => zcB54stMXcyiDhDCLtvHcEDismnWrTycEW4ktU4iEc5H1tH313zjn4buiTRjXiNhcTw5yR4De8p787qqJbz1iRj37uwiKJB
const wallet = zaddr.generateWallet(network)
// => { key: 'SKxsbCVjuidoTfTm58UmGv32Bap5YeboJqVc2hScye1WrearWbHA',
// zaddr: 'zcB54stMXcyiDhDCLtvHcEDismnWrTycEW4ktU4iEc5H1tH313zjn4buiTRjXiNhcTw5yR4De8p787qqJbz1iRj37uwiKJB' }