MCPcopy Create free account
hub / github.com/ElementsProject/lightning / _sha256

Function _sha256

tests/test_opening.py:31–35  ·  view source on GitHub ↗
(*parts)

Source from the content-addressed store, hash-verified

29
30
31def _sha256(*parts):
32 h = hashlib.sha256()
33 for p in parts:
34 h.update(p)
35 return h.digest()
36
37
38def _dsha256(b):

Callers 4

derive_simple_pubkeyFunction · 0.85
derive_revocation_pubkeyFunction · 0.85
p2wshFunction · 0.85

Calls 2

updateMethod · 0.80
digestMethod · 0.80

Tested by

no test coverage detected