Re-exports§

Modules§

  • Traits, helpers, and type definitions for core I/O functionality.

Structs§

  • Flags to be encoded into the serialization.
  • A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§

  • Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.
  • Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.

Traits§

  • Deserializer in little endian format. This trait can be derived if all fields of a struct implement CanonicalDeserialize and the derive feature is enabled.
  • Deserializer in little endian format allowing flags to be encoded.
  • Serializer in little endian format. This trait can be derived if all fields of a struct implement CanonicalSerialize and the derive feature is enabled.
  • Serializer in little endian format allowing to encode flags.
  • A helper trait used to simplify value extraction.
  • Represents metadata to be appended to an object’s serialization. For example, when serializing elliptic curve points, one can use a Flag to represent whether the serialization is the point at infinity, or whether the y coordinate is positive or not. These bits will be appended to the end of the point’s serialization, or included in a new byte, depending on space available.
  • The Read trait allows for reading bytes from a source.
  • A trait for objects which are byte-oriented sinks.

Functions§

  • Deserialize a Vector’s elements without deserializing the Vector’s length If you want to deserialize the full Vector, use CanonicalDeserialize for Vec<T>
  • Return the number of (byte-aligned) bits and bytes required to represent the given number of bits.
  • Return the number of bytes required to represent the given number of bits.
  • Serialize a Vector’s elements without serializing the Vector’s length If you want to serialize the full Vector, use CanonicalSerialize for Vec<T>
  • Serialize a Vector’s element sizes without serializing the Vector’s length If you want to serialize the full Vector, use CanonicalSerialize for Vec<T>

Derive Macros§