UNPKG

@cmdcode/tapscript

Version:

A basic library for working with Tapscript, signatures and Bitcoin transactions.

29 lines 660 B
import { Buff } from '@cmdcode/buff-utils'; import { Bytes, ScriptData } from '../../schema/types.js'; export type TapKey = [ key: string, cblock: string ]; export interface TapConfig { data?: Bytes; isPrivate?: boolean; script?: ScriptData; tapleaf?: Bytes; target?: Bytes; throws?: boolean; tree?: TapTree; version?: number; } export interface CtrlBlock { version: number; parity: number; intkey: Buff; paths: string[]; } export type TapTree = Array<string | string[]>; export type TapProof = [ root: string, target: string | undefined, path: string[] ]; //# sourceMappingURL=types.d.ts.map