Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ sha256
Function
sha256
test/functional/test_framework/messages.py:69–70 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
67
68
69
def
sha256(s):
70
return
hashlib.sha256(s).digest()
71
72
73
def
hash256(s):
Callers
15
tapscript_satisfy_test
Method · 0.90
run_test
Method · 0.90
run_test
Method · 0.90
decodescript_script_pub_key
Method · 0.90
test_standardness_v0
Method · 0.90
test_segwit_versions
Method · 0.90
_on_data
Method · 0.90
build_message
Method · 0.90
hash160
Function · 0.70
BIP341_sha_prevouts
Function · 0.70
BIP341_sha_amounts
Function · 0.70
BIP341_sha_scriptpubkeys
Function · 0.70
Calls
1
digest
Method · 0.80
Tested by
2
test_standardness_v0
Method · 0.72
test_segwit_versions
Method · 0.72