PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/bitcoinjs-lib/src

Просмотр файла: script_signature.d.ts

/// <reference types="node" />
interface ScriptSignature {
    signature: Buffer;
    hashType: number;
}
/**
 * Decodes a buffer into a ScriptSignature object.
 * @param buffer - The buffer to decode.
 * @returns The decoded ScriptSignature object.
 * @throws Error if the hashType is invalid.
 */
export declare function decode(buffer: Buffer): ScriptSignature;
/**
 * Encodes a signature and hash type into a buffer.
 * @param signature - The signature to encode.
 * @param hashType - The hash type to encode.
 * @returns The encoded buffer.
 * @throws Error if the hashType is invalid.
 */
export declare function encode(signature: Buffer, hashType: number): Buffer;
export {};

Выполнить команду


Для локальной разработки. Не используйте в интернете!