Skip to content

Conversation

@OBrezhniev
Copy link
Member

No description provided.

* Remove non-standard byte hasher and sponge hash construct on top of Poseidon. Remove BJJ wrapper functions.

* Update deps

* Update go versions

* Fix GHA run targets

* Remove non-standard byte hasher and sponge hash construct on top of Poseidon. Remove BJJ wrapper functions.

* Update deps

* Update go versions

* Fix GHA run targets
@OBrezhniev OBrezhniev marked this pull request as ready for review January 13, 2025 17:40
vmidyllic
vmidyllic previously approved these changes Jan 14, 2025
babyjub/eddsa.go Outdated
if (left.X.Cmp(right.X) == 0) && (left.Y.Cmp(right.Y) == 0) {
return nil
}
return fmt.Errorf("verifyPoseidon failed")
Copy link

Choose a reason for hiding this comment

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

I would create a sentinel error like ErrVarifyFailed and return it here. In this case we would be able to differentiate general error from validation fail by errors.Is instead of text comparison.

@OBrezhniev OBrezhniev merged commit 4c63aa3 into master Jan 21, 2025
10 checks passed
@OBrezhniev OBrezhniev deleted the develop branch January 21, 2025 11:22
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.

5 participants