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

Generic signed int implementation #3

Merged
merged 7 commits into from
Apr 7, 2023
Merged

Generic signed int implementation #3

merged 7 commits into from
Apr 7, 2023

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented Apr 7, 2023

Based on the current ethers I256 implementation.

This implementation is fully generic over ruint::Uint, HOWEVER, it has not been well-tested with types that are not Uint<256, 4>. There may be SIGNIFICANT issues with other types.

TODO:

  • fix conversions for non-I256 types
  • tests for non-I256 types

@prestwich prestwich added the enhancement New feature or request label Apr 7, 2023
@prestwich prestwich self-assigned this Apr 7, 2023
@gakonst
Copy link
Member

gakonst commented Apr 7, 2023

OK w/ experimenting with it this way and we can iterate. Non I256 IXXX types are rare anyway.

@prestwich prestwich merged commit 0dd3c4e into main Apr 7, 2023
@prestwich prestwich deleted the prestwich/signed branch April 10, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants