UNPKG

scryptlib

Version:

Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.

17 lines (16 loc) 545 B
/// <reference types="node" /> /** * * @param message origin message to sha256 * @param index The partial hash returned is the hash of 0~index chunks, 512 bits per chunk. * @returns [partialHash, partialPreimage, padding] */ export declare function partialSha256(message: Buffer, index: number): string[]; /** * * @param partialHash * @param partialPreimage * @param padding * @returns sha256 of the origin message */ export declare function sha256ByPartialHash(partialHash: string, partialPreimage: string, padding: string): string;