Skip to content

Commit

Permalink
Add From support for Round2
Browse files Browse the repository at this point in the history
  • Loading branch information
pool2win committed Nov 25, 2024
1 parent 7e82fd0 commit 7c27eeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/node/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ impl From<dkg::round_one::PackageMessage> for Message {
}
}

impl From<dkg::round_two::PackageMessage> for Message {
fn from(value: dkg::round_two::PackageMessage) -> Self {
Message::Unicast(Unicast::DKGRoundTwoPackage(value))
}
}

impl From<BroadcastProtocol> for Message {
fn from(value: BroadcastProtocol) -> Self {
match value {
Expand Down

0 comments on commit 7c27eeb

Please sign in to comment.