Module zebra_chain::serialization::zcash_deserialize
source · Expand description
Converting bytes into Zcash consensus-critical data structures.
Constants§
- The length of the longest valid
Vec<u8>
that can be received over the network
Traits§
- Blind preallocation of a
Vec<T: TrustedPreallocate>
is based on a bounded length. This is in contrast to blind preallocation of a genericVec<T>
, which is a DOS vector. - Consensus-critical deserialization for Zcash.
- Helper for deserializing more succinctly via type inference
Functions§
zcash_deserialize_external_count
, specialised for raw bytes.- Deserialize a
Vec
containingexternal_count
items. zcash_deserialize_external_count
, specialised forString
. The external count is in bytes. (Not UTF-8 characters.)