mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 22:53:27 +08:00
fix: add pre-tweaked key
This commit is contained in:
@@ -3,6 +3,7 @@ import { useMemo } from 'react';
|
||||
import { BtcAddress } from '@btckit/types';
|
||||
import { bytesToHex } from '@stacks/common';
|
||||
|
||||
import { ecdsaPublicKeyToSchnorr } from '@shared/crypto/bitcoin/bitcoin.utils';
|
||||
import { logger } from '@shared/logger';
|
||||
import { makeRpcSuccessResponse } from '@shared/rpc/rpc-methods';
|
||||
|
||||
@@ -40,6 +41,7 @@ export function useGetAddresses() {
|
||||
type: 'p2tr',
|
||||
address: taprootSigner.address,
|
||||
publicKey: bytesToHex(taprootSigner.publicKey),
|
||||
tweakedPublicKey: bytesToHex(ecdsaPublicKeyToSchnorr(taprootSigner.publicKey)),
|
||||
derivationPath: taprootSigner.derivationPath,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user