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

Light Wallet: Gather transactions from immutable files and store them in the database #1435

Closed
12 tasks done
Tracked by #1313
jpraynaud opened this issue Jan 16, 2024 · 0 comments · Fixed by #1451
Closed
12 tasks done
Tracked by #1313
Assignees
Labels
feature 🚀 New implemented feature

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Jan 16, 2024

Why

In order to sign the Cardano transactions, we need to retrieve them from the immutable files and store them locally on the signer and aggregator nodes.

What

Implement the gathering of transactions from immutable files in a database store, with a cache mechanism that allows to incremental retrieval of transactions.

How

  • Create a new sqlite store (for maintainability)
    • In the aggregator
    • In the signer
  • Make these data accessible from the store (create by chunk/read transaction hash, immutable file number and block number)
    • In the aggregator
    • In the signer
  • Select the way to gather transaction ids from immutable file:
    • By using the pallas-hardano (preferred, but we need to make sure that we can retrieve the transactions by immutable file) (see chunks)
    • By scanning the raw immutable files and detecting the blocks with pallas(and their transactions) as prototyped in the PoC (README and import function)
  • Implement the associated SignableBuilder
    • In the aggregator
    • In the signer

Later

  • Create common database provider for Cardano transactions?
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

Successfully merging a pull request may close this issue.

3 participants