Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Private transactions

The main intention of zero-knowledge proofs and its variant, zk-SNARK, is to make transactions private. In a plain transaction such as in Bitcoin, a transaction value is claimed with unspent outputs (UTXOs). Each UTXO is described by the public address of the owner and the value. Let's consider that Alice has 1 bitcoin, which is represented by UTXO1:

UTXO1 = (PK1) 

PK1 is the public key of Alice. A random number is also stored along with each UTXO, which is later used by Alice to maintain privacy:

UTXO1 = (PK1, r1) 

Let's now store the UTXOs in hashes for better privacy:

H1 = HASH (UTXO1) 

These hash values are stored on each node, even after they have been spent. So, to distinguish between spent and UTXOs, a separate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content