UNPKG

1.05 kBTypeScriptView Raw
1/// <reference types="node" />
2import { OPS } from './ops';
3import { Stack } from './payments';
4import * as scriptNumber from './script_number';
5import * as scriptSignature from './script_signature';
6export { OPS };
7export declare function isPushOnly(value: Stack): boolean;
8export declare function countNonPushOnlyOPs(value: Stack): number;
9export declare function compile(chunks: Buffer | Stack): Buffer;
10export declare function decompile(buffer: Buffer | Array<number | Buffer>): Array<number | Buffer> | null;
11export declare function toASM(chunks: Buffer | Array<number | Buffer>): string;
12export declare function fromASM(asm: string): Buffer;
13export declare function toStack(chunks: Buffer | Array<number | Buffer>): Buffer[];
14export declare function isCanonicalPubKey(buffer: Buffer): boolean;
15export declare function isDefinedHashType(hashType: number): boolean;
16export declare function isCanonicalScriptSignature(buffer: Buffer): boolean;
17export declare const number: typeof scriptNumber;
18export declare const signature: typeof scriptSignature;