Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
def
_sha256(*parts):
32
h = hashlib.sha256()
33
for
p in parts:
34
h.update(p)
35
return
h.digest()
36
37
38
def
_dsha256(b):
Callers
4
derive_simple_pubkey
Function · 0.85
derive_revocation_pubkey
Function · 0.85
p2wsh
Function · 0.85
test_zero_length_upfront_shutdown_script
Function · 0.85
Calls
2
update
Method · 0.80
digest
Method · 0.80
Tested by
no test coverage detected