What should I do to serialize the ciphertext and secret key of threshold ckks?

May I ask what additional import operations are required for this serialization? I tried to serialize everyone’s secret key, but the error was reported as follows:

1 Like

kp1 includes a key pair, i.e., a secret key (share) and public key. You should serialize kp1.secretKey in your example instead of kp1.