From 2219654e8e38d6b2b8ce9f5a0da9ec18d8b4211c Mon Sep 17 00:00:00 2001 From: michael1011 Date: Sun, 2 Mar 2025 20:04:17 +0100 Subject: [PATCH] fix: blinding key derivation of wallet stub in CLI (#832) --- lib/cli/Command.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/cli/Command.ts b/lib/cli/Command.ts index 1f3d174a..ac791b97 100644 --- a/lib/cli/Command.ts +++ b/lib/cli/Command.ts @@ -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) =>