input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
115 stars 36 forks source link

Import Cardano transactions by sequences of block ranges #1766

Closed jpraynaud closed 2 weeks ago

jpraynaud commented 2 weeks ago

Why

We need to keep a footprint as low as possible on the machine running a Mithril signer. We have noticed that the current process to import the Cardano transactions does not allow an efficient pruning strategy on the signer: the block range roots are computed only once all the transactions are imported. The import mechanism should be able to compute block range roots along the way in order to allow early pruning and overall low disk space requirements.

What

Compute block range roots as soon as they can be computed by the signer and allow for early pruning on the transaction store.

How