Module elements::encode

source ·
Expand description

Consensus-encodable types

Re-exports§

Structs§

  • A variable sized integer.

Enums§

Constants§

  • Maximum size, in bytes, of a vector we are allowed to decode.

Traits§

  • Data which can be encoded in a consensus-consistent way
  • Data which can be encoded in a consensus-consistent way

Functions§

  • Deserialize an object from a vector, will error if said deserialization doesn’t consume the entire vector.
  • Deserialize an object from a vector, but will not report an error if said deserialization doesn’t consume the entire vector.
  • Encode an object into a vector
  • Encode an object into a hex-encoded string