Open
Description
Summary
We should add implementations of Add
, Sub
, CheckedSub
and CheckedAdd
for Uints. These are common functions one needs when working with Uints. Currently there only exists AddMany
CheckedAdd and CheckedSub should be unsatisfiable if there is an overflow. I think the simplest checked arithmetic implementation would be to just compute the final carry bit and ensure its 0
(The checked and non-checked methods can be implemented in separate PRs!)
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned