Skip to main content

VerifiedSetup

Struct VerifiedSetup 

Source
pub struct VerifiedSetup { /* private fields */ }
Expand description

Setup that passed FR-S7.

Implementations§

Source§

impl VerifiedSetup

Source

pub fn server_id(&self) -> &[u8] ⓘ

Identifier of the server this setup belongs to (part of every ssid).

Source

pub fn paillier_pk(&self) -> &PaillierPk

Source

pub fn df(&self) -> &DfParams

Source

pub fn h(&self) -> &ProjectivePoint

Source

pub fn f(&self) -> &ProjectivePoint

Source

pub fn hash(&self) -> [u8; 32]

sid = SHA-256(SetupData); the value pinned by the application (FR-S8).

Source

pub fn params(&self) -> &Params

Source

pub fn rho_table(&self) -> Option<&FixedBase>

Source

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.

Source

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).

Source

pub fn tables_size_bytes(&self) -> usize

Total memory of the tables in bytes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.