What is zk-Snark ?๐Ÿค”

What is zk-Snark ?๐Ÿค”

ยท

2 min read

Introduction

Hearing lot of buzz around zk-Snark ?
Same here ! So, I did some exploring on it and brought a simplest explanation of zk-Snark. After reading, this blog if you find value please share it with your friends too ๐Ÿค—. Let's Start ๐Ÿš€

What is zk-Snark?

Before I explain what is zk-Snark let me ask you this. Have you ever tried to prove that you have done/created something amazing but didn't want other to know details but want them to know that you have done it ? For Example:

  • Let's say you work at a medical lab where you found the cure for a very dangerous disease let's say it is for C0VID-19. Now you want to share this discovery to the world but want to keep the details like chemical composition to you.
    • Can you do it ?
    • Will anyone believe you without the proof of chemical composition ? You would say it's crazy! Right? We even have to give the proof that we are alive with a certificate which has all our details ๐Ÿ˜‚.

But there is one way to solve this. That way is using the zk-Snark.

zk-Snark is an acronym for "Zero Knowledge - Succinct Non-Interactive Argument of Knowledge''.

Hard to understand right? Let me explain. It is a cryptographic proof which allows you to prove that you posses certain information without sharing the details to verifier, beyond the validation of the statement itself. There is no interaction between you and verifier hence no revealing of information.

How is does this works ?

Cryptography is the heart of all this. The hash function is generated for a random number, constrained within the mathematical parameter determined by both the prover and the verifier. The prover then has to solve the hash for the random number thus proving the validity of the transaction. This proof is then returned to the verifier, without revealing the value.

There are different ways of doing this like:

  • Proof of Work
  • Proof of Stake

Where can we use zk-Snark ?

There are endless applications of zk-Snark :

  • It can be applied in voting. Users can prove that they voted without revealing whom they voted.
  • People can prove that have have developed the greatest application without revealing it.
  • People can prove that they have required credit score without revealing there income and spending to bank.

This are just few examples but application's lie beyond our imagination.

Hope you were able to understand the the zk-Snark. Stay tuned for my next blog.

Reference and Credit

  1. ZCash
  2. Investopedia
  3. Wikipedia
ย