use parking_lot::RwLock;
use std::collections::BTreeMap;
use stoffelnet::network_utils::ClientId;
mod core;
mod error;
mod feldman;
mod robust;
mod share;
pub use error::ClientInputStoreError;
pub use share::{
ClientInputEntry, ClientInputHydrationCount, ClientInputIndex, ClientOutputShareCount,
ClientOutputShareCountError, ClientShare, ClientShareIndex,
};
#[derive(Debug, Default)]
pub struct ClientInputStore {
entries: RwLock<BTreeMap<ClientId, ClientInputEntry>>,
client_roster: RwLock<Vec<ClientId>>,
}
#[cfg(test)]
mod tests;