pub struct SecurityReport { /* private fields */ }Expand description
The per-round soundness breakdown of one proof configuration.
Implementations§
Source§impl SecurityReport
impl SecurityReport
Sourcepub const fn new(terms: [SecurityTerm; 7]) -> Self
pub const fn new(terms: [SecurityTerm; 7]) -> Self
Builds a report from its rounds.
Sourcepub const fn terms(&self) -> &[SecurityTerm; 7]
pub const fn terms(&self) -> &[SecurityTerm; 7]
Every round.
Sourcepub const fn binding_term(&self) -> SecurityTerm
pub const fn binding_term(&self) -> SecurityTerm
The round that binds — the one attaining the minimum.
Ties resolve to the earliest such round, so the reported bottleneck is the one an adversary reaches first.
Sourcepub const fn security_level(&self) -> u32
pub const fn security_level(&self) -> u32
Attained conjectured security in whole bits, rounded down.
Trait Implementations§
Source§impl Clone for SecurityReport
impl Clone for SecurityReport
impl Copy for SecurityReport
Source§impl Debug for SecurityReport
impl Debug for SecurityReport
impl Eq for SecurityReport
Source§impl PartialEq for SecurityReport
impl PartialEq for SecurityReport
impl StructuralPartialEq for SecurityReport
Auto Trait Implementations§
impl Freeze for SecurityReport
impl RefUnwindSafe for SecurityReport
impl Send for SecurityReport
impl Sync for SecurityReport
impl Unpin for SecurityReport
impl UnsafeUnpin for SecurityReport
impl UnwindSafe for SecurityReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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