Closed ddabek closed 7 years ago
Browserified? Web-packed?
This is a tell-tale sign of two types of Buffer
existing.
I am getting same error while using bip39 can you please tell me how resolved this error. getRoot() { const mnemonic = bip39.generateMnemonic(); const seed = bip39.mnemonicToSeedSync(mnemonic); const root = bip32.fromSeed(seed, bitcoin.networks.testnet) return root; }
But I am getting this error in line where I am trying to get root bip32.fromSeed(seed, bitcoin.networks.testnet)
Error: Expected Buffer, got Buffer
are you using multiple bundles?
one for bip32 and bitcoinjs-lib and one for bip39?
Trying the OP_RETURN example and getting this error:
var data = Buffer.from('bitcoinjs-lib', 'utf8')
var dataScript = bitcoin.script.nullData.output.encode(data)