Will data be same if we change the circuit?

Looking at the implementation we encrypt the data using the circuit

but what will happen if we modify the circuit since we found a bug or wanted to add a feature - will the data saved be usable ?

Hi @ujjwal_gupta,

It depends on the modification you did, if the optimizer selects the same set of parameters, the data will be usable.

If cryptographic parameters are changed, then the data would stop being usable, and you’d need to decrypt and re-encrypt the input.

In the future, we might provide APIs to make different circuits compatible, but for now, re-encryption is the only solution.

Let us know if you have any other questions :slight_smile:

1 Like

Thanks this clear things.