Skip to content

Commit 5136567

Browse files
script: Make ComputeEntrySchnorr and ComputeEntryECDSA const to clarify contract
1 parent cbb5f3a commit 5136567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/sigcache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ class CSignatureCache
4646
}
4747

4848
void
49-
ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey)
49+
ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const
5050
{
5151
CSHA256 hasher = m_salted_hasher_ecdsa;
5252
hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin());
5353
}
5454

5555
void
56-
ComputeEntrySchnorr(uint256& entry, const uint256 &hash, Span<const unsigned char> sig, const XOnlyPubKey& pubkey)
56+
ComputeEntrySchnorr(uint256& entry, const uint256 &hash, Span<const unsigned char> sig, const XOnlyPubKey& pubkey) const
5757
{
5858
CSHA256 hasher = m_salted_hasher_schnorr;
5959
hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(sig.data(), sig.size()).Finalize(entry.begin());

0 commit comments

Comments
 (0)