Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully homomorphic encryption circuits in Cardano... #415

Open
mgajda opened this issue Dec 11, 2022 · 6 comments
Open

Fully homomorphic encryption circuits in Cardano... #415

mgajda opened this issue Dec 11, 2022 · 6 comments

Comments

@mgajda
Copy link

mgajda commented Dec 11, 2022

It is a great feature for a smart contract to compute without decrypting the inputs and outputs.
This allows verifying private data, and knowledge of these.

For this, we would need to enable running zero knowledge proofs, or FHE circuits in Plutus.

Easiest way to do it would be to import an existing HE circuit library, and provide a reasonable cost estimate.
Please note that FHE/zkSNARKs are relatively expensive to compute so implementing them directly in Plutus may lead to unfeasibly complex transactions.

@matiwinnetou
Copy link
Contributor

AFAIK there is no desire to put such things on Cardano L1 but have you heard of project midnight? https://midnight.iohk.io/

@mgajda
Copy link
Author

mgajda commented Dec 14, 2022

I thought about Plutus to ensure smart contract interop.

Otherwise smart contract integration may require lots of separate infrastructure, possibly a sidechain.

@L-as
Copy link
Contributor

L-as commented Mar 1, 2023

@mgajda #283 will allow you to implement it yourself in Plutus

@mgajda
Copy link
Author

mgajda commented Mar 3, 2023

@L-as Implementing it in Plutus would be definitely progress, but homomorphic encryption is infamously slow, so we will likely hit gas limit.

@mgajda
Copy link
Author

mgajda commented Mar 3, 2023

@matiwinnetou Unfortunately project Midnight is fuzzy and unclear now. No capability has been released so far.

We want to build the product now and release soon.

@L-as
Copy link
Contributor

L-as commented Mar 3, 2023

@mgajda You split it up over multiple transactions. Depending on what you're doing, you could put the FHE into a SNARK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants