PayToOpenResponse

data class PayToOpenResponse(chainHash: ByteVector32, paymentHash: ByteVector32, result: PayToOpenResponse.Result) : LightningMessage, HasChainHash

Types

Companion
Link copied to clipboard
common
object Companion : LightningMessageReader<PayToOpenResponse>
Result
Link copied to clipboard
common
sealed class Result

Functions

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

Properties

chainHash
Link copied to clipboard
common
open override val chainHash: ByteVector32
paymentHash
Link copied to clipboard
common
val paymentHash: ByteVector32
result
Link copied to clipboard
common
val result: PayToOpenResponse.Result
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.