
Blockchain for Enterprise
People tend to overestimate how easy it is to create a blockchain. Just because you were able to deploy a network doesn’t make you an expert on blockchain. As a matter of fact, even an intern can do it in minutes. Here, try it. You know what else is easy to deploy? A webpage. Creating a blockchain is easy, and you can do it at zero cost and effort for as long as you don’t care about the design and spec of your network. Understanding the engineering constraints to design a secure and functiona...

Can They Really Sell Your Eyeball Scans? A Technical Review of World
Here I am, resurrecting my blog like a dusty necromancer coming back for one last summon. And what brought me back from the digital grave? Larpers. Everywhere. People posing as crypto 'experts' when they haven’t done the actual work of researching whatever the hekk it is they are talking about. It’s all vibes and appearances and no substance. Lately, the Orb and World has been made an antagonist in the Filipino crypto scene. And everyone suddenly became a data privacy expert and mor...

Blockchain Legos: The Modular Stack
If you’ve been here long enough, you would have already heard of the blockchain trilemma where you can only pick two out of three between security, speed, and decentralization. But that is so 2020. Some years ago, we expect one single blockchain to perform various functions for us. For instance, Ethereum has become congested because it was juggling between validating incoming transactions, arranging them into blocks, executing them, and finally keeping all these growing records available at a...
A Friendly Donkey



Blockchain for Enterprise
People tend to overestimate how easy it is to create a blockchain. Just because you were able to deploy a network doesn’t make you an expert on blockchain. As a matter of fact, even an intern can do it in minutes. Here, try it. You know what else is easy to deploy? A webpage. Creating a blockchain is easy, and you can do it at zero cost and effort for as long as you don’t care about the design and spec of your network. Understanding the engineering constraints to design a secure and functiona...

Can They Really Sell Your Eyeball Scans? A Technical Review of World
Here I am, resurrecting my blog like a dusty necromancer coming back for one last summon. And what brought me back from the digital grave? Larpers. Everywhere. People posing as crypto 'experts' when they haven’t done the actual work of researching whatever the hekk it is they are talking about. It’s all vibes and appearances and no substance. Lately, the Orb and World has been made an antagonist in the Filipino crypto scene. And everyone suddenly became a data privacy expert and mor...

Blockchain Legos: The Modular Stack
If you’ve been here long enough, you would have already heard of the blockchain trilemma where you can only pick two out of three between security, speed, and decentralization. But that is so 2020. Some years ago, we expect one single blockchain to perform various functions for us. For instance, Ethereum has become congested because it was juggling between validating incoming transactions, arranging them into blocks, executing them, and finally keeping all these growing records available at a...
Share Dialog
Share Dialog
A Friendly Donkey

Subscribe to 0xDanki ( Tin Erispe )

Subscribe to 0xDanki ( Tin Erispe )
Standing before Danki today are ghosts of the audit reports I haven’t read and dat job hunt I’ve been meaning to do for weeks now… but in the name of mighty procrastination, let’s write something totally fun but completely unrelated to everything I needed to do: ZK maths frens.
If you have no idea what this is all about and why danki is so happy as my hooves type dis post, then check out Part I.
But if you’re too lazy to click… ZKP or Zero Knowledge Proofs is a cryptographic mechanism that allows you to prove that something is true without revealing any more information other than the fact that it is true.
It sounds like magic, so today I’ll demystify how this happens under the hood.
Let’s say Marites has ten million data points of hot gossip (it’s a really huge set) and told it to a person inside a confession box. That person is Becky, but Marites doesn’t know that.
How does Marites ensure that Becky is the person who heard all her 10 million hot gossips?
Well, der are a few ways that Marites can verify from Becky:
Now, this frens, requires a martyr out of Marites and Becky. Because who has time to recite ten-facken-million gossips? It requires so much time and computational power from both of them that it’s impractical.
Fast, but it doesn’t prove that Becky really has all of the gossips. Becky might just have a lucky guess.
Holy schmoly. This is probably the answer, but you’re now thinkin, “whuuut--?”
Okay, calm down. Just look at this:

Notice that any two different polynomials go through different points most of the time. There may be a few points where their curves intersect, but that’s about it.
Now, let’s say dat this is the polynomial that goes through Marites’ 10 million gossips. Of course just imagine the real one will be much, much complicated but for da sake of visualization:

If Becky knows the 10 million gossips, she can recreate this polynomial.
But the polynomial will be complex and it is still too lengthy to recite to Marites… Besides, from Becky’s point of view, she doesn’t know if Marites is a actually the person who told her the 10 million gossips while she’s inside the confession box. If she gives Marites the full polynomial, she practically risks leaking all the gossips to some random stranger.
So Marites, instead of asking Becky for the polynomial, will give Becky a number and ask her to compute for the value of the polynomial at that number. If Becky answers correctly, then Marites is convinced that Becky knows the polynomial and is really the person who heard all her 10 million gossips.
And voila, that is ZK Maths in a nutshell my frens.
What if there are many people claiming to be Becky? Marites will soon find that it’s tiring to pick a number and it’s taking so much of her energy to ask the same cursed question everytime.
So everyone agrees to just evaluate the polynomial at x = 123.
Cool. Now Marites doesn’t even need to ask the question. Anyone who claims to be Becky can just post their answer and a robotic verifier can check.
But there’s a problem with this. If everyone has the power to set the question and they already know the question beforehand, it will be easier for someone to cheat on the exam innit?
Presenting ZK Snarks-- dis neat little non interactive ZK creates a trusted setup for picking the number. In the trusted setup, no one knows the number beforehand because it will be generated as the verifier interacts with the setup.
If you’re curious what this trusted setup is, it’s just an algorithm. And the algorithm is created randomly in a trusted setup ceremony.
Anyway, an example of a trusted setup works like this:

This math or mechanism where the prover uses a trusted setup to create a digital signature from their proof is called the Fiat-Shamir Transformation.
Somry fren, but we have to continue dis some other time. Danki iz hungry now, and the next one will be about ways a ZK-SNARK improves all these polynomial verifying via polynomial commitment and recursion, which iz a topic of its own.
So wait for it. Mor mor math once Danki haz been fed.
つづく
Standing before Danki today are ghosts of the audit reports I haven’t read and dat job hunt I’ve been meaning to do for weeks now… but in the name of mighty procrastination, let’s write something totally fun but completely unrelated to everything I needed to do: ZK maths frens.
If you have no idea what this is all about and why danki is so happy as my hooves type dis post, then check out Part I.
But if you’re too lazy to click… ZKP or Zero Knowledge Proofs is a cryptographic mechanism that allows you to prove that something is true without revealing any more information other than the fact that it is true.
It sounds like magic, so today I’ll demystify how this happens under the hood.
Let’s say Marites has ten million data points of hot gossip (it’s a really huge set) and told it to a person inside a confession box. That person is Becky, but Marites doesn’t know that.
How does Marites ensure that Becky is the person who heard all her 10 million hot gossips?
Well, der are a few ways that Marites can verify from Becky:
Now, this frens, requires a martyr out of Marites and Becky. Because who has time to recite ten-facken-million gossips? It requires so much time and computational power from both of them that it’s impractical.
Fast, but it doesn’t prove that Becky really has all of the gossips. Becky might just have a lucky guess.
Holy schmoly. This is probably the answer, but you’re now thinkin, “whuuut--?”
Okay, calm down. Just look at this:

Notice that any two different polynomials go through different points most of the time. There may be a few points where their curves intersect, but that’s about it.
Now, let’s say dat this is the polynomial that goes through Marites’ 10 million gossips. Of course just imagine the real one will be much, much complicated but for da sake of visualization:

If Becky knows the 10 million gossips, she can recreate this polynomial.
But the polynomial will be complex and it is still too lengthy to recite to Marites… Besides, from Becky’s point of view, she doesn’t know if Marites is a actually the person who told her the 10 million gossips while she’s inside the confession box. If she gives Marites the full polynomial, she practically risks leaking all the gossips to some random stranger.
So Marites, instead of asking Becky for the polynomial, will give Becky a number and ask her to compute for the value of the polynomial at that number. If Becky answers correctly, then Marites is convinced that Becky knows the polynomial and is really the person who heard all her 10 million gossips.
And voila, that is ZK Maths in a nutshell my frens.
What if there are many people claiming to be Becky? Marites will soon find that it’s tiring to pick a number and it’s taking so much of her energy to ask the same cursed question everytime.
So everyone agrees to just evaluate the polynomial at x = 123.
Cool. Now Marites doesn’t even need to ask the question. Anyone who claims to be Becky can just post their answer and a robotic verifier can check.
But there’s a problem with this. If everyone has the power to set the question and they already know the question beforehand, it will be easier for someone to cheat on the exam innit?
Presenting ZK Snarks-- dis neat little non interactive ZK creates a trusted setup for picking the number. In the trusted setup, no one knows the number beforehand because it will be generated as the verifier interacts with the setup.
If you’re curious what this trusted setup is, it’s just an algorithm. And the algorithm is created randomly in a trusted setup ceremony.
Anyway, an example of a trusted setup works like this:

This math or mechanism where the prover uses a trusted setup to create a digital signature from their proof is called the Fiat-Shamir Transformation.
Somry fren, but we have to continue dis some other time. Danki iz hungry now, and the next one will be about ways a ZK-SNARK improves all these polynomial verifying via polynomial commitment and recursion, which iz a topic of its own.
So wait for it. Mor mor math once Danki haz been fed.
つづく
<100 subscribers
<100 subscribers
No activity yet