scryptlib
Version:
Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.
10 lines (9 loc) • 436 B
TypeScript
import { Bool, Bytes, Int, SupportedParamType } from './scryptTypes';
/**
* int to little-endian signed magnitude
*/
export declare function int2hex(n: Int): string;
export declare function bool2hex(b: Bool): string;
export declare function bytes2hex(b: Bytes): string;
export declare function toScriptHex(x: SupportedParamType, type: string): string;
export declare function toScriptASM(a: SupportedParamType, type: string): string;