@vbyte/btc-dev
Version:
Batteries-included toolset for plebian bitcoin development
18 lines (17 loc) • 892 B
TypeScript
import { Buff, Bytes } from '@vbyte/buff';
import type { AddressInfo, ChainNetwork } from '../../types/index.js';
export declare namespace P2TR {
const create_address: typeof create_p2tr_address;
const create_script: typeof create_p2tr_script;
const encode_address: typeof encode_p2tr_address;
const encode_script: typeof encode_p2tr_script;
const decode_address: typeof decode_p2tr_address;
const decode_script: typeof decode_p2tr_script;
}
declare function create_p2tr_address(pubkey: Bytes, network?: ChainNetwork): string;
declare function create_p2tr_script(pubkey: Bytes): Buff;
declare function encode_p2tr_script(pubkey: Bytes): Buff;
declare function encode_p2tr_address(script_pk: Bytes, network?: ChainNetwork): string;
declare function decode_p2tr_address(address: string): AddressInfo;
declare function decode_p2tr_script(script: Bytes): Buff;
export {};