pub struct Config {
pub bit_size: u16,
pub fixed_parameters: bool,
pub port: u16,
pub host: String,
}Expand description
The configuration for the Chaum-Pedersen authentication scheme It reads arguments from the environment variables and provides default values for missing environment variables.
Example
This is how the configuration can be modified inside the code:
let mut config = Config::build();
config.bit_size = 128;Fields§
§bit_size: u16The bit size of the prime number used in the algorithm
Default: 256
fixed_parameters: boolWhether to use fixed parameters or generate new ones Caution! If this is set to true and the bit size is bigger than 256, it will take a long time for the server to start.
Default: false
port: u16The port on which the server will listen
Default: 50051
host: StringThe host on which the server will listen
Default: [::1]
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request