Expand description
Consensus-encodable types
Re-exports§
pub use bitcoin;
Structs§
- VarInt
- A variable sized integer.
Enums§
- Error
- Encoding error
Constants§
- MAX_
VEC_ SIZE - Maximum size, in bytes, of a vector we are allowed to decode.
Traits§
- Decodable
- Data which can be encoded in a consensus-consistent way
- Encodable
- Data which can be encoded in a consensus-consistent way
Functions§
- deserialize
- Deserialize an object from a vector, will error if said deserialization doesn’t consume the entire vector.
- deserialize_
partial - Deserialize an object from a vector, but will not report an error if said deserialization doesn’t consume the entire vector.
- serialize
- Encode an object into a vector
- serialize_
hex - Encode an object into a hex-encoded string