HomePhabricator

Add generic SaltedSipHasher

Description

Add generic SaltedSipHasher

Summary:
SaltedSipHasher is a generic hasher that can be used with most things we
would hash in an unordered container.

Replace KeyIDHasher with SaltedSipHasher and remove now unused KeyIDHasher

Also remove an outdated comment which is no longer relevant since std::unordered_map is used instead of boost::unordered_map in CCoinsMap

This concludes backport of core#19935 and core#22772

https://github.com/bitcoin/bitcoin/pull/19935/commits/210b693db66e7c5b618014b5a287aee15af00045
https://github.com/bitcoin/bitcoin/pull/19935/commits/281fd1a4a032cded7f9ea9857e3e99fc793c714b
https://github.com/bitcoin/bitcoin/pull/22772/commits/16652a93ea6d25674fe318ef5e213e98427c8947
https://github.com/bitcoin/bitcoin/pull/22772/commits/4c69571e6eeae2c03d59045ea102baa5fd1c3816

Depends on D12149

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D12150

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Sep 17 2019, 23:29
PiRKCommitted on Oct 5 2022, 16:22
PiRKPushed on Oct 5 2022, 16:23
Reviewer
Restricted Project
Differential Revision
D12150: Add generic SaltedSipHasher
Parents
rABCf8aa6035ca37: MOVEONLY: context-free package policies
Branches
Unknown
Tags
Unknown

Event Timeline