ChannelAnnouncement

data class ChannelAnnouncement(nodeSignature1: ByteVector64, nodeSignature2: ByteVector64, bitcoinSignature1: ByteVector64, bitcoinSignature2: ByteVector64, features: Features, chainHash: ByteVector32, shortChannelId: ShortChannelId, nodeId1: PublicKey, nodeId2: PublicKey, bitcoinKey1: PublicKey, bitcoinKey2: PublicKey, unknownFields: ByteVector) : AnnouncementMessage, HasChainHash

Types

Companion
Link copied to clipboard
common
object Companion : LightningMessageReader<ChannelAnnouncement>

Functions

write
Link copied to clipboard
common
open fun write(): ByteArray
open override fun write(out: Output)

Properties

bitcoinKey1
Link copied to clipboard
common
val bitcoinKey1: PublicKey
bitcoinKey2
Link copied to clipboard
common
val bitcoinKey2: PublicKey
bitcoinSignature1
Link copied to clipboard
common
val bitcoinSignature1: ByteVector64
bitcoinSignature2
Link copied to clipboard
common
val bitcoinSignature2: ByteVector64
chainHash
Link copied to clipboard
common
open override val chainHash: ByteVector32
features
Link copied to clipboard
common
val features: Features
nodeId1
Link copied to clipboard
common
val nodeId1: PublicKey
nodeId2
Link copied to clipboard
common
val nodeId2: PublicKey
nodeSignature1
Link copied to clipboard
common
val nodeSignature1: ByteVector64
nodeSignature2
Link copied to clipboard
common
val nodeSignature2: ByteVector64
shortChannelId
Link copied to clipboard
common
val shortChannelId: ShortChannelId
type
Link copied to clipboard
common
open override val type: Long

Once decrypted, lightning messages start with a 2-byte type that uniquely identifies the kind of message received. See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format.

unknownFields
Link copied to clipboard
common
val unknownFields: ByteVector