So far we've been using raw uint256 for block hashes. Many things in bitcoin are uint256, such as transaction ids, merkle root, sighash, and so on.
Using a dedicated type ensures greater type safety and allows to make API more specific.
Differential D4595
Introduce BlockHash to represent a block hash deadalnix on Nov 30 2019, 03:01. Authored by
Details
So far we've been using raw uint256 for block hashes. Many things in bitcoin are uint256, such as transaction ids, merkle root, sighash, and so on. Using a dedicated type ensures greater type safety and allows to make API more specific. make check ./test/functional/test_runner.py
Diff Detail
Event Timeline
|