solana/ledger
behzad nouri 9db25655f7
recovers merkle roots from shreds binary in {verify,sign}_shreds_gpu (#29445)
{verify,sign}_shreds_gpu need to point to offsets within the packets for
the signed data. For merkle shreds this signed data is the merkle root
of the erasure batch and this would necessitate embedding the merkle
roots in the shreds payload.
However this is wasteful and reduces shreds capacity to store data
because the merkle root can already be recovered from the encoded merkle
proof.

Instead of pointing to offsets within the shreds payload, this commit
recovers merkle roots from the merkle proofs and stores them in an
allocated buffer. {verify,sign}_shreds_gpu would then point to offsets
within this new buffer for the respective signed data.

This would unblock us from removing merkle roots from shreds payload
which would save capacity to send more data with each shred.
2023-01-04 14:20:05 +00:00
..
benches
src recovers merkle roots from shreds binary in {verify,sign}_shreds_gpu (#29445) 2023-01-04 14:20:05 +00:00
tests fix typo in shred.rs (#29149) 2022-12-15 01:14:39 -06:00
.gitignore
Cargo.toml chore: bump test-case from 2.1.0 to 2.2.2 (#28184) 2022-12-13 16:07:50 +00:00
build.rs