Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Integer ergonomics changes #2367

Open
2 tasks
chipshort opened this issue Jan 31, 2025 · 0 comments
Open
2 tasks

Integer ergonomics changes #2367

chipshort opened this issue Jan 31, 2025 · 0 comments
Milestone

Comments

@chipshort
Copy link
Collaborator

  • change Uint256::new to take a u128. It's much more common to need that for test code and even in production code, as opposed to providing the full byte array. Also, you can always use from_be_bytes instead. What's important here is that the function stays const
  • do the analogous thing for Uint512, Int256 and Int512 (using i128 for the signed ints)
@chipshort chipshort added this to the 3.0.0 milestone Jan 31, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant