aboutsummaryrefslogtreecommitdiff
path: root/libs/combined/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'libs/combined/index.js')
-rw-r--r--libs/combined/index.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/combined/index.js b/libs/combined/index.js
index 43524ef..1bfcce2 100644
--- a/libs/combined/index.js
+++ b/libs/combined/index.js
@@ -80,6 +80,23 @@ module.exports.stellarUtil = {
80 }, 80 },
81} 81}
82 82
83/* nano-util */
84
85let NanoBase = require('nanocurrency-web');
86module.exports.nanoUtil = {
87 getKeypair: function (index, seed) {
88 const accounts = NanoBase.wallet.accounts(seed, index, index)
89 return {privKey: accounts[0].privateKey, pubKey: accounts[0].publicKey, address: accounts[0].address};
90 },
91 dummyNetwork: {
92 bip32: {public: 0, private: 0},
93 messagePrefix: '',
94 pubKeyHash: 0,
95 scriptHash: 0,
96 wif: 0,
97 },
98}
99
83/* unorm */ 100/* unorm */
84 101
85module.exports.unorm = require('unorm') 102module.exports.unorm = require('unorm')