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

Function bitcoin_blkid_to_hex

bitcoin/block.c:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240bool bitcoin_blkid_to_hex(const struct bitcoin_blkid *blkid,
241 char *hexstr, size_t hexstr_len)
242{
243 struct sha256_double rev = blkid->shad;
244 reverse_bytes(rev.sha.u.u8, sizeof(rev.sha.u.u8));
245 return hex_encode(&rev, sizeof(rev), hexstr, hexstr_len);
246}
247
248char *fmt_bitcoin_blkid(const tal_t *ctx, const struct bitcoin_blkid *blkid)
249{

Callers 2

fmt_bitcoin_blkidFunction · 0.85
json_add_bitcoin_blkidFunction · 0.85

Calls 2

reverse_bytesFunction · 0.85
hex_encodeFunction · 0.85

Tested by

no test coverage detected