MCPcopy 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

23ORDER = secp256k1.GE.ORDER
24
25def 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
32class ECPubKey:

Callers 8

TaprootSignatureMsgFunction · 0.70
TaprootSignatureHashFunction · 0.70
taproot_tree_helperFunction · 0.70
taproot_constructFunction · 0.70
verify_schnorrFunction · 0.70
sign_schnorrFunction · 0.70
v2_ecdhMethod · 0.70
default_sighashFunction · 0.50

Calls 2

digestMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected