Module consensus
Expand description
Bitcoin consensus.
This module defines structures, functions, and traits that are needed to conform to Bitcoin consensus.
Modules§
Structs§
- Params
- Parameters that influence chain consensus.
Traits§
- Decodable
- Data which can be encoded in a consensus-consistent way
- Encodable
- Data which can be encoded in a consensus-consistent way
- ReadExt
- Extensions of
Read
to decode data as per Bitcoin consensus - Write
Ext - Extensions of
Write
to encode data as per Bitcoin consensus
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