Serialization

object Serialization

Functions

decrypt
Link copied to clipboard
common
fun decrypt(key: ByteVector32, backup: EncryptedChannelData, nodeParams: NodeParams): ChannelStateWithCommitments
fun decrypt(key: ByteVector32, data: ByteArray, 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: PrivateKey, state: ChannelStateWithCommitments): EncryptedChannelData
serialize
Link copied to clipboard
common
fun serialize(state: ChannelStateWithCommitments): ByteArray