Skip to content

Include bip32Derivation in all outputs #2

@ObjSal

Description

@ObjSal

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,
  }],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions