cartesi / rollups-node

Reference implementation of the Cartesi Rollups Node
Apache License 2.0
23 stars 64 forks source link

Implement application-specific rollups-claims streams #538

Closed marcelstanley closed 3 months ago

marcelstanley commented 3 months ago

📚 Context

Claims created by a node are sent to a rollups-claims stream and further processed by the authority-claimer, which works well in a regular rollups-node

A rollups-node running the experimental sunodo validator mode on the sunodo designated provider will point to an external standalone authority-claimer, which expects to handle claims from multiple applications via a single rollups-claims stream. Such scenario is not currently supported.

However, we could extend the current rollups-node capabilities to allow for that, so that a standalone authority-claimer could be configured to support publishing claims for multiple applications running on the same chain.

This would address the case described at #522.

✔️ Solution

  1. Create application-specific rollups-claims streams, identified by the application address and the chain-id, the same way its rollups-inputs and rollups-outputs counterparts
  2. Extend the authority-claimer so it can handle multiple rollups-claims streams simultaneously when running on standalone mode

📈 Subtasks