diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-01-31 19:34:35 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-01-31 19:34:35 +0100 |
commit | 87f11ef47fea31d51bcc3f5df68f78fb28e3d8dd (patch) | |
tree | 49ce74175b7a0721a246f93ff2b091c390b0ae73 /src/test/key_tests.cpp | |
parent | b5868f4b1f884e8d6612f34ca4005fe3a992053d (diff) |
refactor: use `Hash` helper for double-SHA256 calculations
Diffstat (limited to 'src/test/key_tests.cpp')
-rw-r--r-- | src/test/key_tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/key_tests.cpp b/src/test/key_tests.cpp index d14fda7351..edf28cfbfc 100644 --- a/src/test/key_tests.cpp +++ b/src/test/key_tests.cpp @@ -205,8 +205,7 @@ BOOST_AUTO_TEST_CASE(key_key_negation) unsigned char rnd[8]; std::string str = "Bitcoin key verification\n"; GetRandBytes(rnd); - uint256 hash; - CHash256().Write(MakeUCharSpan(str)).Write(rnd).Finalize(hash); + uint256 hash{Hash(str, rnd)}; // import the static test key CKey key = DecodeSecret(strSecret1C); |