MCPcopy 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
69def sha256(s):
70 return hashlib.sha256(s).digest()
71
72
73def hash256(s):

Callers 15

run_testMethod · 0.90
run_testMethod · 0.90
test_standardness_v0Method · 0.90
test_segwit_versionsMethod · 0.90
_on_dataMethod · 0.90
build_messageMethod · 0.90
hash160Function · 0.70
BIP341_sha_prevoutsFunction · 0.70
BIP341_sha_amountsFunction · 0.70
BIP341_sha_scriptpubkeysFunction · 0.70

Calls 1

digestMethod · 0.80

Tested by 2

test_standardness_v0Method · 0.72
test_segwit_versionsMethod · 0.72