Module zaino_fetch::chain::utils
source · Expand description
Blockcache utility functionality.
Structs§
- Zcash CompactSize implementation taken from LibRustZcash::zcash_encoding to simplify dependency tree.
Constants§
- The maximum allowed value representable as a
[CompactSize]
Traits§
- Used for decoding zcash blocks from a bytestring.
Functions§
- Takes a vec of big endian hex encoded txids and returns them as a vec of little endian raw bytes.
- Reads the next byte from cursor into a bool, returns error message given if eof is reached..
- Reads the next n bytes from cursor into a vec
, returns error message given if eof is reached.. - Reads the next 4 bytes from cursor into an i32, returns error message given if eof is reached..
- Reads the next 4 bytes from cursor into a u32, returns error message given if eof is reached..
- Reads the next 8 bytes from cursor into a u64, returns error message given if eof is reached..
- Reads and interprets a Zcash (Bitcoin) custom compact integer encoding used for int64 numbers in scripts.
- Skips the next n bytes in cursor, returns error message given if eof is reached.