Short, Invertible Elements in Partially Splitting Cyclotomic Rings - - PowerPoint PPT Presentation

short invertible elements in partially splitting
SMART_READER_LITE
LIVE PREVIEW

Short, Invertible Elements in Partially Splitting Cyclotomic Rings - - PowerPoint PPT Presentation

Short, Invertible Elements in Partially Splitting Cyclotomic Rings and Applications to Lattice-Based Zero-Knowledge Proofs Vadim Lyubashevsky Gregor Seiler IBM Research Zurich April 30, 2018 Motivation: Lattice-Based Zero-Knowledge Proofs


slide-1
SLIDE 1

Short, Invertible Elements in Partially Splitting Cyclotomic Rings and Applications to Lattice-Based Zero-Knowledge Proofs

Vadim Lyubashevsky Gregor Seiler

IBM Research – Zurich

April 30, 2018

slide-2
SLIDE 2

Motivation: Lattice-Based Zero-Knowledge Proofs

Want to prove knowledge of a short vector s ∈ Rk such that

  • A
  • s
  • =
  • t
  • where A ∈ Rm×k, t ∈ Rm are public
slide-3
SLIDE 3

Motivation: Lattice-Based Zero-Knowledge Proofs

Want to prove knowledge of a short vector s ∈ Rk such that

  • A
  • s
  • =
  • t
  • where A ∈ Rm×k, t ∈ Rm are public

Unfortunately, we don’t know how to do this efficiently for a single equation

slide-4
SLIDE 4

Approximate Proofs

Prover: Verifier: y ← S w = Ay c ← C c z = y + cs z Az ? = w + ct

slide-5
SLIDE 5

Approximate Proofs

Prover: Verifier: y ← S w = Ay c ← C c z = y + cs z Az ? = w + ct Soundness: Subtracting equations for two different challenges gives approximate solution A¯ z = ¯ ct Need large challenge set for small soundness error

slide-6
SLIDE 6

Approximate Proofs

Prover: Verifier: y ← S w = Ay c ← C c z = y + cs z Az ? = w + ct Soundness: Subtracting equations for two different challenges gives approximate solution A¯ z = ¯ ct Need large challenge set for small soundness error Zero-knowledge: z becomes statistically independent of s through rejection sampling [Lyu09] Need small challenges for low rejection rate

slide-7
SLIDE 7

Applications of Approximate Proofs

Why is it useful to prove A¯ z = ¯ ct?

slide-8
SLIDE 8

Applications of Approximate Proofs

Why is it useful to prove A¯ z = ¯ ct? In Fiat-Shamir signatures: Approximate solution gives a SIS solution in rank +1

  • A
  • − t
  • ¯

z ¯ c

  • = 0
slide-9
SLIDE 9

More Applications

More applications possible if ¯ c is invertible

slide-10
SLIDE 10

More Applications

More applications possible if ¯ c is invertible Caveat: If ¯ c is invertible, A¯ c−1¯ z = t but we can not assume ¯ c−1¯ z to be short

slide-11
SLIDE 11

More Applications

More applications possible if ¯ c is invertible Caveat: If ¯ c is invertible, A¯ c−1¯ z = t but we can not assume ¯ c−1¯ z to be short Commitment Schemes: Still binding [BDLPO16] Voting Schemes: Approximate proofs from the voters can be combined with exact amortized proofs from the authorities [PLNS17] Verifiable encryption [LN17]

slide-12
SLIDE 12

The Optimal Challenge Set

To summarize, we need a large set of small polynomials such that all differences of two elements are invertible; ideally C ⊂ {c ∈ R | c∞ = 1}

slide-13
SLIDE 13

The Optimal Challenge Set

To summarize, we need a large set of small polynomials such that all differences of two elements are invertible; ideally C ⊂ {c ∈ R | c∞ = 1} Goal: Prove that ¯ c∞ ≤ 2c∞ = 2 = ⇒ ¯ c is invertible

slide-14
SLIDE 14

Computational Setting

We work in a cyclotomic ring modulo a prime number: R = Zq[X]/(Φm(X)) Φm is the m-th cyclotomic polynomial of degree n = ϕ(m)

slide-15
SLIDE 15

Computational Setting

We work in a cyclotomic ring modulo a prime number: R = Zq[X]/(Φm(X)) Φm is the m-th cyclotomic polynomial of degree n = ϕ(m) In this talk only power-of-two cyclotomics R = Zq[X]/(X n + 1)

slide-16
SLIDE 16

Splitting of Primes

Suppose X n + 1 factors modulo q as X n + 1 ≡ T1(X) . . . Tk(X) (mod q) Then, from the Chinese Remainder Theorem, R = Zq[X]/(X n + 1) = Zq[X]/(T1(X)) × · · · × Zq[X]/(Tk(X))

slide-17
SLIDE 17

Splitting of Primes

Suppose X n + 1 factors modulo q as X n + 1 ≡ T1(X) . . . Tk(X) (mod q) Then, from the Chinese Remainder Theorem, R = Zq[X]/(X n + 1) = Zq[X]/(T1(X)) × · · · × Zq[X]/(Tk(X)) An element of R is invertible if and only if it is non-zero modulo all the factors of X n + 1

slide-18
SLIDE 18

FFT-Multiplication

Counting argument: Challenge sets can have at most qn/k elements, otherwise there is a collision modulo one of the factors of X n + 1 of degree n/k

slide-19
SLIDE 19

FFT-Multiplication

Counting argument: Challenge sets can have at most qn/k elements, otherwise there is a collision modulo one of the factors of X n + 1 of degree n/k We want to let X n + 1 split into as many factors as possible in order to take advantage

  • f FFT-based multiplication
slide-20
SLIDE 20

Main Result in the Power-of-Two Case

Theorem Let 1 < k ≤ n be powers of two and q a prime number such that q ≡ 1 + 2k (mod 4k). Then X n + 1 ≡

k

  • i=1

(X n/k − ri) (mod q) and any y ∈ R \ {0} is invertible if either y∞ < 1 √ k q1/k

  • r

y2 < q1/k

slide-21
SLIDE 21

Main Result in the Power-of-Two Case

Theorem Let 1 < k ≤ n be powers of two and q a prime number such that q ≡ 1 + 2k (mod 4k). Then X n + 1 ≡

k

  • i=1

(X n/k − ri) (mod q) and any y ∈ R \ {0} is invertible if either y∞ < 1 √ k q1/k

  • r

y2 < q1/k Note: y∞ <

1 √nq1/k =

⇒ y2 < q1/k

slide-22
SLIDE 22

Interpretation

Recall the infinity norm condition y∞ < 1 √ k q1/k = ⇒ y is invertible

slide-23
SLIDE 23

Interpretation

Recall the infinity norm condition y∞ < 1 √ k q1/k = ⇒ y is invertible For k = 8 and q > 220 1 √ k q1/k > 2 and all ¯ c are invertible since ¯ c∞ ≤ 2 We can let X n + 1 split into 8 factors for standard parameters in zero-knowledge proof systems

slide-24
SLIDE 24

Previous Works

Previously two approaches: Challenges of degree < n

k and consequently larger coefficients [BKLP15]

Optimal challenge set but X n + 1 only splitting into two factors [LN17]

slide-25
SLIDE 25

Proof Method for l2-Norm

Suppose y ∈ R \ {0} is not invertible. Then it lies in an ideal lattice q =

  • x ∈ Z[X]/(X n + 1)
  • x ≡ 0

(mod X n/k − r, q)

slide-26
SLIDE 26

Proof Method for l2-Norm

Suppose y ∈ R \ {0} is not invertible. Then it lies in an ideal lattice q =

  • x ∈ Z[X]/(X n + 1)
  • x ≡ 0

(mod X n/k − r, q)

  • This lattice has determinant det(q) = qn/k and we have for the l2-length of the shortest

non-zero vectors λn

1 ≥ det(q) = qn/k

slide-27
SLIDE 27

Proof Method for l2-Norm

Suppose y ∈ R \ {0} is not invertible. Then it lies in an ideal lattice q =

  • x ∈ Z[X]/(X n + 1)
  • x ≡ 0

(mod X n/k − r, q)

  • This lattice has determinant det(q) = qn/k and we have for the l2-length of the shortest

non-zero vectors λn

1 ≥ det(q) = qn/k

Hence, y2 ≥ q1/k

slide-28
SLIDE 28

Proof Idea for Infinity Norm

Express y in basis over subring of degree k

slide-29
SLIDE 29

Proof Idea for Infinity Norm

Express y in basis over subring of degree k q splits completely in this subring

slide-30
SLIDE 30

Proof Idea for Infinity Norm

Express y in basis over subring of degree k q splits completely in this subring The reduction of y modulo X n/k − r is nonzero if coefficients evaluated at r are nonzero

slide-31
SLIDE 31

Proof Idea for Infinity Norm

Express y in basis over subring of degree k q splits completely in this subring The reduction of y modulo X n/k − r is nonzero if coefficients evaluated at r are nonzero It follows from analysis in the subring that this is the case

slide-32
SLIDE 32

The General Case

Cyclotomic polynomial also splits into binomial polynomials modulo certain primes Necessary to use the embedding norm Going from l2-norm to embedding norm introduces singular value of the Vandermonde matrix

slide-33
SLIDE 33

The General Case

Cyclotomic polynomial also splits into binomial polynomials modulo certain primes Necessary to use the embedding norm Going from l2-norm to embedding norm introduces singular value of the Vandermonde matrix Norm condition: y∞ < 1 s1(Vz)q1/ϕ(z) = ⇒ y is invertible

slide-34
SLIDE 34

Vandermonde Matrix

Vz =      1 ζ1 ζ2

1

. . . ζk−1

1

1 ζ2 ζ2

2

. . . ζk−1

2

. . . . . . . . . . . . 1 ζk ζ2

k

. . . ζk−1

k

     For prime power cyclotomics where z = pe s1(Vz) =

  • τ(z) =

z

2

z even √z m odd

slide-35
SLIDE 35

Vandermonde Matrix

Vz =      1 ζ1 ζ2

1

. . . ζk−1

1

1 ζ2 ζ2

2

. . . ζk−1

2

. . . . . . . . . . . . 1 ζk ζ2

k

. . . ζk−1

k

     For prime power cyclotomics where z = pe s1(Vz) =

  • τ(z) =

z

2

z even √z m odd We found experimentally for all cyclotomic rings relevant in practice s1(Vz) ≤

  • τ(z)

We would be interested if someone knows if this true in general!

slide-36
SLIDE 36

Questions?

slide-37
SLIDE 37

Descending, Properly

Suppose y ∈ R is not invertible. Write y(X) = y0(X n/k) + y1(X n/k)X + · · · + yn/k−1(X n/k)X n/k−1

slide-38
SLIDE 38

Descending, Properly

Suppose y ∈ R is not invertible. Write y(X) = y0(X n/k) + y1(X n/k)X + · · · + yn/k−1(X n/k)X n/k−1 By setting Y = X n/k it follows from y ≡ 0 (mod X n/k − r) that yi(Y ) ≡ 0 (mod Y − r)

slide-39
SLIDE 39

Descending, Properly

Suppose y ∈ R is not invertible. Write y(X) = y0(X n/k) + y1(X n/k)X + · · · + yn/k−1(X n/k)X n/k−1 By setting Y = X n/k it follows from y ≡ 0 (mod X n/k − r) that yi(Y ) ≡ 0 (mod Y − r) yi is a non-invertible element in a cyclotomic ring of degree k where q splits completely. Now, y∞ ≥ yi∞ ≥ 1 √ k yi2 ≥ 1 √ k q1/k

slide-40
SLIDE 40

Main Result

Theorem Let m =

i pei i

and z =

i pfi i with 1 ≤ fi ≤ ei. Let q be a prime number such that

q ≡ 1 (mod z) and ordm(q) = m/z. Then Φm factors as Φm(X) ≡

ϕ(z)

  • i=1

(X m/z − ri) (mod q) and any y ∈ R is invertible if either y∞ < 1 s1(z)q1/ϕ(z)

  • r

y2 < √n s1(m)q1/ϕ(z)

slide-41
SLIDE 41

Counting Argument

Challenge sets can have at most qn/k elements, otherwise there is a collision modulo one

  • f the factors of X n + 1
slide-42
SLIDE 42

Counting Argument

Challenge sets can have at most qn/k elements, otherwise there is a collision modulo one

  • f the factors of X n + 1

There are 3n polynomials c such that c∞ ≤ 1. Therefore we must have q1/k ≥ 3