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

Function bitcoin_txid_to_hex

bitcoin/tx.c:704–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704bool bitcoin_txid_to_hex(const struct bitcoin_txid *txid,
705 char *hexstr, size_t hexstr_len)
706{
707 struct sha256_double rev = txid->shad;
708 reverse_bytes(rev.sha.u.u8, sizeof(rev.sha.u.u8));
709 return hex_encode(&rev, sizeof(rev), hexstr, hexstr_len);
710}
711
712char *fmt_bitcoin_tx(const tal_t *ctx, const struct bitcoin_tx *tx)
713{

Callers 4

fmt_bitcoin_txidFunction · 0.85
json_add_txidFunction · 0.85
json_add_outpointFunction · 0.85
mainFunction · 0.85

Calls 2

reverse_bytesFunction · 0.85
hex_encodeFunction · 0.85

Tested by

no test coverage detected