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

Adding "pow" method #62

Open
Titaniumtown opened this issue Mar 24, 2021 · 3 comments
Open

Adding "pow" method #62

Titaniumtown opened this issue Mar 24, 2021 · 3 comments

Comments

@Titaniumtown
Copy link

Could a method similar to num-bigint's https://docs.rs/num-bigint/0.4.0/num_bigint/struct.BigUint.html#method.pow be added? Thanks.

@Robbepop
Copy link
Owner

Hey, I see absolutely no reason why it should no be possible to add a pow method to this crate's Int and Uint types. Note though that unlike BitUint the result of the pow method would have the same bit-width as its inputs.

@Gelbpunkt
Copy link

Hi, seeing that the owner seems to be active I would like to second this. I currently have to use num-bigint while I would personally prefer apint over it, but all I need is a modpow implementation, which should be possible if % and pow were to be added.

@Robbepop
Copy link
Owner

Sorry for my inactivity on this project. It is a long time since I contributed to it myself. I was unsucessfully trying to give it to someone else who has more time to invest into it. I can review PRs but won't accept anything that is going to become a maintenance burden in the long run for the project.
Also I am going to improve the CI so that a significant part of the review process is streamlined.

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

3 participants