@node-lightning/wire
Version:
Lightning Network Wire Protocol
41 lines (40 loc) • 1.48 kB
TypeScript
/// <reference types="node" />
import { ChannelId } from "@node-lightning/core";
import { MessageType } from "../MessageType";
import { IWireMessage } from "./IWireMessage";
/**
* This message is sent by both participants in the channel after
* the funding transaction has reached a sufficient depth (as specified
* in `accept_channel` via the `minimum_depth` property). This message
* enables normal operation for the channel by providing the
* next `per_commitment_point` needed to generate a new commitment
* transaction signature. This message may get resent upon reconnections
* if no additional updates have occurred for the channel.
*/
export declare class FundingLockedMessage implements IWireMessage {
static type: MessageType;
/**
* Deserializes the `funding_signed` message per BOLT2
*/
static deserialize(buf: Buffer): FundingLockedMessage;
/**
* The type for message. funding_signed = 35
*/
readonly type: MessageType;
/**
* Unique channel identifier for the channel based on the funding
* transactions UTXO.
*/
channelId: ChannelId;
/**
* Provides the next_per_commitment_point that the peer should use
* for the next commitment transaction. For this message, this is
* the commitment transaction in the first update.
*/
nextPerCommitmentPoint: Buffer;
/**
* Serializes the `funding_locked` message per BOLT2
* @returns
*/
serialize(): Buffer;
}