Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/contract/src/primitives/key_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::fmt::Display;
/// Locally on each node, each keyshare is uniquely identified by the tuple
/// (EpochId, DomainId, AttemptId).
#[near(serializers=[borsh, json])]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, PartialOrd, Ord)]
pub struct EpochId(u64);

impl EpochId {
Expand All @@ -33,7 +33,7 @@ impl Display for EpochId {
}

#[near(serializers=[borsh, json])]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, PartialOrd, Ord)]
pub struct AttemptId(u64);

impl AttemptId {
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Display for AttemptId {
/// yielded partially valid results. This is incremented for each attempt within the
/// same epoch and domain.
#[near(serializers=[borsh, json])]
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)]
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash, PartialOrd, Ord)]
pub struct KeyEventId {
pub epoch_id: EpochId,
pub domain_id: DomainId,
Expand Down
Loading
Loading