cb9893c4a9
Currently we use the `Uint256` type to represent two proof of work integers, namely target and difficulty (work). It would be nice to not have a public integer type that is not fully implemented (i.e., does not implement arithmetic etc as do integer types in stdlib). Instead of implementing all the stdlib functions we can instead add two new wrapper types, since these are not general purpose integers they do not need to implement anything we do not need to use. - Add a `pow` module. - Put a modified version of `Uint256` to `pow`. - Add two new wrapper types `Target` and `Difficulty`. - Only implement methods that we use on each type. Note this patch does not remove the original `Uint256`, that will be done as a separate patch. |
||
---|---|---|
.. | ||
workflows |