Module zcash_serialize

Source
Expand description

Converting Zcash consensus-critical data structures into bytes.

Structs§

FakeWriter
A fake writer helper used to get object lengths without allocating RAM.

Constants§

MAX_PROTOCOL_MESSAGE_LEN
The maximum length of a Zcash message, in bytes.

Traits§

ZcashSerialize
Consensus-critical serialization for Zcash.

Functions§

zcash_serialize_bytes
Serialize a byte vector as a CompactSize number of items, then the items.
zcash_serialize_bytes_external_count
Serialize a raw byte Vec without writing the number of items as a CompactSize.
zcash_serialize_empty_list
Serialize an empty list of items, by writing a zero CompactSize length. (And no items.)
zcash_serialize_external_count
Serialize a typed Vec without writing the number of items as a CompactSize.