UNPKG

@exodus/bip322-js

Version:

A Javascript library that provides utility functions related to the BIP-322 signature scheme

15 lines (14 loc) 614 B
declare class Address { static isP2PKH(address: string): boolean; static isP2SH(address: string): boolean; static isP2WPKH(address: string): boolean; static isP2TR(address: string): boolean; static isP2WPKHWitness(witness: Buffer[]): boolean; static isSingleKeyP2TRWitness(witness: Buffer[]): boolean; static convertAdressToScriptPubkey(address: string): Buffer; static convertPubKeyIntoAddress(publicKey: Buffer, addressType: 'p2pkh' | 'p2sh-p2wpkh' | 'p2wpkh' | 'p2tr'): { mainnet: string | undefined; testnet: string | undefined; }; } export default Address;