Skip to content

Commit

Permalink
feat: improve commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Oct 4, 2023
1 parent 2509469 commit 2c0c067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hdwallet-ledger/src/bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export async function btcGetPublicKeys(
// Ledger returns
// - LTC pubkeys in Ltub format for all scriptTypes.
// - BTC pubkeys in xpub format for all scriptTypes
// - Doge pubkeys in xpub format instead of dgub
// They *are* the correct accounts, but not in the format we want.
// We need to convert SegWit pubkeys to Mtubs/xpubs, and SegWit native to zpubs.
// We need to convert SegWit pubkeys to Mtubs/ypubs, and SegWit native to zpubs, and Doge xpubs to dgubs.
const xpub = convertXpubVersion(_xpub, scriptTypeToAccountType[getPublicKey.scriptType], getPublicKey.coin);

xpubs.push({
Expand Down

0 comments on commit 2c0c067

Please sign in to comment.