mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 12:06:21 +01:00
REF: taproot wallet to TS
This commit is contained in:
parent
4816ff3190
commit
8951ae81ea
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export class TaprootWallet extends SegwitBech32Wallet {
|
|||
* @param scriptPubKey
|
||||
* @returns {boolean|string} Either bech32 address or false
|
||||
*/
|
||||
static scriptPubKeyToAddress(scriptPubKey) {
|
||||
static scriptPubKeyToAddress(scriptPubKey: string) {
|
||||
try {
|
||||
const publicKey = Buffer.from(scriptPubKey, 'hex');
|
||||
return bitcoin.address.fromOutputScript(publicKey, bitcoin.networks.bitcoin);
|
Loading…
Add table
Reference in a new issue