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

Non power of 2 Inner-product argument #1

Open
suyash67 opened this issue Dec 12, 2019 · 6 comments
Open

Non power of 2 Inner-product argument #1

suyash67 opened this issue Dec 12, 2019 · 6 comments

Comments

@suyash67
Copy link

Hi @lovesh. Can you help me out in figuring out how to go about using inner product argument for input vectors of sizes other than powers of 2?

@lovesh
Copy link
Owner

lovesh commented Feb 4, 2020

Hi @suyash67, sorry for the delay. You can safely pad with 0s to make the vectors of size power of 2. That will increase the size of L and R by 1. The commitment P would not change since the elements of the vectors are either as exponents or part of inner product. Added a test showing this.

@suyash67
Copy link
Author

suyash67 commented Feb 5, 2020 via email

@lovesh
Copy link
Owner

lovesh commented Feb 5, 2020

You are welcome. May I ask which curve you are using?

@suyash67
Copy link
Author

suyash67 commented Feb 5, 2020 via email

@lovesh
Copy link
Owner

lovesh commented Feb 5, 2020

That seems nice. Btw, just wanted to make you aware that this wrapper can be used with secp curve by compiling with the secp256k1 feature. Check here for more curves https://github.com/lovesh/bulletproofs-amcl/blob/master/Cargo.toml#L22

@suyash67
Copy link
Author

suyash67 commented Feb 5, 2020 via email

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

No branches or pull requests

2 participants