snarkVM
snarkVM copied to clipboard
Introduce compact block headers
Motivation
This PR introduces CompactBatchHeader, CompactBatchCertificate, and CompactSubdag by updating the vec of transmission ids in the batch header into a vec of index references. This is safe, because these references point to transactions, ratifications, and solutions that should already be included in the block. This will help reduce the block size by 1 TransmissionID (32 bytes) per transmission.
Doh, did not see this already existed, linking related PR trying to do the same thing: https://github.com/AleoNet/snarkVM/pull/2304