Is homomorphic encryption better than z-snarks?

in #crypto3 years ago


pixabay

I am no expert in cryptography, so I can answer this in the best of my understanding. These are two different schemes, for two different purposes.
Homomorphic encryption, is an encryption scheme where you know a secret, so you encrypt with a private key. Nobody else can know what that secret is without the key, but they are still able to do certain calculations on that encrypted data, despite not knowing what the underlying encrypted secret is. So they have the secret, they just cant decipher it.

On the other hand, ZK-SNARK is a proving system. It is employed when you know a secret, and you want to prove that you in fact know the secret, with out revealing what that secret is. In this case the secret is not provided, just proof you know it. Homomorphic encryption is used in aspects of this proving system.

So in our case, we use ZK-SNARKs to prove the inputs of a transaction are as they are claimed to be. The inputs themselves are not included in the message, just the zero-knowledge proof. This is also where other projects can use zero-knowledge proofs to decrease size of messages, and increase speed. Because the data itself is not required in a encrypted form, it can make systems much faster when only proof of that data is needed. The ZK-SNARK system is very fast to verify and typically much smaller than the data it is proving.

Sort:  

Congratulations @cordio! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You published more than 10 posts.
Your next target is to reach 20 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out the last post from @hivebuzz:

HiveBuzz World Cup Contest - Round of 16 - Recap of Day 2
Our Hive Power Delegations to the November PUM Winners
HiveBuzz World Cup Contest - Recap of the last day of the group stage.
Support the HiveBuzz project. Vote for our proposal!