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

Add safe u256 add and sub #87

Merged
merged 3 commits into from
Apr 21, 2024

Conversation

thomas-senechal
Copy link
Contributor

This PR introduces some bases for the safe u256 type:

  • from methods to create a safe u256 from signed and unsigned numbers, byte arrays...
  • add method to add two safe u256 numbers
  • sub method to subtract two safe u256 numbers

This PR also includes tests for the new methods.

I tried to follow the existing code style and conventions, but please let me know if I missed something.

@MaxGraey MaxGraey merged commit 1eb2600 into MaxGraey:master Apr 21, 2024
2 checks passed
@MaxGraey
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants