ZenGo-X / multi-party-ecdsa

Rust implementation of {t,n}-threshold ECDSA (elliptic curve digital signature algorithm).
GNU General Public License v3.0
977 stars 310 forks source link

Question : How to create "p" and "q" for pailier key pair to satisfy GG18 consideration? #208

Open misaqsaadat opened 1 year ago

misaqsaadat commented 1 year ago

Hello. this is not an issue. just a question I have. in GG18 (page 9) says that N must be greater than q (order of curve ) ^ 8. q is almost equal to 2 ^ 256. and q ^8 is very close to 2 ^ 2048. If I choose 1024 random prime numbers for "p" and "q" in paillier key pair, N ( = p * q) will be 2048 bits. and almost never can not satisfy GG18 consideration ( N must be greater than q ^ 8) What was your solution for this? I am not very familiar with rust and I couldn't find your solution in code.