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

Use trait to generalize over Uint and BoxedUint #1

Open
2 tasks
xuganyu96 opened this issue Dec 13, 2023 · 0 comments
Open
2 tasks

Use trait to generalize over Uint and BoxedUint #1

xuganyu96 opened this issue Dec 13, 2023 · 0 comments
Assignees

Comments

@xuganyu96
Copy link
Owner

Per this draft PR, to migrate crypto-primes to accommodate both Uint and BxoedUint, a new trait UintLike will be defined in the crypto-bigint crate, and the functions in crypto-primes will take T: UintLike where it used to take Uint<const L: usize>. There are two major items:

  • Define the UintLike trait to be used in crypto-primes
  • Implement UintLike for crypto-bigint

In fact I think we can entirely do the trait definition and implementation in crypto-primes first, prove that it works, then move these traits to crypto-bigint.

Maybe the original maintainers are already working on this, but it still seems like a very fun project, so I want to give it a try, as well.

@xuganyu96 xuganyu96 self-assigned this Dec 13, 2023
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