input-output-hk / mithril

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

Implement `Ord` on `SignedEntityTypeDiscriminants` #1648

Closed jpraynaud closed 4 months ago

jpraynaud commented 4 months ago

Why

We want to have all the aggregators compute the order of signed entity types used to create open messages in a consistent way.

What

Implement Ord trait on the SignedEntityTypeDiscriminants type and use this order in the aggregator state machine during the computation of the next open message

How