Module ser_impls

Module ser_impls 

Source
Expand description

Set of utility functions to help with serialization.

Modules§

dlc_input_info
Module containing write and read functions for $name
enum_payout
Module containing write and read functions for $name
party_params
Module containing write and read functions for $name
payout
Module containing write and read functions for $name
tx_input_info
Module containing write and read functions for $name

Structs§

BigSize
Taken from rust-lightning: https://github.com/rust-bitcoin/rust-lightning/blob/v0.0.101/lightning/src/util/ser.rs#L295

Functions§

read_address
Reads a [bitcoin::util::address::Address] value from the given reader.
read_as_tlv
Read a lightning::util::ser::Writeable value from the given reader as a TLV.
read_ecdsa_adaptor_signature
Reads an secp256k1_zkp::EcdsaAdaptorSignature from the given reader.
read_ecdsa_adaptor_signatures
Reads a set of secp256k1_zkp::EcdsaAdaptorSignature from the given reader.
read_f64
Reads an f64 value from the given reader.
read_hash_map
Reads a HashMap.
read_i32
Reads an i32 value from the given reader.
read_option
Reads an option of a lightning::util::ser::Writeable value from the given reader.
read_option_cb
Reads an option using the provided callback to deserialize the inner value (if any).
read_schnorr_pubkey
Reads a schnorr public key from the given reader.
read_schnorr_pubkeys
Reads a set of schnorr public keys from the given reader.
read_schnorr_signatures
Reads a set of [secp256k1_zkp::schnorrsig::Signature] from the given reader.
read_schnorrsig
Reads a [secp256k1_zkp::schnorrsig::Signature] value from the given reader.
read_signed_amount
Reads a SignedAmount value from the given reader.
read_string
Reads a string from the given reader.
read_strings
Reads a set of strings from the given reader.
read_strings_u16
Reads a set of string from the given reader, assuming u16 prefixes, compared to read_strings which assumes BigSize prefixes.
read_usize
Reads a usize value as a u64 from the given reader.
read_vec
Reads a vector of writeable from the given reader.
read_vec_cb
Reads a vector of values from the given reader using the provided callback to deserialize each value.
read_vec_u16
Reads a vector of values from the given reader. This function differs from read_vec in that it uses u16 prefixes to read the length of the vector instead of a BigSize.
read_vec_u16_cb
Reads a vector of values from the given reader using the provided callback to deserialize each value. This function differs from read_vec_cb in that it uses u16 prefixes to read the length of the vector instead of a BigSize.
write_address
Writes a [bitcoin::util::address::Address] value to the given writer.
write_as_tlv
Writes a lightning::util::ser::Writeable value to the given writer as a TLV.
write_ecdsa_adaptor_signature
Writes an secp256k1_zkp::EcdsaAdaptorSignature to the given writer.
write_ecdsa_adaptor_signatures
Writes a set of secp256k1_zkp::EcdsaAdaptorSignature to the given writer.
write_f64
Writes an f64 value to the given writer.
write_hash_map
Writes a HashMap.
write_i32
Writes an i32 value to the given writer.
write_option
Writes an option of a lightning::util::ser::Writeable value to the given writer.
write_option_cb
Writes an option using the provided callback to serialize the inner value (if any).
write_schnorr_pubkey
Writes a schnorr public key to the given writer.
write_schnorr_pubkeys
Writes a set of schnorr public keys to the given writer.
write_schnorr_signatures
Writes a set of [secp256k1_zkp::schnorrsig::Signature] to the given writer.
write_schnorrsig
Writes a [secp256k1_zkp::schnorrsig::Signature] value to the given writer.
write_signed_amount
Writes a SignedAmount value to the given writer.
write_string
Writes a given string to the given writer, prefixing the string length as a BigSize value.
write_strings
Writes a set of strings to the given writer.
write_strings_u16
Writes a set of strings to the given writer, using u16 prefixes, compared to write_strings which uses BigSize prefixes.
write_usize
Writes a usize value as a u64 to the given writer.
write_vec
Writes a vector of writeable to the given writer.
write_vec_cb
Writes a vector of values to the given writer using the provided callback to serialize each value.
write_vec_u16
Writes a vector of values to the given writer. This function differs from write_vec in that it uses u16 prefixes to give the length of the vector instead of a BigSize.
write_vec_u16_cb
Writes a vector of values to the given writer using the provided callback to serialize each value. This function differs from write_vec_cb in that it uses u16 prefixes to give the length of the vector instead of a BigSize.