@@ -67,7 +67,9 @@ export default function Bitcoin() {
6767 const hex = newPsbt.data.inputs
6868 .reduce((psbt, input, idx) => {
6969 // removing already derived part, eg m/84'/0'/0'/0/0 becomes 0/0
70− const path = input.bip32Derivation[0].path.substring(12);
70+ const path = input.bip32Derivation[0].path
71+ .split("m/84'/0'/0'/")
72+ .join('');
7173 const prv = btcWallet.derivePath(path).privateKey;
7274 try {
7375 return psbt.signInput(idx, bitcoin.ECPair.fromPrivateKey(prv));