From 2420cee2c3a770d673a8db99ffc9f7e34bcf4a29 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 6 Nov 2020 09:30:09 +0900 Subject: [PATCH] [she] algo of decWithZkpDec --- misc/she/memo.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 misc/she/memo.txt diff --git a/misc/she/memo.txt b/misc/she/memo.txt new file mode 100644 index 0000000..68ebe85 --- /dev/null +++ b/misc/she/memo.txt @@ -0,0 +1,31 @@ +P ; generator +x ; secret key +xP ; public key +Enc(m;r) = (mP + rxP, rP) + +c = (S, T) +dec(c) := S - xT +dec(Enc(m;r)) = (mP + rxP) - x(rP) = mP +DLP(mP) := m +Dec(c) := DLP(dec(c)) + +ZKP of dec(c) = m + +z := Enc(m;0) = (mP, 0) + +c - z = (rxP, rP) ; r is unknown + +ZKP of dec(c - z) = 0 +(P1, P2) := (P, rP) +(A1, A2) := (xP, xrP) + +Prover shows that x(P1, P2) = (A1, A2) without revealing x. +b ; rand +B = (b P1, b P2) +h = Hash(P2, A1, A2, B1, B2) +d = b + h a +pi = (d, h) + +Verifier +Bi := d Pi - h Ai +verify h = Hash(P2, A2, A2, B1, B2)