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 toread_strings
which assumesBigSize
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 usesu16
prefixes to read the length of the vector instead of aBigSize
. - 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 usesu16
prefixes to read the length of the vector instead of aBigSize
. - 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 towrite_strings
which usesBigSize
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 usesu16
prefixes to give the length of the vector instead of aBigSize
. - 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 usesu16
prefixes to give the length of the vector instead of aBigSize
.