Skip to content

Implement aggregator CLI commands for configuration parameters #3392

Description

@jpraynaud

Why

We need to create new aggregator CLI commands to support the decentralized configuration parameters of the network. This will help create consistent configurations and with a good level of safety.

What

Implement aggregator CLI commands for configuration parameters.

How

  • New aggregator CLI command for configuration parameters:
    • protocol-configuration export-markers which:
      • Read on chain markers (connected to Cardano node)
      • Or use a default value if not exists
      • Convert the markers to human-readable format
      • Stores markers on disk
    • protocol-configuration import-markers which:
      • Imports the human-readable markers stored in a file
      • Verifies their integrity,
        • non zero protocol parameters values (other values ?)
        • enabled_signed_entity_types and signing config consistency
      • Verify if there is conflict with the data stored on chain
        • DummyProtocolConfigurationReaderAdapter for tests
        • dependency injection with ChainObserver and ProtocolConfigurationReader
        • implement verification rules
      • Encodes the markers in the datum
        • Cbor golden test
      • Sign the datum
      • Verify Json hex payload do not exceed 10kb (since full transaction is 16kb)
      • Write a datum file on disk

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions