Changeset View
Changeset View
Standalone View
Standalone View
services/identity/src/constants.rs
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
// OPAQUE Server Setup | // OPAQUE Server Setup | ||||
pub const OPAQUE_SERVER_SETUP: &str = "OPAQUE_SERVER_SETUP"; | pub const OPAQUE_SERVER_SETUP: &str = "OPAQUE_SERVER_SETUP"; | ||||
// Tunnelbroker | // Tunnelbroker | ||||
pub const TUNNELBROKER_GRPC_ENDPOINT: &str = "TUNNELBROKER_GRPC_ENDPOINT"; | pub const TUNNELBROKER_GRPC_ENDPOINT: &str = "TUNNELBROKER_GRPC_ENDPOINT"; | ||||
pub const DEFAULT_TUNNELBROKER_ENDPOINT: &str = "http://localhost:50051"; | pub const DEFAULT_TUNNELBROKER_ENDPOINT: &str = "http://localhost:50051"; | ||||
// X3DH key management | |||||
// Threshold for requesting more onetime keys | |||||
pub const ONETIME_KEY_MINIMUM_THRESHOLD: usize = 5; | |||||
// Number of keys to be refreshed when below the threshold | |||||
pub const ONETIME_KEY_REFRESH_NUMBER: u32 = 5; |