Expand description
Provisional compact-block relay and bounded reconstruction. Provisional compact relay encoding version 1, requiring both peers to opt in.
Short IDs commit to witnessed identities, not just transaction effects. Reconstruction checks size, ordering, transaction Merkle roots and duplicates; callers must authenticate authorizing data against the committed tip before submitting the resulting block to consensus. Hashing and reconstruction are synchronous and must run on a blocking worker.
StructsΒ§
- Block
Transactions - Complete transactions in the corresponding recovery requestβs order.
- Block
Transactions Request - A single recovery request for missing absolute transaction positions.
- Compact
Block - A full Zcash header and ordered compact transaction identities.
- Expected
Block πTransactions - The
blocktxnresponse that a connection is waiting for. - Reconstruction
- Bounded partial reconstruction; not a consensus or authorizing-data validation verdict.
ConstantsΒ§
- MAX_
INITIAL_ πALLOCATION - The largest number of items that memory is reserved for before any of them is read.
FunctionsΒ§
- add_
bytes π - check_
bytes π - check_
count π - check_
transactions_ πsize - Returns an error if the first
parsedtransactions of a message, which take upbytesbytes, average fewer bytes than the smallest valid transaction. The block decoder has the same rule for a blockβs transactions. - read_
count π - read_
index π - short_
id π - vec_
for_ πcount - Returns an empty vector for the
countitems that a peerβs message says it has. - write_
count π - write_
index π