Skip to content

Added checks for lhs and rhs in pedersen.ts - #157

Merged
kevaundray merged 5 commits into
AztecProtocol:masterfrom
krishichawda:master
Apr 4, 2023
Merged

Added checks for lhs and rhs in pedersen.ts#157
kevaundray merged 5 commits into
AztecProtocol:masterfrom
krishichawda:master

Conversation

@krishichawda

Copy link
Copy Markdown
Contributor

Fixed #149

Added a check to ensure that the length of lhs and rhs do not exceed 32 bytes.

@ludamad

ludamad commented Apr 3, 2023

Copy link
Copy Markdown
Collaborator

Thanks for this! May as well check that it is exactly 32. We will read 32 bytes unconditionally, and while an overflow is more problematic, we don't want to read garbage data either.

@krishichawda

Copy link
Copy Markdown
Contributor Author

Yeah of course, I'll make the changes.

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.

Check if inputs to PedersenCompress are 32 bytes

3 participants