:: [Libbitcoin] New hash function name…
Página Principal
Delete this message
Reply to this message
Autor: Amir Taaki
Data:  
Para: Libbitcoin
Assunto: [Libbitcoin] New hash function names (proposal)
hey,

the renamed hash functions have very long names that in many cases in the
sourcecode push lines beyond the 80 char line limit.

Many Bitcoin libraries just give them generic names like Hash(...) or
HashChecksum(...). I propose we do something similar as it doesn't seem
important what the underlying algorithm is (we say block hash, tx hash
.etc, not block sha256 hash, tx sha256 hash), as bitcoin is consistent
about its use of hashes in different scenarios.

my proposal for hash function names:

https://github.com/libbitcoin/libbitcoin/blob/develop/include/bitcoin/utility/hash.hpp#L39