SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

How to output the public key of CKKS

Open Saisai-Xia opened this issue 3 years ago • 2 comments

When I was debugging the CKKS scheme, I specified the default_seed to generate the RandomGenerator, now I want to verify that the public key will be the same every time I start CKKS after specifying the default_seed, but now I don't know how to check the generated public key every time

Saisai-Xia avatar Dec 07 '22 03:12 Saisai-Xia

Although fixing the random see can work, I recommend saving the public key and loading it every time. There is no method to directly compare two PublicKey objects, except for comparing every data member and polynomial coefficients.

WeiDaiWD avatar Dec 07 '22 21:12 WeiDaiWD

Although fixing the random see can work, I recommend saving the public key and loading it every time. There is no method to directly compare two PublicKey objects, except for comparing every data member and polynomial coefficients.

Yes, it is a very good way to save the pk and then load it, which solved a problem I had been having before, thank you very much for the suggestion

Saisai-Xia avatar Dec 08 '22 02:12 Saisai-Xia