diff --git a/src/key-formats/xpub.js b/src/key-formats/xpub.js index 20bb157..ed38d01 100644 --- a/src/key-formats/xpub.js +++ b/src/key-formats/xpub.js @@ -3,6 +3,7 @@ const bitcoin = require('bitcoinjs-lib'); const generateXpubKey = ({attempts, xpub}) => { const index = attempts - 1; + // TODO: Cache the derived node for quick perf gain const node = bitcoin.bip32.fromBase58(xpub); const {publicKey} = node.derive(index);