@node-dlc/messaging
Version:
DLC Messaging Protocol
43 lines (42 loc) • 1.14 kB
TypeScript
/// <reference types="node" />
import { MessageType } from '../MessageType';
import { IDlcMessage } from './DlcMessage';
/**
* CetAdaptorSignatures V0 contains CET signatures and any necessary
* information linking the signatures to their corresponding outcome
*/
export declare class CetAdaptorSignaturesV0 implements IDlcMessage {
static type: MessageType;
/**
* Deserializes a cet_adaptor_signature_v0 message
* @param buf
*/
static deserialize(buf: Buffer): CetAdaptorSignaturesV0;
/**
* The type for cet_adaptor_signature message. cet_adaptor_signature = 42774
*/
type: MessageType;
length: bigint;
sigs: ISig[];
/**
* Converts cet_adaptor_signature to JSON
*/
toJSON(): ICetAdaptorSignaturesV0JSON;
/**
* Serializes the cet_adaptor_signature message into a Buffer
*/
serialize(): Buffer;
}
interface ISig {
encryptedSig: Buffer;
dleqProof: Buffer;
}
export interface ICetAdaptorSignaturesV0JSON {
type: number;
sigs: ISigJSON[];
}
export interface ISigJSON {
encryptedSig: string;
dleqProof: string;
}
export {};