remove msg type numbers, fix version msg

This commit is contained in:
Alfredo Garcia 2021-05-04 12:19:26 -03:00 committed by Deirdre Connolly
parent 1fd96e4e6f
commit 83158786fe
1 changed files with 8 additions and 9 deletions

View File

@ -63,18 +63,17 @@ Here we explore in detail the header types and all the message payloads.
Fields of the header define new types. Proposed implementation for them is as follows:
```rust
#[repr(u8)]
#[non_exhaustive]
enum MsgType {
DealerBroadcast = 1,
Commitments = 2,
SigningPackage = 3,
SignatureShare = 4,
FinalSignature = 5,
DealerBroadcast,
Commitments,
SigningPackage,
SignatureShare,
FinalSignature,
}
enum MsgVersion {
FirstVersion = 1,
..
}
struct MsgVersion(u8);
struct Participant(u8);
```