pub struct Config {
pub max_len_json_jwt_header: usize,
pub max_len_json_jwt_payload: usize,
pub max_len_jwt_signature: usize,
pub max_len_jwt_sub: usize,
pub max_len_jwt_aud: usize,
pub max_len_jwt_iss: usize,
pub max_len_salt: usize,
pub max_len_nonce_r: usize,
pub max_len_t_max: usize,
}Expand description
The configuration of the ZKLogin circuit.
Picking the numbers are a tradeoff. Picking a large number will require a larger circuit and thus more proving time. Picking a small number may make some statements unprovable.
Fields§
§max_len_json_jwt_header: usizeMaximum length in wires of the base64 decoded JWT header. Must be a multiple of 8.
max_len_json_jwt_payload: usizeMaximum length in wires of the base64 decoded JWT payload. Must be a multiple of 8.
max_len_jwt_signature: usizeMaximum length in wires of the base64 decoded JWT signature. Must be a multiple of 8.
max_len_jwt_sub: usize§max_len_jwt_aud: usize§max_len_jwt_iss: usize§max_len_salt: usize§max_len_nonce_r: usize§max_len_t_max: usizeImplementations§
Source§impl Config
impl Config
pub const fn max_len_base64_jwt_header(&self) -> usize
pub const fn max_len_base64_jwt_payload(&self) -> usize
pub const fn max_len_base64_jwt_signature(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more