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

[zk-token-sdk] Range proof scalar inner product panics if input lengths are different (ottersec #8) #33510

Open
samkim-crypto opened this issue Oct 3, 2023 · 0 comments

Comments

@samkim-crypto
Copy link
Contributor

Problem

The inner product helper function when computing range proofs panics with a custom message if the input lengths of two input vectors are different.

This function is never really called on differing length inputs during range proof generation, but it would be better to error more gracefully since this is a public function.

Proposed Solution

Update the range proof helper function to return a custom error type when the input vectors have differing lengths.

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

1 participant