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.