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

General bignum trait #372

Open
DemiMarie opened this issue Nov 27, 2018 · 1 comment
Open

General bignum trait #372

DemiMarie opened this issue Nov 27, 2018 · 1 comment

Comments

@DemiMarie
Copy link

In my code (https://github.com/poanetwork/vdf), I found myself in need of a trait that included pretty much everything that could be asked of a bignum: conversions from various sized integers, bit setters, serialization and deserialization (both unsigned and 2’s complement), mutating arithmetic operations, etc.

Would such a trait be in the scope of this crate?

@hauleth
Copy link
Member

hauleth commented Nov 28, 2018

You are probably looking for something like PrimInt from num-traits crate.

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