logos-co / nomos-node

Nomos blockchain node
49 stars 18 forks source link

DA API indexer implementation #644

Closed bacv closed 4 months ago

bacv commented 5 months ago

Indexer implementation and service integration tests.

Recap of the certificate to the index steps:

When caller asks for range of indexes for particular app_id, indexer just queries for that range in the rocksdb-adapter, in response replacing app+index=vid to app+index=Option<Blob>.

The blob storage for now is assumed to be filesystem - app_id as a directory and vid as a filename for the blob bytes. The const directory should be replaced from the one provided in a settings, this could be done when verifier and indexer are integrated together.

Rocksdb could be used for blob storage, it has a feature called BlobDB(this might be a separate implementation/version), but the usage of it is not clear at the moment.

To run the service integration test:

cargo test -p nomos-da-indexer --features rocksdb-backend