diff options
| author | practicalswift <[email protected]> | 2020-10-16 06:26:05 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-10-16 06:26:46 +0000 |
| commit | 51365674e828ae95477570019738ab32aa572241 (patch) | |
| tree | eaac7fd5b4e982578fb6e101b615f59d8b83f18b /src/script | |
| parent | Merge #19836: rpc: Properly deserialize txs with witness before signing (diff) | |
| download | discoin-51365674e828ae95477570019738ab32aa572241.tar.xz discoin-51365674e828ae95477570019738ab32aa572241.zip | |
script: Make ComputeEntrySchnorr and ComputeEntryECDSA const to clarify contract
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/sigcache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp index 4a6e04f2e..c1786140d 100644 --- a/src/script/sigcache.cpp +++ b/src/script/sigcache.cpp @@ -46,14 +46,14 @@ public: } void - ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) + ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const { CSHA256 hasher = m_salted_hasher_ecdsa; hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin()); } void - ComputeEntrySchnorr(uint256& entry, const uint256 &hash, Span<const unsigned char> sig, const XOnlyPubKey& pubkey) + ComputeEntrySchnorr(uint256& entry, const uint256 &hash, Span<const unsigned char> sig, const XOnlyPubKey& pubkey) const { CSHA256 hasher = m_salted_hasher_schnorr; hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(sig.data(), sig.size()).Finalize(entry.begin()); |