entropyxyz / manul

Round-based distributed protocols
https://docs.rs/manul
GNU Affero General Public License v3.0
1 stars 1 forks source link

Type system guards on message creation #4

Open fjarri opened 6 days ago

fjarri commented 6 days ago

Currently Session code needs to remember to

This is error-prone. Can we make it stricter? For example, when finalize() returns the next round, it can instead return a structure with the echo broadcast (if any) and message destinations already present there. Also, instead of message destinations we may return "message factories", each of which can be consumed to generate a message.