OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors
Apache License 2.0
821 stars 157 forks source link

About recreate tensor #436

Open Severusted opened 1 year ago

Severusted commented 1 year ago

Hello! I'm a beginner to learning this amazing work. I want to ask 2 questions: 1.How to recover a tensor from bytes? I saw this example: image In the begining, I considerd the parameter context() is the object context. But it didn't work. Therefore,I don't know how to recover vec from vec_proto if I don't have vec.

  1. If I need to broadcast the public key to all parties with socket, the size of public_context.serialize() is about 30,000,000B. I'll be appreciate if you have any more efficient methods. Thanks for your attention. Looking forward to your reply.
Severusted commented 1 year ago

Sorry, I used the wrong function. I need to use ckks_vector_from. The parameter is the object context.