diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-10 12:02:12 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-20 15:34:36 +0200 |
commit | faf9accd662974a69390213fee1b5c6237846b42 (patch) | |
tree | 987a4d2f3ab4898e5eaac32b267174b9e48ee42a /src/script/sign.cpp | |
parent | faa5425629d35708326b255570c51139aef0c8c4 (diff) | |
download | bitcoin-faf9accd662974a69390213fee1b5c6237846b42.tar.xz |
Use HashWriter where possible
Diffstat (limited to 'src/script/sign.cpp')
-rw-r--r-- | src/script/sign.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index a3681d26cc..3b8071d9d1 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -165,7 +165,7 @@ static bool SignTaprootScript(const SigningProvider& provider, const BaseSignatu if (leaf_version != TAPROOT_LEAF_TAPSCRIPT) return false; SigVersion sigversion = SigVersion::TAPSCRIPT; - uint256 leaf_hash = (CHashWriter(HASHER_TAPLEAF) << uint8_t(leaf_version) << script).GetSHA256(); + uint256 leaf_hash = (HashWriter{HASHER_TAPLEAF} << uint8_t(leaf_version) << script).GetSHA256(); // <xonly pubkey> OP_CHECKSIG if (script.size() == 34 && script[33] == OP_CHECKSIG && script[0] == 0x20) { |