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

Class sha256

bitcoin/script.c:32–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30static void hash160(struct ripemd160 *redeemhash, const void *mem, size_t len)
31{
32 struct sha256 h;
33
34 sha256(&h, mem, len);
35 ripemd160(redeemhash, h.u.u8, sizeof(h));

Callers 2

hash160Function · 0.70
scriptpubkey_p2wshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected