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

Inner-Product Verification with Multiexponentiation | Inner-Product Protocol for Non-powers of 2 #20

Merged
merged 7 commits into from Jun 9, 2020

Conversation

suyash67
Copy link
Contributor

@suyash67 suyash67 commented Jun 5, 2020

  1. Faster inner product proof verification using a single multi-exponentiation as described in Section 3.1 of the Bulletproofs paper. Improves the inner product verification by ~30%

  2. Protocols similar in spirit to Bulletproofs require support for inner product protocol with secret vector sizes a non-power of 2. I have added a test demonstrating the same. The idea is simple:
    2.1 Append secret vectors with 0's to make them the next power of 2
    2.2 Extend the original base vectors to make them too the next power of 2
    2.3 Compute vector exponentiations with a condition to check any 0's. This ensures minimum overhead computational cost due to modification of vector sizes to the next power of 2.

@suyash67 suyash67 changed the title Faster Inner-Product Verification with Multiexponentiation | Inner-Product Protocol for Non-powers of 2 Inner-Product Verification with Multiexponentiation | Inner-Product Protocol for Non-powers of 2 Jun 5, 2020
@omershlo
Copy link
Contributor

omershlo commented Jun 6, 2020

looks fantastic !

@omershlo omershlo self-requested a review June 7, 2020 06:28
Copy link
Contributor

@omershlo omershlo left a comment

Choose a reason for hiding this comment

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

looks really good. I am mainly confused around the s vector generation

src/proofs/inner_product.rs Outdated Show resolved Hide resolved
src/proofs/inner_product.rs Outdated Show resolved Hide resolved
src/proofs/inner_product.rs Outdated Show resolved Hide resolved
src/proofs/inner_product.rs Outdated Show resolved Hide resolved
src/proofs/inner_product.rs Show resolved Hide resolved
@omershlo omershlo merged commit f45b0ca into ZenGo-X:master Jun 9, 2020
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.

None yet

2 participants