Added NANO currency

This commit is contained in:
Joohansson
2020-08-26 11:57:58 +02:00
parent 863eee8ed7
commit e086305895
10 changed files with 4258 additions and 11 deletions

View File

@@ -80,6 +80,23 @@ module.exports.stellarUtil = {
},
}
/* nano-util */
let NanoBase = require('nanocurrency-web');
module.exports.nanoUtil = {
getKeypair: function (index, seed) {
const accounts = NanoBase.wallet.accounts(seed, index, index)
return {privKey: accounts[0].privateKey, pubKey: accounts[0].publicKey, address: accounts[0].address};
},
dummyNetwork: {
bip32: {public: 0, private: 0},
messagePrefix: '',
pubKeyHash: 0,
scriptHash: 0,
wif: 0,
},
}
/* unorm */
module.exports.unorm = require('unorm')