]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - libs/combined/index.js
Added NANO currency
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / libs / combined / index.js
index 43524efbc9b07470b9daf0957d699932d9b1c6e6..1bfcce22f9a930d573f9ead9c8fdbe284216f105 100644 (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')