:: [Libbitcoin] New hash function name…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Amir Taaki
日付:  
To: Libbitcoin
題目: [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