Docsity

Understanding Zero-Knowledge Proofs: A Way to Verify Information Without Revealing It, Study notes of Design and Analysis of Algorithms

Toggle sidebar
bg1
What is a Zero- Knowledge
What is a Zero- Knowledge
Proof?
Proof?
A zero-knowledge proof is a way that a
A zero-knowledge proof is a way that a
ā€œproverā€ can prove possession of a certain
ā€œproverā€ can prove possession of a certain
piece of information to a ā€œverifierā€ without
piece of information to a ā€œverifierā€ without
revealing it.
revealing it.
This is done by manipulating data provided
This is done by manipulating data provided
by the verifier in a way that would be
by the verifier in a way that would be
impossible without the secret information
impossible without the secret information
in question.
in question.
A third party, reviewing the transcript
A third party, reviewing the transcript
created, cannot be convinced that either
created, cannot be convinced that either
prover or verifier knows the secret.
prover or verifier knows the secret.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Understanding Zero-Knowledge Proofs: A Way to Verify Information Without Revealing It and more Study notes Design and Analysis of Algorithms in PDF only on Docsity!

What is a Zero- Knowledge

What is a Zero- Knowledge

Proof?

Proof?

A zero-knowledge proof is a way that a

A zero-knowledge proof is a way that a

ā€œproverā€ can prove possession of a certain

ā€œproverā€ can prove possession of a certain

piece of information to a ā€œverifierā€ without

piece of information to a ā€œverifierā€ without

revealing it.

revealing it.

This is done by manipulating data provided

This is done by manipulating data provided

by the verifier in a way that would be

by the verifier in a way that would be

impossible without the secret information

impossible without the secret information

in question.

in question.

A third party, reviewing the transcript

A third party, reviewing the transcript

created, cannot be convinced that either

created, cannot be convinced that either

prover or verifier knows the secret.

prover or verifier knows the secret.

The Cave of the Forty

The Cave of the Forty

Thieves

Thieves

Properties of Zero-

Properties of Zero-

Knowledge Proofs

Knowledge Proofs

Completeness – A prover who knows

Completeness – A prover who knows

the secret information can prove it

the secret information can prove it

with probability 1.

with probability 1.

Soundness – The probability that a

Soundness – The probability that a

prover who does not know the secret

prover who does not know the secret

information can get away with it can

information can get away with it can

be made arbitrarily small.

be made arbitrarily small.

An Example: Hamiltonian

An Example: Hamiltonian

Cycles

Cycles



Peggy the prover would like to

Peggy the prover would like to

show Vic the verifier that an

show Vic the verifier that an

element

element 

 is a member of the

is a member of the

subgroup of Z

subgroup of Z

n

n

generated by

generated by 

 ,

,

where

where 

 has order

has order 



. (i.e., does . (i.e., does 



k

k

=

= 

 for some k such that 0 ≤ k ≤

for some k such that 0 ≤ k ≤



 ?)

?)



Peggy chooses a random j, 0 ≤ j ≤Peggy chooses a random j, 0 ≤ j ≤

  – 1, and sends Vic– 1, and sends Vic 

jj

..



Vic chooses a random i = 0 or 1,

Vic chooses a random i = 0 or 1,

and sends it to Peggy.

and sends it to Peggy.



Peggy computes j + ik mod

Peggy computes j + ik mod 

 , and

, and

sends it to Vic.

sends it to Vic.



Vic checks that

Vic checks that 



j + ik

j + ik

=

= 



j

j





ik

ik

=

= 



j

j





i

i

.

.



They then repeat the above stepsThey then repeat the above steps

log

log

22

n times.

n times.



If Vic’s final computation checks

If Vic’s final computation checks

out in each round, he accepts the

out in each round, he accepts the

proof.

proof.

Bit Commitments

Bit Commitments

Flipping a coin down a wellā€

Flipping a coin down a wellā€

Flipping a coin by telephoneā€

Flipping a coin by telephoneā€

A value of 0 or 1 is committed to by

A value of 0 or 1 is committed to by

the prover by encrypting it with a

the prover by encrypting it with a

one-way function, creating a ā€œblobā€.

one-way function, creating a ā€œblobā€.

The verifier can then ā€œunwrapā€ this

The verifier can then ā€œunwrapā€ this

blob when it becomes necessary by

blob when it becomes necessary by

revealing the key.

revealing the key.

Bit Commitment

Bit Commitment

Properties

Properties

Concealing – The verifier cannot

Concealing – The verifier cannot

determine the value of the bit from

determine the value of the bit from

the blob.

the blob.

Binding – The prover cannot open

Binding – The prover cannot open

the blob as both a zero and a one.

the blob as both a zero and a one.

Bit Commitments and Zero-

Bit Commitments and Zero-

Knowledge

Knowledge

Bit commitments are used in zero-

Bit commitments are used in zero-

knowledge proofs to encode the secret

knowledge proofs to encode the secret

information.

information.

For example, zero-knowledge proofs based

For example, zero-knowledge proofs based

on graph colorations exist. In this case, bit

on graph colorations exist. In this case, bit

commitment schemes are used to encode

commitment schemes are used to encode

the colors.

the colors.

Complex zero-knowledge proofs with large

Complex zero-knowledge proofs with large

numbers of intermediate steps that must

numbers of intermediate steps that must

be verified also use bit commitment

be verified also use bit commitment

schemes.

schemes.

Computational

Computational

Assumptions

Assumptions

A zero-knowledge proof assumes the

A zero-knowledge proof assumes the

prover possesses unlimited

prover possesses unlimited

computational power.

computational power.

It is more practical in some cases to

It is more practical in some cases to

assume that the prover’s

assume that the prover’s

computational abilities are bounded.

computational abilities are bounded.

In this case, we have a zero-

In this case, we have a zero-

knowledge argument.

knowledge argument.

Applications

Applications

Zero-knowledge proofs can be

Zero-knowledge proofs can be

applied where secret knowledge too

applied where secret knowledge too

sensitive to reveal needs to be

sensitive to reveal needs to be

verified

verified

Key authentication

Key authentication

PIN numbers

PIN numbers

Smart cards

Smart cards

Limitations

Limitations



A zero-knowledge proof

A zero-knowledge proof

is only as good as the

is only as good as the

secret it is trying to

secret it is trying to

conceal

conceal



Zero-knowledge proofs

Zero-knowledge proofs

of identities in

of identities in

particular are

particular are

problematic

problematic



The Grandmaster

The Grandmaster

Problem

Problem



The Mafia Problem

The Mafia Problem



etc.

etc.