Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ TaggedHash
Function
TaggedHash
test/functional/test_framework/key.py:25–29 ·
view source on GitHub ↗
(tag, data)
Source
from the content-addressed store, hash-verified
23
ORDER = secp256k1.GE.ORDER
24
25
def
TaggedHash(tag, data):
26
ss = hashlib.sha256(tag.encode(
'utf-8'
)).digest()
27
ss += ss
28
ss += data
29
return
hashlib.sha256(ss).digest()
30
31
32
class
ECPubKey:
Callers
8
TaprootSignatureMsg
Function · 0.70
TaprootSignatureHash
Function · 0.70
taproot_tree_helper
Function · 0.70
taproot_construct
Function · 0.70
verify_schnorr
Function · 0.70
sign_schnorr
Function · 0.70
v2_ecdh
Method · 0.70
default_sighash
Function · 0.50
Calls
2
digest
Method · 0.80
encode
Method · 0.45
Tested by
no test coverage detected