UNPKG

@node-lightning/wire

Version:
51 lines (50 loc) 1.66 kB
/// <reference types="node" /> import { ShortChannelId } from "@node-lightning/core"; import { MessageType } from "../MessageType"; import { IWireMessage } from "./IWireMessage"; /** * This is a direct messagee between two endpoints of a channel * and serves as an opt-in mechanism to allow the * announcement of the channel to the rest of the network. It * contains the necessary signatuures, by the sender, to construct * the channel_announcement message. * * The message constructed by constructing a channel_announcement * message, corresponding to the newly created channel, and signing * it with the secrets matching an endpoint's node_id and * bitcoin_key. */ export declare class AnnouncementSignaturesMessage implements IWireMessage { /** * Deserializes a Buffer into an AnnouncementSignaturesMessage. */ static deserialize(payload: Buffer): AnnouncementSignaturesMessage; /** * Message type - 259 */ type: MessageType; /** * Buffer of the channel_id for the message. */ channelId: Buffer; /** * ShortChannelId is a unique reference to the funding output of * the channel. */ shortChannelId: ShortChannelId; /** * Buffer containing the signature of the channel_announcement message * signed by the endpoint's node_id. */ nodeSignature: Buffer; /** * Buffer containing the signaturee of the channel_announcment message * signed by the endpoint's bitcoin_key. */ bitcoinSignature: Buffer; /** * Serializes the instance into a Buffer suitable for * transmission on the wire. */ serialize(): Buffer; }