pub struct VerifiedSetup { /* private fields */ }Expand description
Setup that passed FR-S7.
Implementations§
Source§impl VerifiedSetup
impl VerifiedSetup
Sourcepub fn server_id(&self) -> &[u8] ⓘ
pub fn server_id(&self) -> &[u8] ⓘ
Identifier of the server this setup belongs to (part of every ssid).
pub fn paillier_pk(&self) -> &PaillierPk
pub fn df(&self) -> &DfParams
pub fn h(&self) -> &ProjectivePoint
pub fn f(&self) -> &ProjectivePoint
Sourcepub fn hash(&self) -> [u8; 32]
pub fn hash(&self) -> [u8; 32]
sid = SHA-256(SetupData); the value pinned by the application (FR-S8).
pub fn params(&self) -> &Params
pub fn rho_table(&self) -> Option<&FixedBase>
Sourcepub fn with_tables_custom(
self,
rho_window: u32,
df_bits: u32,
df_window: u32,
) -> Self
pub fn with_tables_custom( self, rho_window: u32, df_bits: u32, df_window: u32, ) -> Self
Fixed-base tables: ρ for exponents below 2^{n_λ0} with rho_window, and
t, s₁, s₂ for exponents below 2^{df_bits} with df_window.
Sourcepub fn with_tables(self) -> Self
pub fn with_tables(self) -> Self
Default tables sized for the exponents of Π_sig and signing (mask widths include ε):
ρ: n_λ0 + ε bits (window 4), t: n_tρ + ε, s₁: n_a + ε, s₂: n_b + ε (window 3).
Sourcepub fn tables_size_bytes(&self) -> usize
pub fn tables_size_bytes(&self) -> usize
Total memory of the tables in bytes.
Auto Trait Implementations§
impl Freeze for VerifiedSetup
impl RefUnwindSafe for VerifiedSetup
impl Send for VerifiedSetup
impl Sync for VerifiedSetup
impl Unpin for VerifiedSetup
impl UnsafeUnpin for VerifiedSetup
impl UnwindSafe for VerifiedSetup
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