arcium-primitives 0.4.4

Arcium primitives
Documentation
pub mod faulty_peer;
pub mod peer_id;
pub mod protocol_info;
pub mod session_id;

pub use faulty_peer::FaultyPeer;
pub use peer_id::PeerId;
pub use protocol_info::ProtocolInfo;
pub use session_id::SessionId;

/// Arbitrary numerical identifier for peers running a circuit. Chosen by the circuit
/// constructor. Allows assymetric behaviour in protocols / circuits.
///
/// WARNING: This does not (necessarily) match the `PeerId` ordering!
pub type PeerNumber = u16;

/// Local numerical identifier for other peers in my cluster. Stems from the lexicographic
/// ordering of all the peer ids in the network. Used to index arrays containing elements
/// (e.g., keys) for all other peer numbers in order.
pub type PeerIndex = usize;