bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.6k stars 2.08k forks source link

psbt.addBip32DerivationToInput() does not seem implemented #1488

Closed noudsnelder closed 4 years ago

noudsnelder commented 4 years ago

Since I am new to this I may be completely wrong, but the example code on https://github.com/bitcoinjs/bip174 shows the psbt.addBip32DerivationToInput() function that I believe is not (yet) implemented since it returns TypeError: psbt.addBip32DerivationToInput is not a function. I am using "bitcoinjs-lib": "^5.1.6",

Am I missing something?

junderw commented 4 years ago

use psbt.updateInput(index, { bip32Derivation }) for bitcoinjs-lib's Psbt.

junderw commented 4 years ago

you can see an example in the transaction integration tests.