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

Exposed safe blst_scalar_constructor #52

Conversation

ayushmishra2005
Copy link

Fixes #13

@dot-asm
Copy link
Collaborator

dot-asm commented Jan 21, 2021

bindings.rs is auto-generated by bindgen and it's absolutely preferred to keep it that way. It's not unmodified output though, it's passed through build/bindings_trim.pl. Besides, scalars are now byte arrays, so that subroutines in question are of lesser use. In sense that if you have a collection of random bytes you can just pass them without having to bother about conversions. Accompanied with suitable nbits of course.

On side note, one can make a case for nbits sanity check for relation between nbits and slice length, or even nbits inference [from slice length].

@dot-asm dot-asm closed this Feb 1, 2021
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.

Rust bindings: expose safe blst_scalar constructors
2 participants