diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2020-10-19 09:26:29 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 09:26:29 +1100 |
commit | 30e3d246d494158b93550df5e70bcabc5f26f7c3 (patch) | |
tree | 145f52c2a15baac5e4c885ee95926e7699fcf58e /libs/combined/index.js | |
parent | 4669c88c672b0ec2ac636cae96a3fe2db94e2791 (diff) | |
parent | 647410b4a66b42bf6ff02713f5106c95b061d025 (diff) | |
download | BIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.tar.gz BIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.tar.zst BIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.zip |
Merge pull request #434 from Joohansson/nanocurrency
Added support for NANO currency
Diffstat (limited to 'libs/combined/index.js')
-rw-r--r-- | libs/combined/index.js | 17 |
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 | |||
85 | let NanoBase = require('nanocurrency-web'); | ||
86 | module.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 | ||
85 | module.exports.unorm = require('unorm') | 102 | module.exports.unorm = require('unorm') |