- #1
docnet
Gold Member
- 696
- 349
- Homework Statement
- coin flipping protocol
- Relevant Equations
- n = pq
b^2 = y(modp)
b^2 = -y(modq)
Conditions of the problem:
y =/= a^2 (mod pq)
-y =/= a^2 (mod pq)
p = 3 (mod 4)
q = 3 (mod 4)
(a) We assume y is both square (mod p) and (mod q). Then,
b^2 = y (mod p)
b^2 = y (mod q)
b^2 = y + pk
b^2 = y + qr
pk = qr ?
(should we assume b is the same between the two equations?)
(b)
-y = d^2 (modq)
q-y = d^2 (modq)
y + d^2 = q (modq)
d^2 = -y (modq)
(c)
y = a^2 (mod p)
-y = a^2 (mod q)
(again, should we assume b is the same between two equations?)
(d)
If bob has b and y, he can compute a relationship between p and q.
b^2 = y + pk
b^2 = -y + qr
2 b^2 + pk + qr ?
______________________________________________________________________________________________________________
(description of the coin flipping protocol)
Alice knows primes p = 3(mod) and q = 3(mod4). She computes pq = n, she sends n to Bob.
Bob chooses u so y = u^2 (modn), sends y to Alice
Alice finds 4 square roots of y using p and q.
square roots = u, -u, v, -v,
Alice picks one square root at random and sends it to Bob. If Alice picks u or -u she wins. If she picks v or -v, she loses.
Bob cannot lie and falsify Alice's loss because he only knows u, -u. therefore he will not be able to provide v if Alice asks for it.
Last edited: