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§
- Trusted
Preallocate - 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. - Zcash
Deserialize - Consensus-critical deserialization for Zcash.
- Zcash
Deserialize Into - 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
containingexternal_count
items. - zcash_
deserialize_ string_ external_ count zcash_deserialize_external_count
, specialised forString
. The external count is in bytes. (Not UTF-8 characters.)