Skip to content

How to use an array to build a Ciphertext? #708

@cipeizheng

Description

@cipeizheng

I am trying to use the GPU etc. to compute Ciphertext. I have used for_each_n() function and iterators to extract Dynarray's elements ( I think they are coefficients of ciphertext polynomials) in Ciphertext and computed them. But I am confusing with how to use the results (In my case they are vector<uint64_t>) to build a Ciphertext object.

I tried copy() function, but it works in a weird way: If I copy an extracted data to its original Ciphertext, it works well in decryption and decode, but in another case I get wrong results. So is there a way to use an array to build a Ciphertext? Do I have to use Deserialization?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions