aboutsummaryrefslogtreecommitdiff
path: root/src/arith_uint256.cpp
Commit message (Collapse)AuthorAgeFilesLines
* src/arith_256.cpp: bigendian compatibilityWladimir J. van der Laan2015-03-061-4/+5
|
* arith_uint256: remove initialization from byte vectorWladimir J. van der Laan2015-01-051-37/+2
| | | | | | | | Remove initialization from vector (as this is only used in the tests). Also implement SetHex and GetHex in terms of uint256, to avoid duplicate code as well as avoid endianness issues (as they work in term of bytes).
* Remove now-unused methods from arith_uint256 and base_uintWladimir J. van der Laan2015-01-051-62/+0
| | | | | | | | | | - Methods that access the guts of arith_uint256 are removed, as these are incompatible between endians. Use uint256 instead - Serialization is no longer needed as arith_uint256's are never read or written - GetHash is never used on arith_uint256
* Remove arith_uint160Wladimir J. van der Laan2015-01-051-17/+0
| | | | We never do 160-bit arithmetic.
* Add conversion functions arith_uint256<->uint_256Wladimir J. van der Laan2015-01-051-0/+16
|
* uint256->arith_uint256 blob256->uint256Wladimir J. van der Laan2015-01-051-0/+357
Introduce new opaque implementation of `uint256`, move old "arithmetic" implementation to `arith_uint256.