0.0.6 • Published 5 years ago
stratcore-lib v0.0.6
stratcore-lib
A fork of bitcore-lib for Stratis.
Please note that this is an unofficial port and it has not been tested.
Install via npm
npm install stratcore-lib
Test using
npm run test
Example address creation
var stratcore = require('stratcore-lib');
var privKey = new stratcore.PrivateKey();
console.log(privKey, privKey.toAddress());
// Outputs:
// <PrivateKey: e04d8b98297ff0a8d30bacd788c32ea2cc750486f4dcd03644a2c11e25e294ea, network: livenet> <Address: SWb2KFXG8ArWg2aeoxJLAs1itxXXtPPe9E, type: pubkeyhash, network: livenet>