pub struct SetupData {Show 16 fields
pub params: Params,
pub fac: FacParams,
pub setup_id: [u8; 32],
pub server_id: Vec<u8>,
pub n: BoxedUint,
pub n_hat: BoxedUint,
pub rho0: BoxedUint,
pub rho: BoxedUint,
pub t: BoxedUint,
pub s1: BoxedUint,
pub s2: BoxedUint,
pub h: ProjectivePoint,
pub f: ProjectivePoint,
pub pi_mod: ModProof,
pub pi_fac: FacProof,
pub pi_df: DfProof,
}Expand description
Public setup of the server (spec §6.1).
Fields§
§params: Params§fac: FacParams§setup_id: [u8; 32]§server_id: Vec<u8>§n: BoxedUint§n_hat: BoxedUint§rho0: BoxedUint§rho: BoxedUint§t: BoxedUint§s1: BoxedUint§s2: BoxedUint§h: ProjectivePoint§f: ProjectivePoint§pi_mod: ModProof§pi_fac: FacProof§pi_df: DfProofImplementations§
Source§impl SetupData
impl SetupData
Sourcepub fn paillier_pk(&self) -> Result<PaillierPk>
pub fn paillier_pk(&self) -> Result<PaillierPk>
Paillier public key (N, ρ).
Sourcepub fn from_bytes(bytes: &[u8], params: &Params) -> Result<Self>
pub fn from_bytes(bytes: &[u8], params: &Params) -> Result<Self>
Strict decoding with the standard Π_fac group.
pub fn from_bytes_with( bytes: &[u8], params: &Params, fac: &FacParams, ) -> Result<Self>
Sourcepub fn verify(&self, params: &Params) -> Result<VerifiedSetup>
pub fn verify(&self, params: &Params) -> Result<VerifiedSetup>
Client verification (FR-S7) with the standard Π_fac group.
pub fn verify_with( &self, params: &Params, fac: &FacParams, ) -> Result<VerifiedSetup>
Source§impl SetupData
impl SetupData
Sourcepub fn assume_verified(&self, params: &Params) -> Result<VerifiedSetup>
pub fn assume_verified(&self, params: &Params) -> Result<VerifiedSetup>
For the server’s own data: builds the verified view without re-checking the proofs. Never use this on data received from another party.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetupData
impl RefUnwindSafe for SetupData
impl Send for SetupData
impl Sync for SetupData
impl Unpin for SetupData
impl UnsafeUnpin for SetupData
impl UnwindSafe for SetupData
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