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