Skip to content

feat(worker-datasets-raw): add verification option for raw materialize jobs#1949

Open
Theodus wants to merge 1 commit intomainfrom
theodus/raw-materialize-verify
Open

feat(worker-datasets-raw): add verification option for raw materialize jobs#1949
Theodus wants to merge 1 commit intomainfrom
theodus/raw-materialize-verify

Conversation

@Theodus
Copy link
Member

@Theodus Theodus commented Mar 10, 2026

Add cryptographic verification of EVM block data during raw dataset extraction.
When enabled, verifies block hashes, transaction roots, and receipt roots before
writing data to storage, catching data corruption early.

New option:

  • verify: bool on JobDescriptor, Admin API deploy endpoint, and ampctl CLI
  • Defaults to false; EVM-only (requires blocks, transactions, logs tables)
  • Verification failures are retryable errors

API changes:

  • Admin API: POST /datasets/{ns}/{name}/versions/{rev}/deploy accepts verify field
  • ampctl: dataset deploy --verify flag
  • verification crate: new public ConversionError and VerificationError types
  • verification crate: block_from_record_batches() for RecordBatch conversion

…e jobs

Add cryptographic verification of EVM block data during raw dataset extraction.
When enabled, verifies block hashes, transaction roots, and receipt roots before
writing data to storage, catching data corruption early.

New option:
- `verify: bool` on JobDescriptor, Admin API deploy endpoint, and ampctl CLI
- Defaults to false; EVM-only (requires blocks, transactions, logs tables)
- Verification failures are retryable errors

API changes:
- Admin API: POST /datasets/{ns}/{name}/versions/{rev}/deploy accepts `verify` field
- ampctl: `dataset deploy --verify` flag
- verification crate: new public `ConversionError` and `VerificationError` types
- verification crate: `block_from_record_batches()` for RecordBatch conversion
@Theodus Theodus requested review from LNSD, leoyvens and shiyasmohd March 10, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant