UNPKG

@vbyte/btc-dev

Version:

Batteries-included toolset for plebian bitcoin development

18 lines (17 loc) 910 B
import { Buff, Bytes } from '@vbyte/buff'; import type { AddressInfo, ChainNetwork } from '../../types/index.js'; export declare namespace P2WSH { const create_address: typeof create_p2wsh_address; const create_script: typeof create_p2wsh_script; const encode_address: typeof encode_p2wsh_address; const encode_script: typeof encode_p2wsh_script; const decode_address: typeof decode_p2wsh_address; const decode_script: typeof decode_p2wsh_script; } declare function create_p2wsh_address(script: Bytes, network?: ChainNetwork): string; declare function create_p2wsh_script(script: Bytes): Buff; declare function encode_p2wsh_script(script_hash: Bytes): Buff; declare function encode_p2wsh_address(script_pk: Bytes, network?: ChainNetwork): string; declare function decode_p2wsh_address(address: string): AddressInfo; declare function decode_p2wsh_script(script: Bytes): Buff; export {};