Closed
Description
Why
The CardanoDbBeacon
holds a network
field which should be removed as this information is not necessary to operate the Mithril network.
What
Remove the network
field in the CardanoDbBeacon
without breaking-change.
How
- Ensure retro-compatibility between nodes in http messages:
- Add a
CardanoDbBeaconMessagePart
with a optionalnetwork
field - Use this new beacon, and adapt dependent code, in:
-
Certificate
andCertificateList
messages -
CertificatePending
message -
RegisterSignature
message -
Snapshot
,SnapshotList
, andSnapshotDownload
message
-
- Add a
- Adapt the computation of the hash in the
compute_hash
of theCardanoImmutableDigester
to retrieve the network value:- from the configuration in the signer
- from the configuration in the aggregator
- from the certificate metadata in the client
- Golden test the computation of the digest to make sure there is no breaking change
- Remove the
network
field in theCardanoDbBeacon
-
⚠️ Recompute certificate chain to be scheduled with next distribution