Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement digests route for Incremental Cardano DB in aggregator REST API #2174

Open
9 tasks
jpraynaud opened this issue Dec 16, 2024 · 0 comments
Open
9 tasks
Labels
feature 🚀 New implemented feature

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Dec 16, 2024

Why

We need to make the mapping of the immutable files and their digest accessible to the clients in the aggregator REST API. This will enable the verification of the Incremental Cardano DB in the clients.

What

Create a new /artifact/cardano-database/digests route which serves the digests of all the immutable files.

How

  • Create a new ImmutableFileDigestRepository SQLite repository which stores the immutable file digests.
  • Create a new implementation of ImmutableFileDigestCacheProvider with the ImmutableFileDigestRepository.
  • Use this new implementation in the aggregator only.
  • Create a new trait ImmutableFileDigestMapper implemented by ImmutableFileDigestRepository which retrieves the map of already computed immutable files and their digests.
  • Create a new /artifact/cardano-database/digests route in the REST API that uses the ImmutableFileDigestMapper to provide the map of computed immutable files and their digests.
  • Test the route in the end to end test.
  • Update OpenAPI.
  • Prepare a migration script to avoid long computations on the aggregator?

Later

  • Implement the creation of the digest file and uploaders in the Digest builder
@jpraynaud jpraynaud added the feature 🚀 New implemented feature label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New implemented feature
Projects
None yet
Development

No branches or pull requests

1 participant