Thursday, July 7, 2022
DRD.net
  • Home
  • News
  • Bitcoin
  • Blockchain
  • Shib
  • Ethereum
  • Cardano
  • Market & Analysis
  • More
    • Litecoin
    • Dogecoin
    • Xrp
No Result
View All Result
DIEGODEROSA
No Result
View All Result

zk-SNARKs on Bitcoin: Run Zcash on Bitcoin

diego by diego
June 23, 2022
in Bitcoin
0 0
0
Home Bitcoin


This submit was first printed on Medium.

Beforehand, we have now proved one is aware of some mathematical secret utilizing zero data proof (ZKP), with out revealing the key itself. The key data embody:

Whereas helpful of their particular purposes, these ZKPs can’t be utilized to arbitrary mathematical features. Overcoming these limitations, a zk-SNARK (zero-knowledge Succinct Non-interactive ARguments of Oknowledge) is a protocol designed to generate a ZKP for any mathematical operate. The generated proof is “succinct” and “non-interactive”: a proof is just a few hundred bytes and might be verified in fixed time and inside a number of milliseconds, with no need to ask extra questions of the prover. Collectively, these properties make zk-SNARK particularly appropriate for blockchains, the place on-chain storage and computation might be costly and senders usually go offline after sending a transaction. Nameless cryptocurrency Zcash and the smart-contract platform Ethereum are amongst its notable early adopters, amongst others.

zk-SNARK

A zk-SNARK consists of the next three algorithms: G ,P, andV.

Generator (C circuit, λ is ☣️):
(pk, vk) = G(λ, C)
Prover (x pub inp, w sec inp):
π = P(pk, x, w)
Verifier:
V(vk, x, π) == (∃ w s.t. C(x,w))

— Christian Lundkvist (@ChrisLundkvist) November 19, 2016

Key Technology

A key generator G takes a secret parameter λ and a operate C, and produces a proving key pk and a verification key vk. Each keys are made public.

Key Generator
Key Generator

C is a boolean operate (additionally known as a program or circuit) that takes two inputs: a public enter x and a personal enter w (aka, witness). For instance, C could be a operate that checks if w is the sha256 preimage of the digest x.

C(x, w) = sha256(w) == x

Prover

The prover P takes as enter the proving key pk, a public enter x and a personal witness w to supply a proof that the prover is aware of a witness w that makes C(x, w) evaluates to true.

Prover
Prover

Verifier

The verifier V takes verification key vk, the proof, and the general public enter x and accepts the proof solely whether it is produced with the data of witness w¹.

Verifier
Verifier

Implementation

When zk-SNARKs are utilized in blockchains, each the important thing and proof technology are executed off-chain. Solely the final verification algorithm is run inside a smart contract on chain.

There are a number of schemes of zk-SNARKs within the literature. We implement probably the most extensively used scheme Groth16 because of its small proof size and fast verification.

Verifier in Groth16: page 18
Verifier in Groth16: web page 18

The complete code is listed under, primarily based on our elliptic curve arithmetic and pairing libraries.

Contract ZKSNARK

It’s value noting that the proof measurement (Line 23–27) and the variety of pairings (Line 43–44) are fixed, no matter how complicated the operate C being proved is.

Abstract

zk-SNARK is a robust primitive for blockchain privacy and scalability. Right this moment we solely confirmed what zk-SNARK is and find out how to implement it on Bitcoin. We’ll discover find out how to use it within the close to future. Why and the way it works internally, which is kind of math heavy, is past the scope of this single article. There are a lot of wonderful tutorials resembling this series and this paper.

***

NOTE:

[1] There’s an exception. Anybody is aware of the key parameter λ used within the generator can generate faux but legitimate proof with out data of witness. That’s the reason it’s known as poisonous waste. It should be discarded after the trusted setup part.

Watch: The BSV World Blockchain Conference presentation, Good Contracts and Computation on BSV

New to Bitcoin? Try CoinGeek’s Bitcoin for Beginners part, the last word useful resource information to study extra about Bitcoin—as initially envisioned by Satoshi Nakamoto—and blockchain.





Source link

Tags: BitcoinRunZcashzkSNARKs
ShareTweetShare
diego

diego

I was born in Italy, 43 years ago. I started to be interested in the crypto world, about 7 years ago, when Bitcoin was little known in my country (Italy).Over time I started to devote myself to other altcoins and for a year, I have been following with great interest, Dogecoin, Shiba Inu and the world of memes. I believe that the crypto world is not for everyone, but if you really want to buy cryptocurrencies, invest only what you can afford.

Next Post
Dogecoin Increasingly Tied To Terrorism And Child Sex Abuse Material, Research Shows

Dogecoin Increasingly Tied To Terrorism And Child Sex Abuse Material, Research Shows

  • Trending
  • Comments
  • Latest
Illegal copies of ‘Spider-Man: No Way Home’ infected with cryptocurrency mining malware

Illegal copies of ‘Spider-Man: No Way Home’ infected with cryptocurrency mining malware

December 24, 2021
Cardano Price Predictions: Where Will the ADA Crypto Go After Today’s Crash?

Cardano Price Predictions: Where Will the ADA Crypto Go After Today’s Crash?

December 14, 2021
Why Is Shiba Inu Up 40% Today? Should You Buy?

Why Is Shiba Inu Up 40% Today? Should You Buy?

February 8, 2022
Investors’ Demand To Burn Shiba Inu Coin Continues With Signing Of Petition

Investors’ Demand To Burn Shiba Inu Coin Continues With Signing Of Petition

December 13, 2021
India’s cryptocurrency bill does not intend to push them – Cryptogaceta – CVBJ

India’s cryptocurrency bill does not intend to push them – Cryptogaceta – CVBJ

0
AscendEX loses $80M following ERC-20, BSC, Polygon hot wallet compromise

AscendEX loses $80M following ERC-20, BSC, Polygon hot wallet compromise

0
Better Buy: Bitcoin vs. Ethereum

Better Buy: Bitcoin vs. Ethereum

0
8 Fake cryptocurrency Android apps that Google blocked this year

8 Fake cryptocurrency Android apps that Google blocked this year

0
MEDOC Token Gains Over 3,000 Percent

MEDOC Token Gains Over 3,000 Percent

July 7, 2022
Shiba Inu promises surge, CVX adds over 50%

Shiba Inu promises surge, CVX adds over 50%

July 7, 2022
How Long Will It Take for Bitcoin’s Price to Exceed $30K Once Again?

How Long Will It Take for Bitcoin’s Price to Exceed $30K Once Again?

July 7, 2022
Ethereum Scaling Solution Immutable X Will Allow Ether-to-Dollar Withdrawals

Ethereum Scaling Solution Immutable X Will Allow Ether-to-Dollar Withdrawals

July 7, 2022

Sponsored by

Recent News

MEDOC Token Gains Over 3,000 Percent

MEDOC Token Gains Over 3,000 Percent

July 7, 2022
Shiba Inu promises surge, CVX adds over 50%

Shiba Inu promises surge, CVX adds over 50%

July 7, 2022
How Long Will It Take for Bitcoin’s Price to Exceed $30K Once Again?

How Long Will It Take for Bitcoin’s Price to Exceed $30K Once Again?

July 7, 2022

Newsletter diegoderosa.net

Categories

  • BabyDoge
  • Bitcoin
  • Blockchain
  • Cardano
  • Crypto News
  • Dogecoin
  • Ethereum
  • Litecoin
  • Market & Analysis
  • shib
  • Xrp

Sponsored by

© 2021 Diegoderosa All Rights Reserved

No Result
View All Result
  • Home
  • News
  • Bitcoin
  • Blockchain
  • Shib
  • Ethereum
  • Cardano
  • Market & Analysis
  • More
    • Litecoin
    • Dogecoin
    • Xrp

© 2021 Diegoderosa All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In