hashgraph_like_consensus/scope.rs
1use std::{fmt::Debug, hash::Hash};
2
3/// A scope groups related proposals together.
4///
5/// Think of it like a namespace or category. For example, you might use a scope as group of users.
6/// Any type that can be used as a group of users can be used as a scope.
7pub trait ConsensusScope: Clone + Eq + Hash + Send + Sync + Debug + 'static {}
8
9impl<T> ConsensusScope for T where T: Clone + Eq + Hash + Send + Sync + Debug + 'static {}
10
11/// A simple string-based scope identifier.
12pub type ScopeID = String;