Skip to content

Commit

Permalink
Use PartyId in benchmarks
Browse files Browse the repository at this point in the history
Forgot to do in #59
  • Loading branch information
fjarri committed Oct 30, 2024
1 parent 629ad38 commit c98e50c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manul/benches/empty_rounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use criterion::{criterion_group, criterion_main, Criterion};
use manul::{
protocol::{
Artifact, Deserializer, DirectMessage, EchoBroadcast, FinalizeError, FinalizeOutcome, FirstRound, LocalError,
NormalBroadcast, Payload, Protocol, ProtocolError, ProtocolMessagePart, ProtocolValidationError, ReceiveError,
Round, RoundId, Serializer,
NormalBroadcast, PartyId, Payload, Protocol, ProtocolError, ProtocolMessagePart, ProtocolValidationError,
ReceiveError, Round, RoundId, Serializer,
},
session::{signature::Keypair, SessionOutcome},
testing::{run_sync, BinaryFormat, TestSessionParams, TestSigner, TestVerifier},
Expand Down Expand Up @@ -73,7 +73,7 @@ struct Round1Payload;

struct Round1Artifact;

impl<Id: 'static + Debug + Clone + Ord + Send + Sync> FirstRound<Id> for EmptyRound<Id> {
impl<Id: PartyId> FirstRound<Id> for EmptyRound<Id> {
type Inputs = Inputs<Id>;
fn new(
_rng: &mut impl CryptoRngCore,
Expand All @@ -88,7 +88,7 @@ impl<Id: 'static + Debug + Clone + Ord + Send + Sync> FirstRound<Id> for EmptyRo
}
}

impl<Id: 'static + Debug + Clone + Ord + Send + Sync> Round<Id> for EmptyRound<Id> {
impl<Id: PartyId> Round<Id> for EmptyRound<Id> {
type Protocol = EmptyProtocol;

fn id(&self) -> RoundId {
Expand Down

0 comments on commit c98e50c

Please sign in to comment.