Crate binary_codec_sv2[][src]

Expand description
SERDE    <-> Sv2
bool     <-> BOOL
u8       <-> U8
u16      <-> U16
U24      <-> U24
u32      <-> u32
u64      <-> u64 // TODO not in the spec but used
U256     <-> U256
String   <-> STRO_255
Signature<-> SIGNATURE
B0255    <-> B0_255
B064K    <-> B0_64K
B016M    <-> B0_16M
[u8]     <-> BYTES
Pubkey   <-> PUBKEY
Seq0255  <-> SEQ0_255[T]
Seq064K  <-> SEQ0_64K[T]

Modules

Structs

The liftime is here only for type compatibility with serde-sv2

The liftime is here only for type compatibility with serde-sv2

Enums

Traits

Implmented by all the decodable structure, it can be derived for every structure composed only by primitives or other Decodable.

Return the encodec byte size of an Encodable coommprensive of the header if any

Return the encoded byte size od a Decodable

Functions

Type Definitions