Skip to content

Commit

Permalink
fix: blinding key derivation of wallet stub in CLI (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Mar 2, 2025
1 parent 7048767 commit 2219654
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/cli/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,15 @@ export const getWalletStub = (
network,
supportsDiscountCT: discountCT || false,
decodeAddress: () => toOutputScript(type, destinationAddress, network),
deriveBlindingKeyFromScript: () => ({
privateKey: parseBlindingKey(type, blindingKey!),
}),
deriveBlindingKeyFromScript: () => {
const key = {
privateKey: parseBlindingKey(type, blindingKey!),
};
return {
new: key,
legacy: key,
};
},
}) as any;

export const parseBlindingKey = (type: CurrencyType, blindingKey: string) =>
Expand Down

0 comments on commit 2219654

Please sign in to comment.