Skip to content
Snippets Groups Projects
Commit 9c39b9b6 authored by William KOCH's avatar William KOCH
Browse files

coin flip template

parent f08d2b4d
No related branches found
No related tags found
No related merge requests found
mod gen_prime
mod quadratic_residues
// Returns A_N, N, y, P, Q
pub fn generate_keys() -> (Vec::<BigUint> A_N, BigUint, BigUint, BigUint, BigUint) {
let P = prime_gen::gen_prime(512);
let Q = prime_gen::gen_prime(512);
let N = P * Q;
// TODO: Generate A_N
// A_N =
/*
let mut y = sample_from_A_N()
while !is_quad_res(y, p) {
y = sample_from_A_N
}
*/
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment