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

Function bitcoin_txid_from_hex

bitcoin/tx.c:654–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654bool bitcoin_txid_from_hex(const char *hexstr, size_t hexstr_len,
655 struct bitcoin_txid *txid)
656{
657 if (!hex_decode(hexstr, hexstr_len, txid, sizeof(*txid)))
658 return false;
659 reverse_bytes(txid->shad.sha.u.u8, sizeof(txid->shad.sha.u.u8));
660 return true;
661}
662
663bool bitcoin_txid_to_hex(const struct bitcoin_txid *txid,
664 char *hexstr, size_t hexstr_len)

Callers 10

mainFunction · 0.85
bitcoin_blkid_from_hexFunction · 0.85
mainFunction · 0.85
txid_from_hexFunction · 0.85
txid_from_hexFunction · 0.85
onchaind_funding_spentFunction · 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 5

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