NOTE: Before working on this ticket, see if issue #1 fixes the issue with signing with hardware wallets, this might be unnecessary.
--
Add the bip32Derivation on all outputs.
The master fingerprint will have to be manually given or derived directly if exposing the xpub
// Create derivation data for destination outputs
const masterFingerprint = wallet0.root.fingerprint; // Real master fingerprint
const destDerivationPath = participant.destinationAddress.path; // Real destination derivation path
const destPublicKey = participant.destinationAddress.child.publicKey;
hwCompatiblePsbt.addOutput({
address: participant.destinationAddress.p2tr.address,
value: coinJoinAmount,
bip32Derivation: [{
masterFingerprint: masterFingerprint,
path: destDerivationPath,
pubkey: destPublicKey,
}],
});
NOTE: Before working on this ticket, see if issue #1 fixes the issue with signing with hardware wallets, this might be unnecessary.
--
Add the bip32Derivation on all outputs.
The master fingerprint will have to be manually given or derived directly if exposing the xpub