UNPKG

@muirglacier/jellyfish-transaction

Version:

A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin

81 lines 2.48 kB
import { StaticCode } from './opcode'; /** * The input is hashed using RIPEMD-160. */ export declare class OP_RIPEMD160 extends StaticCode { constructor(); } /** * The input is hashed using SHA-1. */ export declare class OP_SHA1 extends StaticCode { constructor(); } /** * The input is hashed using SHA-256. */ export declare class OP_SHA256 extends StaticCode { constructor(); } /** * The input is hashed twice: first with SHA-256 and then with RIPEMD-160. */ export declare class OP_HASH160 extends StaticCode { constructor(); } /** * The input is hashed two times with SHA-256. */ export declare class OP_HASH256 extends StaticCode { constructor(); } /** * All of the signature checking words will only match * signatures to the data after the most recently-executed * OP_CODESEPARATOR. */ export declare class OP_CODESEPARATOR extends StaticCode { constructor(); } /** * The entire transaction's outputs, inputs, and script (from the most recently-executed OP_CODESEPARATOR to the end) * are hashed. * The signature used by OP_CHECKSIG must be a valid signature for this hash and public key. * If it is, 1 is returned, 0 otherwise. */ export declare class OP_CHECKSIG extends StaticCode { constructor(); } /** * Same as OP_CHECKSIG, but OP_VERIFY is executed afterward. */ export declare class OP_CHECKSIGVERIFY extends StaticCode { constructor(); } /** * Compares the first signature against each public key * until it finds an ECDSA match. Starting with the * subsequent public key, it compares the second * signature against each remaining public key until it * finds an ECDSA match. The process is repeated until * all signatures have been checked or not enough public * keys remain to produce a successful result. * All signatures need to match a public key. * Because public keys are not checked again if they * fail any signature comparison, signatures must be * placed in the scriptSig using the same order as their * corresponding public keys were placed in the * scriptPubKey or redeemScript.If all signatures are * valid, 1 is returned, 0 otherwise. Due to a bug, one * extra unused value is removed from the stack. */ export declare class OP_CHECKMULTISIG extends StaticCode { constructor(); } /** * Same as OP_CHECKMULTISIG, but OP_VERIFY is executed afterward. */ export declare class OP_CHECKMULTISIGVERIFY extends StaticCode { constructor(); } //# sourceMappingURL=crypto.d.ts.map