UNPKG

@node-dlc/messaging

Version:
35 lines (34 loc) 1.09 kB
/// <reference types="node" /> import { MessageType } from '../MessageType'; import { IDlcMessage } from './DlcMessage'; import { IScriptWitnessV0JSON, ScriptWitnessV0 } from './ScriptWitnessV0'; /** * FundingSignatures V0 contains signatures of the funding transaction * and any necessary information linking the signatures to their inputs. */ export declare class FundingSignaturesV0 implements IDlcMessage { static type: MessageType; /** * Deserializes an funding_signatures_v0 message * @param buf */ static deserialize(buf: Buffer): FundingSignaturesV0; /** * The type for funding_signatures_v0 message. funding_signatures_v0 = 42776 */ type: MessageType; length: bigint; witnessElements: ScriptWitnessV0[][]; /** * Converts funding_signatures_v0 to JSON */ toJSON(): IFundingSignaturesV0JSON; /** * Serializes the funding_signatures_v0 message into a Buffer */ serialize(): Buffer; } export interface IFundingSignaturesV0JSON { type: number; witnessElements: IScriptWitnessV0JSON[][]; }