We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92d114 commit 6b316beCopy full SHA for 6b316be
src/app/HD wallet/taproot.ts
@@ -21,7 +21,7 @@ const accountNode = root.derivePath(taprootPath);
21
// Step 4: Generate the Taproot (P2TR) address
22
const taprootPublicKey = accountNode.publicKey;
23
const { address: taprootAddress } = bitcoin.payments.p2tr({
24
- internalPubkey: taprootPublicKey.subarray(1), // Use the x-only pubkey
+ internalPubkey: Buffer.from(taprootPublicKey.subarray(1)), // Use the x-only pubkey
25
network: bitcoin.networks.bitcoin,
26
});
27
0 commit comments