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

Allow BLS verification as batch in one call #32

Open
nikkolasg opened this issue Jan 24, 2020 · 0 comments
Open

Allow BLS verification as batch in one call #32

nikkolasg opened this issue Jan 24, 2020 · 0 comments

Comments

@nikkolasg
Copy link

There's a bunch of calls from Go <-> FFI <-> Rust instead of just "one" call that does all transformations and check the sig in one call.
One concrete example is the hash to curve: Go first call the rust library to hash all messages to the curve, that means, the rust code creates a G2 point for each messages, and then marshal it bytes and give it back to Go. Then the Go lib passes these bytes back to rust again, but rust needs to unmarshal it back to a point ! You loose a bunch of time here - verifying a slice of bytes is a valid point often requires an expensive check - multiexp - not sure how its done here.

I do think it would be possible to just pass it all at once to Rust and let it verify by itself. If there is no other reason not to do it.

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