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

Class sha256

connectd/connectd.c:1602–1602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600 randbytes((void * const)&random, 32);
1601 /* generate static tor node address, take first 32 bytes from secret of node_id plus 32 random bytes from sodiom */
1602 struct sha256 sha;
1603 struct secret ss;
1604
1605 ecdh(&pb, &ss);

Callers 6

setup_listenersFunction · 0.70
blindFunction · 0.50
get_hop_paramsMethod · 0.50
__init__Method · 0.50
updateMethod · 0.50
init_handshakeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected