Struct libpaillier::ProofSquareFree[][src]

pub struct ProofSquareFree(_);
Expand description

Proof that a Paillier modulus is square free. The proof checks that there are “small” factors, that can be inverted in with a Paillier modulus and the number of parallel instances needed for soundness relates to how high to check. For a security parameter k, where we check for prime factors up to t, need l parallel instances where l is the smallest integer such that t^l > 2^k. For 128-bit security, t = 1000 and l = 13, and Paillier modulus is ≥ 2048 bits.

This proof is used in https://eprint.iacr.org/2020/540 and https://eprint.iacr.org/2017/552 as part of their DKG. A paillier key generator can prove the parameters where created honestly.

Implementations

Generate a new SF proof. GG20 paper uses lots of values for the entropy like the ECDSA Public key, the curve generator and prime, and the participant id as follows generateChallenges(g, q, y, N, pi, l)

Verify a Paillier modulus is square-free.

Get this proof’s byte representation

Convert a byte representation to a proof

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.