Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change multiplication proof and add P!=Q constraint #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

3for
Copy link

@3for 3for commented Dec 7, 2021

  1. Change multiplication proof: the algorithm in Doubly-efficient zkSNARKs without trusted setup Figure 5 is more efficient.
  2. For the realization of point addition proof in this repo, P!=Q constraint should be added.

A clean version with respect to the pull request #4

@3for 3for changed the title 3fortest Change multiplication proof and add P!=Q constraint Dec 7, 2021
@wbl wbl requested review from wbl and armfazh December 13, 2021 16:37
Copy link

@wbl wbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there: I think the next round should solve it, once I understand the paper and we make the code match.

// Step 1: Compute commitments
k_x = rnd(params.c.order),
k_y = rnd(params.c.order),
k_z = rnd(params.c.order),
kx = params.c.newScalar(k_x),
ky = params.c.newScalar(k_y),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make my life I easy I would appreciate completely changing the notation to match that of the paper. It's very difficult to determine which variables are supposed to mean which without doing that.

Az = params.commit(k_z),
A4_1 = params.commit(k_z),
A4_2 = Cy.p.mul(kx),
A4_2 = (Cx.p.mul(ky)).add(params.h.mul(kz)),
// Step 2: Compute challenge H(Cx, Cy, Cz, C4, Ax, Ay, Az, A4_1, A4_2)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment will also need changing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants