Module zcash_deserialize

Source
Expand description

Converting bytes into Zcash consensus-critical data structures.

Constants§

MAX_U8_ALLOCATION 🔒
The length of the longest valid Vec<u8> that can be received over the network

Traits§

TrustedPreallocate
Blind preallocation of a Vec<T: TrustedPreallocate> is based on a bounded length. This is in contrast to blind preallocation of a generic Vec<T>, which is a DOS vector.
ZcashDeserialize
Consensus-critical deserialization for Zcash.
ZcashDeserializeInto
Helper for deserializing more succinctly via type inference

Functions§

zcash_deserialize_bytes_external_count
zcash_deserialize_external_count, specialised for raw bytes.
zcash_deserialize_external_count
Deserialize a Vec containing external_count items.
zcash_deserialize_string_external_count
zcash_deserialize_external_count, specialised for String. The external count is in bytes. (Not UTF-8 characters.)