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

Function bitcoin_txid_from_hex

bitcoin/tx.c:695–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695bool bitcoin_txid_from_hex(const char *hexstr, size_t hexstr_len,
696 struct bitcoin_txid *txid)
697{
698 if (!hex_decode(hexstr, hexstr_len, txid, sizeof(*txid)))
699 return false;
700 reverse_bytes(txid->shad.sha.u.u8, sizeof(txid->shad.sha.u.u8));
701 return true;
702}
703
704bool bitcoin_txid_to_hex(const struct bitcoin_txid *txid,
705 char *hexstr, size_t hexstr_len)

Callers 10

mainFunction · 0.85
mainFunction · 0.85
txid_from_hexFunction · 0.85
txid_from_hexFunction · 0.85
onchaind_funding_spentFunction · 0.85
txid_from_hexFunction · 0.85
json_to_txidFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

hex_decodeFunction · 0.85
reverse_bytesFunction · 0.85

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
txid_from_hexFunction · 0.68
txid_from_hexFunction · 0.68