diff --git a/crates/flat-head/Cargo.toml b/crates/flat-head/Cargo.toml index 654d4b6f..d2ab5f52 100644 --- a/crates/flat-head/Cargo.toml +++ b/crates/flat-head/Cargo.toml @@ -14,7 +14,7 @@ decoder = { path = "../flat-files-decoder" } dotenvy.workspace = true env_logger.workspace = true futures.workspace = true -header_accumulator = { path = "../header-accumulator" } +header_accumulator = { path = "../headacc" } log.workspace = true object_store.workspace = true sf-protos = { path = "../sf-protos" } diff --git a/crates/header-accumulator/Cargo.toml b/crates/headacc/Cargo.toml similarity index 95% rename from crates/header-accumulator/Cargo.toml rename to crates/headacc/Cargo.toml index d5c2b53b..b73b695e 100644 --- a/crates/header-accumulator/Cargo.toml +++ b/crates/headacc/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "header_accumulator" +name = "headacc" version = "0.1.0" edition = "2021" diff --git a/crates/headacc/README.md b/crates/headacc/README.md new file mode 100644 index 00000000..0c58b72a --- /dev/null +++ b/crates/headacc/README.md @@ -0,0 +1,42 @@ +# `headacc` + +The `headacc` crate is designed to accumulate and verify block headers by comparing them against header accumulators. This verification process ensures the authenticity of blocks and the integrity of blockchain data. + +While `headacc` is primarily intended to be used as a library, it requires pre-parsed blocks to function. It integrates seamlessly with other tools like StreamingFast's Firehose and flat file decoders for complete blockchain verification workflows. + +## Getting Started + +### Prerequisites +To get started, ensure you have the following installed: + +- [Rust (stable)](https://www.rust-lang.org/tools/install) and Cargo (bundled with Rust) +- [protoc](https://grpc.io/docs/protoc-installation/) for protobuf support + +## Features + +- **`era_validate`**: Validates entire eras of flat files against Header Accumulators. Use this feature to verify the integrity of data across multiple eras. + +- **`generate_inclusion_proof`**: Generates inclusion proofs for a range of blocks. This helps confirm that specific blocks exist within a given dataset. + +- **`verify_inclusion_proof`**: Verifies inclusion proofs for a specified range of blocks, ensuring the accuracy of inclusion proofs. + +## Command-Line Options + +- `-h, --help`: Displays detailed help information, including usage instructions, commands, and available options. + +## Goals + +The primary goal of `headacc` is to provide a reliable tool for block verification within the [StreamingFast Firehose](https://firehose.streamingfast.io/) ecosystem. It works alongside the [flat-files-decoder](https://github.com/semiotic-ai/flat-files-decoder) library and integrates into [flat_head](https://github.com/semiotic-ai/flat_head) to deliver a verification solution. + +## Testing + +Some tests in this crate rely on the [flat-files-decoder](https://github.com/semiotic-ai/flat-files-decoder), which is included as a development dependency. + +To run tests, use: +```bash +cargo test +``` + +### Coverage + +Generate code coverage reports with `cargo llvm-cov --html` and open them with `open ./target/llvm-cov/html/index.html`. diff --git a/crates/header-accumulator/src/epoch.rs b/crates/headacc/src/epoch.rs similarity index 100% rename from crates/header-accumulator/src/epoch.rs rename to crates/headacc/src/epoch.rs diff --git a/crates/header-accumulator/src/era_validator.rs b/crates/headacc/src/era_validator.rs similarity index 100% rename from crates/header-accumulator/src/era_validator.rs rename to crates/headacc/src/era_validator.rs diff --git a/crates/header-accumulator/src/errors.rs b/crates/headacc/src/errors.rs similarity index 100% rename from crates/header-accumulator/src/errors.rs rename to crates/headacc/src/errors.rs diff --git a/crates/header-accumulator/src/inclusion_proof.rs b/crates/headacc/src/inclusion_proof.rs similarity index 100% rename from crates/header-accumulator/src/inclusion_proof.rs rename to crates/headacc/src/inclusion_proof.rs diff --git a/crates/header-accumulator/src/lib.rs b/crates/headacc/src/lib.rs similarity index 100% rename from crates/header-accumulator/src/lib.rs rename to crates/headacc/src/lib.rs diff --git a/crates/header-accumulator/src/main.rs b/crates/headacc/src/main.rs similarity index 100% rename from crates/header-accumulator/src/main.rs rename to crates/headacc/src/main.rs diff --git a/crates/header-accumulator/src/sync.rs b/crates/headacc/src/sync.rs similarity index 100% rename from crates/header-accumulator/src/sync.rs rename to crates/headacc/src/sync.rs diff --git a/crates/header-accumulator/src/types.rs b/crates/headacc/src/types.rs similarity index 100% rename from crates/header-accumulator/src/types.rs rename to crates/headacc/src/types.rs diff --git a/crates/header-accumulator/tests/compressed/0000000000.dbin.zst b/crates/headacc/tests/compressed/0000000000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000000.dbin.zst rename to crates/headacc/tests/compressed/0000000000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000100.dbin.zst b/crates/headacc/tests/compressed/0000000100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000100.dbin.zst rename to crates/headacc/tests/compressed/0000000100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000200.dbin.zst b/crates/headacc/tests/compressed/0000000200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000200.dbin.zst rename to crates/headacc/tests/compressed/0000000200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000300.dbin.zst b/crates/headacc/tests/compressed/0000000300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000300.dbin.zst rename to crates/headacc/tests/compressed/0000000300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000400.dbin.zst b/crates/headacc/tests/compressed/0000000400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000400.dbin.zst rename to crates/headacc/tests/compressed/0000000400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000500.dbin.zst b/crates/headacc/tests/compressed/0000000500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000500.dbin.zst rename to crates/headacc/tests/compressed/0000000500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000600.dbin.zst b/crates/headacc/tests/compressed/0000000600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000600.dbin.zst rename to crates/headacc/tests/compressed/0000000600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000700.dbin.zst b/crates/headacc/tests/compressed/0000000700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000700.dbin.zst rename to crates/headacc/tests/compressed/0000000700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000800.dbin.zst b/crates/headacc/tests/compressed/0000000800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000800.dbin.zst rename to crates/headacc/tests/compressed/0000000800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000000900.dbin.zst b/crates/headacc/tests/compressed/0000000900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000000900.dbin.zst rename to crates/headacc/tests/compressed/0000000900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001000.dbin.zst b/crates/headacc/tests/compressed/0000001000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001000.dbin.zst rename to crates/headacc/tests/compressed/0000001000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001100.dbin.zst b/crates/headacc/tests/compressed/0000001100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001100.dbin.zst rename to crates/headacc/tests/compressed/0000001100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001200.dbin.zst b/crates/headacc/tests/compressed/0000001200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001200.dbin.zst rename to crates/headacc/tests/compressed/0000001200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001300.dbin.zst b/crates/headacc/tests/compressed/0000001300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001300.dbin.zst rename to crates/headacc/tests/compressed/0000001300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001400.dbin.zst b/crates/headacc/tests/compressed/0000001400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001400.dbin.zst rename to crates/headacc/tests/compressed/0000001400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001500.dbin.zst b/crates/headacc/tests/compressed/0000001500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001500.dbin.zst rename to crates/headacc/tests/compressed/0000001500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001600.dbin.zst b/crates/headacc/tests/compressed/0000001600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001600.dbin.zst rename to crates/headacc/tests/compressed/0000001600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001700.dbin.zst b/crates/headacc/tests/compressed/0000001700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001700.dbin.zst rename to crates/headacc/tests/compressed/0000001700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001800.dbin.zst b/crates/headacc/tests/compressed/0000001800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001800.dbin.zst rename to crates/headacc/tests/compressed/0000001800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000001900.dbin.zst b/crates/headacc/tests/compressed/0000001900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000001900.dbin.zst rename to crates/headacc/tests/compressed/0000001900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002000.dbin.zst b/crates/headacc/tests/compressed/0000002000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002000.dbin.zst rename to crates/headacc/tests/compressed/0000002000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002100.dbin.zst b/crates/headacc/tests/compressed/0000002100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002100.dbin.zst rename to crates/headacc/tests/compressed/0000002100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002200.dbin.zst b/crates/headacc/tests/compressed/0000002200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002200.dbin.zst rename to crates/headacc/tests/compressed/0000002200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002300.dbin.zst b/crates/headacc/tests/compressed/0000002300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002300.dbin.zst rename to crates/headacc/tests/compressed/0000002300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002400.dbin.zst b/crates/headacc/tests/compressed/0000002400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002400.dbin.zst rename to crates/headacc/tests/compressed/0000002400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002500.dbin.zst b/crates/headacc/tests/compressed/0000002500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002500.dbin.zst rename to crates/headacc/tests/compressed/0000002500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002600.dbin.zst b/crates/headacc/tests/compressed/0000002600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002600.dbin.zst rename to crates/headacc/tests/compressed/0000002600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002700.dbin.zst b/crates/headacc/tests/compressed/0000002700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002700.dbin.zst rename to crates/headacc/tests/compressed/0000002700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002800.dbin.zst b/crates/headacc/tests/compressed/0000002800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002800.dbin.zst rename to crates/headacc/tests/compressed/0000002800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000002900.dbin.zst b/crates/headacc/tests/compressed/0000002900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000002900.dbin.zst rename to crates/headacc/tests/compressed/0000002900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003000.dbin.zst b/crates/headacc/tests/compressed/0000003000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003000.dbin.zst rename to crates/headacc/tests/compressed/0000003000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003100.dbin.zst b/crates/headacc/tests/compressed/0000003100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003100.dbin.zst rename to crates/headacc/tests/compressed/0000003100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003200.dbin.zst b/crates/headacc/tests/compressed/0000003200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003200.dbin.zst rename to crates/headacc/tests/compressed/0000003200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003300.dbin.zst b/crates/headacc/tests/compressed/0000003300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003300.dbin.zst rename to crates/headacc/tests/compressed/0000003300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003400.dbin.zst b/crates/headacc/tests/compressed/0000003400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003400.dbin.zst rename to crates/headacc/tests/compressed/0000003400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003500.dbin.zst b/crates/headacc/tests/compressed/0000003500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003500.dbin.zst rename to crates/headacc/tests/compressed/0000003500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003600.dbin.zst b/crates/headacc/tests/compressed/0000003600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003600.dbin.zst rename to crates/headacc/tests/compressed/0000003600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003700.dbin.zst b/crates/headacc/tests/compressed/0000003700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003700.dbin.zst rename to crates/headacc/tests/compressed/0000003700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003800.dbin.zst b/crates/headacc/tests/compressed/0000003800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003800.dbin.zst rename to crates/headacc/tests/compressed/0000003800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000003900.dbin.zst b/crates/headacc/tests/compressed/0000003900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000003900.dbin.zst rename to crates/headacc/tests/compressed/0000003900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004000.dbin.zst b/crates/headacc/tests/compressed/0000004000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004000.dbin.zst rename to crates/headacc/tests/compressed/0000004000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004100.dbin.zst b/crates/headacc/tests/compressed/0000004100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004100.dbin.zst rename to crates/headacc/tests/compressed/0000004100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004200.dbin.zst b/crates/headacc/tests/compressed/0000004200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004200.dbin.zst rename to crates/headacc/tests/compressed/0000004200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004300.dbin.zst b/crates/headacc/tests/compressed/0000004300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004300.dbin.zst rename to crates/headacc/tests/compressed/0000004300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004400.dbin.zst b/crates/headacc/tests/compressed/0000004400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004400.dbin.zst rename to crates/headacc/tests/compressed/0000004400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004500.dbin.zst b/crates/headacc/tests/compressed/0000004500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004500.dbin.zst rename to crates/headacc/tests/compressed/0000004500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004600.dbin.zst b/crates/headacc/tests/compressed/0000004600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004600.dbin.zst rename to crates/headacc/tests/compressed/0000004600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004700.dbin.zst b/crates/headacc/tests/compressed/0000004700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004700.dbin.zst rename to crates/headacc/tests/compressed/0000004700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004800.dbin.zst b/crates/headacc/tests/compressed/0000004800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004800.dbin.zst rename to crates/headacc/tests/compressed/0000004800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000004900.dbin.zst b/crates/headacc/tests/compressed/0000004900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000004900.dbin.zst rename to crates/headacc/tests/compressed/0000004900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005000.dbin.zst b/crates/headacc/tests/compressed/0000005000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005000.dbin.zst rename to crates/headacc/tests/compressed/0000005000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005100.dbin.zst b/crates/headacc/tests/compressed/0000005100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005100.dbin.zst rename to crates/headacc/tests/compressed/0000005100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005200.dbin.zst b/crates/headacc/tests/compressed/0000005200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005200.dbin.zst rename to crates/headacc/tests/compressed/0000005200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005300.dbin.zst b/crates/headacc/tests/compressed/0000005300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005300.dbin.zst rename to crates/headacc/tests/compressed/0000005300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005400.dbin.zst b/crates/headacc/tests/compressed/0000005400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005400.dbin.zst rename to crates/headacc/tests/compressed/0000005400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005500.dbin.zst b/crates/headacc/tests/compressed/0000005500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005500.dbin.zst rename to crates/headacc/tests/compressed/0000005500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005600.dbin.zst b/crates/headacc/tests/compressed/0000005600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005600.dbin.zst rename to crates/headacc/tests/compressed/0000005600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005700.dbin.zst b/crates/headacc/tests/compressed/0000005700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005700.dbin.zst rename to crates/headacc/tests/compressed/0000005700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005800.dbin.zst b/crates/headacc/tests/compressed/0000005800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005800.dbin.zst rename to crates/headacc/tests/compressed/0000005800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000005900.dbin.zst b/crates/headacc/tests/compressed/0000005900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000005900.dbin.zst rename to crates/headacc/tests/compressed/0000005900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006000.dbin.zst b/crates/headacc/tests/compressed/0000006000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006000.dbin.zst rename to crates/headacc/tests/compressed/0000006000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006100.dbin.zst b/crates/headacc/tests/compressed/0000006100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006100.dbin.zst rename to crates/headacc/tests/compressed/0000006100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006200.dbin.zst b/crates/headacc/tests/compressed/0000006200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006200.dbin.zst rename to crates/headacc/tests/compressed/0000006200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006300.dbin.zst b/crates/headacc/tests/compressed/0000006300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006300.dbin.zst rename to crates/headacc/tests/compressed/0000006300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006400.dbin.zst b/crates/headacc/tests/compressed/0000006400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006400.dbin.zst rename to crates/headacc/tests/compressed/0000006400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006500.dbin.zst b/crates/headacc/tests/compressed/0000006500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006500.dbin.zst rename to crates/headacc/tests/compressed/0000006500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006600.dbin.zst b/crates/headacc/tests/compressed/0000006600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006600.dbin.zst rename to crates/headacc/tests/compressed/0000006600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006700.dbin.zst b/crates/headacc/tests/compressed/0000006700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006700.dbin.zst rename to crates/headacc/tests/compressed/0000006700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006800.dbin.zst b/crates/headacc/tests/compressed/0000006800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006800.dbin.zst rename to crates/headacc/tests/compressed/0000006800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000006900.dbin.zst b/crates/headacc/tests/compressed/0000006900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000006900.dbin.zst rename to crates/headacc/tests/compressed/0000006900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007000.dbin.zst b/crates/headacc/tests/compressed/0000007000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007000.dbin.zst rename to crates/headacc/tests/compressed/0000007000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007100.dbin.zst b/crates/headacc/tests/compressed/0000007100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007100.dbin.zst rename to crates/headacc/tests/compressed/0000007100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007200.dbin.zst b/crates/headacc/tests/compressed/0000007200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007200.dbin.zst rename to crates/headacc/tests/compressed/0000007200.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007300.dbin.zst b/crates/headacc/tests/compressed/0000007300.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007300.dbin.zst rename to crates/headacc/tests/compressed/0000007300.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007400.dbin.zst b/crates/headacc/tests/compressed/0000007400.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007400.dbin.zst rename to crates/headacc/tests/compressed/0000007400.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007500.dbin.zst b/crates/headacc/tests/compressed/0000007500.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007500.dbin.zst rename to crates/headacc/tests/compressed/0000007500.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007600.dbin.zst b/crates/headacc/tests/compressed/0000007600.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007600.dbin.zst rename to crates/headacc/tests/compressed/0000007600.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007700.dbin.zst b/crates/headacc/tests/compressed/0000007700.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007700.dbin.zst rename to crates/headacc/tests/compressed/0000007700.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007800.dbin.zst b/crates/headacc/tests/compressed/0000007800.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007800.dbin.zst rename to crates/headacc/tests/compressed/0000007800.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000007900.dbin.zst b/crates/headacc/tests/compressed/0000007900.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000007900.dbin.zst rename to crates/headacc/tests/compressed/0000007900.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000008000.dbin.zst b/crates/headacc/tests/compressed/0000008000.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000008000.dbin.zst rename to crates/headacc/tests/compressed/0000008000.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000008100.dbin.zst b/crates/headacc/tests/compressed/0000008100.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000008100.dbin.zst rename to crates/headacc/tests/compressed/0000008100.dbin.zst diff --git a/crates/header-accumulator/tests/compressed/0000008200.dbin.zst b/crates/headacc/tests/compressed/0000008200.dbin.zst similarity index 100% rename from crates/header-accumulator/tests/compressed/0000008200.dbin.zst rename to crates/headacc/tests/compressed/0000008200.dbin.zst diff --git a/crates/header-accumulator/tests/era_validator.rs b/crates/headacc/tests/era_validator.rs similarity index 100% rename from crates/header-accumulator/tests/era_validator.rs rename to crates/headacc/tests/era_validator.rs diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000000900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000000900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000000900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000001900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000001900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000001900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000002900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000002900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000002900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000003900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000003900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000003900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000004900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000004900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000004900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000005900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000005900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000005900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000006900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000006900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000006900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007200.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007300.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007300.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007300.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007300.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007400.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007400.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007400.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007400.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007500.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007500.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007500.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007500.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007600.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007600.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007600.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007600.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007700.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007700.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007700.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007700.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007800.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007800.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007800.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007800.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007900.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000007900.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000007900.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000007900.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008000.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000008000.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008000.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000008000.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008100.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000008100.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008100.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000008100.dbin diff --git a/crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008200.dbin b/crates/headacc/tests/ethereum_firehose_first_8200/0000008200.dbin similarity index 100% rename from crates/header-accumulator/tests/ethereum_firehose_first_8200/0000008200.dbin rename to crates/headacc/tests/ethereum_firehose_first_8200/0000008200.dbin diff --git a/crates/header-accumulator/tests/inclusion_proof.rs b/crates/headacc/tests/inclusion_proof.rs similarity index 100% rename from crates/header-accumulator/tests/inclusion_proof.rs rename to crates/headacc/tests/inclusion_proof.rs diff --git a/crates/header-accumulator/tests/utils.rs b/crates/headacc/tests/utils.rs similarity index 100% rename from crates/header-accumulator/tests/utils.rs rename to crates/headacc/tests/utils.rs diff --git a/crates/header-accumulator/Readme.md b/crates/header-accumulator/Readme.md deleted file mode 100644 index eac3fbbb..00000000 --- a/crates/header-accumulator/Readme.md +++ /dev/null @@ -1,46 +0,0 @@ -# Header accumulator - -This crate is used to accumulate block headers and compare them -against header accumulators. This process is used to verify the authenticity of these blocks. - -the header_accumulator is more intended to be used as a library, since it needs to be fed blocks that have to be parsed first. - - - -## Getting Started - -### Prerequisites -- [Rust (stable)](https://www.rust-lang.org/tools/install) -- Cargo (Comes with Rust by default) -- [protoc](https://grpc.io/docs/protoc-installation/) - -## Features - -- `era_validate`: Validates entire ERAs of flat files against Header Accumulators. Use this command to ensure data integrity across different ERAs. - -- `generate_inclusion_proof`: Generates inclusion proofs for a range of blocks. This is useful for verifying the presence of specific blocks within a dataset. - -- `verify_inclusion_proof`: Verifies inclusion proofs for a range of blocks. Use it to confirm the accuracy of inclusion proofs you have. - -### Options - -- `-h, --help`: Display a help message that includes usage, commands, and options. - - -## Goals - -Our goal is to provide a tool that can be used to verify blocks from [StreamingFast's Firehose](https://firehose.streamingfast.io/). -It is used in unity with flat [flat-files-decoder](https://github.com/semiotic-ai/flat-files-decoder) in [flat_head](https://github.com/semiotic-ai/flat_head) to achieve a solution. - - - - - -## Testing -Some tests depend on [flat-files-decoder](https://github.com/semiotic-ai/flat-files-decoder) to work, so it is used as a development dependency. - -Run `cargo test` to test all functionalities. - -### Coverage - -Generate code coverage reports with `cargo llvm-cov --html` and open them with `open ./target/llvm-cov/html/index.html`. \ No newline at end of file