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

Pluggable bignum backends #7

Open
DemiMarie opened this issue Nov 24, 2018 · 2 comments
Open

Pluggable bignum backends #7

DemiMarie opened this issue Nov 24, 2018 · 2 comments

Comments

@DemiMarie
Copy link
Contributor

Currently, the vdf crate is hard-coded to use GMP as its bignum library. There are many reasons one might want to use an alternative:

Licensing
GMP is LGPL3+/GPL2+, which is often undesirable.
Hardware acceleration
GMP is the fastest software bignum library extant, but it is still far slower than purpose-built accelerator hardware. A pluggable backend could enable such hardware to be used.
Portability
GMP is written in C and assembler, and uses autotools to build. This is especially annoying on Windows.
@DemiMarie
Copy link
Contributor Author

I think I will use OpenSSL for this.

@c0gent
Copy link

c0gent commented Nov 27, 2018

Using a non-GPL library is definitely important. Have you looked at https://crates.io/crates/ramp?

I'm not sure that I'd spend a lot of time on a pluggable backend at this point unless it's really easy but that's your call.

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

2 participants