Expand description
Zcash binary encodings.
zcash_encoding is a library that provides common encoding and decoding operations
for stable binary encodings used throughout the Zcash ecosystem.
Structs§
- Array
- Namespace for functions that perform encoding of array contents.
- Compact
Size - Namespace for functions for compact encoding of integers.
- Optional
- Namespace for functions that perform encoding of
Optionvalues. - Reverse
Hex - This handles the legacy format from Bitcoin Core’s
uint256::GetHex, which reverses bytes before hex encoding.zcashdapplied this to all 32-byte JSON-RPC values (transaction IDs, block hashes, Sprout field elements, etc.), though non-32-byte hex values are not reversed. - Vector
- Namespace for functions that perform encoding of vectors.
Constants§
- MAX_
COMPACT_ SIZE - The maximum allowed value representable as a
[CompactSize]