post-quantum zero-knowledge proofs for accumulators › pqcrypto2018 › conference-slides ›...

27
§ Post-Quantum Zero-Knowledge Proofs for Accumulators with Applications to Ring Signatures from Symmetric-Key Primitives David Derler , Sebastian Ramacher , Daniel Slamanig § PQC’, April ,

Upload: others

Post on 26-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

‡ §

Post-Quantum Zero-Knowledge Proofs for Accumulators

with Applications to Ring Signatures from Symmetric-Key Primitives

David Derler‡, Sebastian Ramacher‡, Daniel Slamanig§

PQCrypto’18, April 9, 2018

1

Page 2: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Ring Signatures

• Privacy enhancing primitive• Sign a message on behalf of ad-hoc group (= ring)F Signature attests some member of ring signedF Signer remains anonymous within ring

Xo�¤

o�¤

2

Page 3: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signatures

How to build ring signatures in a post-quantum setting?

• Code based [MCG08]• Multivariate [MP17]

Linear size in # ring members!

Only recently �rst sublinear ring signatures:

• Lattice based [LLNW16]F From generic accumulator based approach [DKNS04]

3

Page 4: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Can we build ring signatures solely fromsymmetric key primitives?

3

Page 5: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signature Intuition

Generic approach [DKNS04]

• Compute compact representation of public keys• Prove knowledge of a secret key• Corresponding to one of the public keys+ Incorporate message

Instantiation via Merkle trees

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2

x2,2

y3,2

Public keys of users

Inner nodes: y1,1 ← H(y2,2||y3,2)

Each public key associated to a secret key

4

Page 6: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signature Intuition

Generic approach [DKNS04]

• Compute compact representation of public keys• Prove knowledge of a secret key• Corresponding to one of the public keys+ Incorporate message

Instantiation via Merkle trees

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2

x2,2

y3,2

Public keys of users

Inner nodes: y1,1 ← H(y2,2||y3,2)

Each public key associated to a secret key

4

Page 7: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signature Intuition

Generic approach [DKNS04]

• Compute compact representation of public keys• Prove knowledge of a secret key• Corresponding to one of the public keys+ Incorporate message

Instantiation via Merkle trees

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2

x2,2

y3,2 Public keys of users

Inner nodes: y1,1 ← H(y2,2||y3,2)

Each public key associated to a secret key

4

Page 8: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signature Intuition

Generic approach [DKNS04]

• Compute compact representation of public keys• Prove knowledge of a secret key• Corresponding to one of the public keys+ Incorporate message

Instantiation via Merkle trees

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2

x2,2

y3,2 Public keys of users

Inner nodes: y1,1 ← H(y2,2||y3,2)

Each public key associated to a secret key

4

Page 9: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

PQ Ring Signature Intuition

Generic approach [DKNS04]

• Compute compact representation of public keys• Prove knowledge of a secret key• Corresponding to one of the public keys+ Incorporate message

Instantiation via Merkle trees

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2

x2,2

y3,2 Public keys of users

Inner nodes: y1,1 ← H(y2,2||y3,2)

Each public key associated to a secret key 4

Page 10: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Zero-Knowledge Membership Proof

Naive approach reveals path taken

Trivial approach

• Disjunctive proof of knowledge over all possible paths• Linear size in # ring members!

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2 y3,2

y0,0

y0,1

y0,2 y1,2

y1,1

y2,2 y3,2

5

Page 11: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Zero-Knowledge Membership Proof

Use commutative hash function? [DKNS04]

• yi = H(ai,bi) = H(bi,ai)• yi,ai,bi not revealed (except root of tree)• Does not reveal whether we continue le� or right• Not directly possible in symmetric setting!

Our technique

• “Emulate” commutativity• Disjunctive statement per levelyi = H(ai||bi) ∨ yi = H(bi||ai)

6

Page 12: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Zero-Knowledge Membership Proof

Use commutative hash function? [DKNS04]

• yi = H(ai,bi) = H(bi,ai)• yi,ai,bi not revealed (except root of tree)• Does not reveal whether we continue le� or right• Not directly possible in symmetric setting!

Our technique

• “Emulate” commutativity• Disjunctive statement per levelyi = H(ai||bi) ∨ yi = H(bi||ai)

6

Page 13: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Our Ring Signatures

• Accumulate public keys• Prove knowledge of secret key corresponding to public key• Proof membership of public key

Unforgeability:

• From collision-free accumulator with one-way domain• And simulation-sound extractability+ Prove that ZKB++/FS is simulation-sound extractable

Anonymity:

• From zero-knowledge

7

Page 14: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Our Ring Signatures

• Accumulate public keys• Prove knowledge of secret key corresponding to public key• Proof membership of public key

Unforgeability:

• From collision-free accumulator with one-way domain• And simulation-sound extractability+ Prove that ZKB++/FS is simulation-sound extractable

Anonymity:

• From zero-knowledge

7

Page 15: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Our Ring Signatures

• Accumulate public keys• Prove knowledge of secret key corresponding to public key• Proof membership of public key

Unforgeability:

• From collision-free accumulator with one-way domain• And simulation-sound extractability+ Prove that ZKB++/FS is simulation-sound extractable

Anonymity:

• From zero-knowledge

7

Page 16: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiation & Signature Size

Instantiation

• ZKB++• One-way function: use LowMC• Hash function: use LowMC in Sponge framework

Estimated signature sizes

• Logarithmic in # of ring members

Ring size |σ| (FS/ROM) |σ| (Unruh/QROM)25 2125 KB 3159 KB210 4086 KB 6067 KB220 8008 KB 11882 KB

8

Page 17: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Can we do better? - New results

8

Page 18: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

Multiplexer

x0

x1

s

01

Mxs

x0x1

9

Page 19: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

Multiplexer

x0

x1

s

0

1

M

xs

x0

x1

9

Page 20: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

Multiplexer

x0

x1

s0

1

M

xsx0

x1

9

Page 21: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

ai+1

bi+1

si+1

H

HM

ai

9

Page 22: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

ai+1

bi+1

si+1

M

MH

ai

• Requires 2 AND gates / output bit+ Can be optimized to only require 1 AND gate / output bit

9

Page 23: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Instantiating the Circuit

ai+1

bi+1

si+1

M

MH

ai

• Requires 2 AND gates / output bit+ Can be optimized to only require 1 AND gate / output bit

9

Page 24: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Smaller Signatures

• Only one hash function evaluation• Two multiplexers with circuit optimizations• Additionally AND gates in digest sizeF Signature size reduction by factor ≈ 2

Ring size |σ| (FS/ROM) |σ| (Unruh/QROM)25 1200 KB 2289 KB210 2283 KB 4388 KB220 4450 KB 8584 KB

10

Page 25: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Conclusions

Important steps towards PQ privacy enhancing primitives

• Solely from symmetric primitives• PQ accumulators + ZK proofs• Construction of ring signatures

Very �exible

• Similar techniques recently used by Boneh et al. [BEF18]F In construction of PQ dynamic group signatures

Future directions

• New results→ smaller signatures• Even smaller sizes for group signatures of Boneh et al.? Further optimizations & new constructions

11

Page 26: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

Questions?

Full version: https://ia.cr/2017/1154

Supported by:

12

Page 27: Post-Quantum Zero-Knowledge Proofs for Accumulators › pqcrypto2018 › conference-slides › ... · Post-Quantum Zero-Knowledge Proofs for Accumulators ... Mohamed Saied Emam Mohamed

References i

[BEF18] Dan Boneh, Saba Eskandarian, and Ben Fisch. Post-quantum groupsignatures from symmetric primitives. IACR Cryptology ePrint Archive,2018:261, 2018.

[DKNS04] Yevgeniy Dodis, Aggelos Kiayias, Antonio Nicolosi, and Victor Shoup.Anonymous identi�cation in ad hoc groups. In EUROCRYPT, 2004.

[LLNW16] Benoı̂t Libert, San Ling, Khoa Nguyen, and Huaxiong Wang. Zero-knowledgearguments for lattice-based accumulators: Logarithmic-size ring signaturesand group signatures without trapdoors. In EUROCRYPT, 2016.

[MCG08] Carlos Aguilar Melchor, Pierre-Louis Cayrel, and Philippe Gaborit. A newe�cient threshold ring signature scheme based on coding theory. InPQCrypto, 2008.

[MP17] Mohamed Saied Emam Mohamed and Albrecht Petzoldt. Ringrainbow - ane�cient multivariate ring signature scheme. In AFRICACRYPT, 2017.

13