Serialization

object Serialization

Types

DataInputDecoder
Link copied to clipboard
common
class DataInputDecoder(input: ByteArrayInput, elementsCount: Int) : AbstractDecoder
DataOutputEncoder
Link copied to clipboard
common
class DataOutputEncoder(output: ByteArrayOutput) : AbstractEncoder

Functions

decrypt
Link copied to clipboard
common
fun decrypt(key: ByteVector32, data: ByteArray, nodeParams: NodeParams): ChannelStateWithCommitments
fun decrypt(key: PrivateKey, backup: EncryptedChannelData, nodeParams: NodeParams): ChannelStateWithCommitments
fun decrypt(key: PrivateKey, data: ByteArray, nodeParams: NodeParams): ChannelStateWithCommitments
deserialize
Link copied to clipboard
common
fun deserialize(bin: ByteArray, nodeParams: NodeParams): ChannelStateWithCommitments
encrypt
Link copied to clipboard
common
fun encrypt(key: ByteVector32, state: ChannelStateWithCommitments): EncryptedChannelData
fun encrypt(key: ByteVector32, state: ChannelStateWithCommitments): EncryptedChannelData
fun encrypt(key: PrivateKey, state: ChannelStateWithCommitments): EncryptedChannelData
serialize
Link copied to clipboard
common
fun serialize(state: ChannelStateWithCommitments): ByteArray
fun serialize(state: ChannelStateWithCommitments): ByteArray

Properties

lightningSerializersModule
Link copied to clipboard
common
val lightningSerializersModule: SerializersModule