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

Function bitcoin_txid

bitcoin/tx.c:494–497  ·  view source on GitHub ↗

We used to have beautiful, optimal code which fed the tx parts directly * into sha256_update(). But that was before libwally; but now we don't have * to maintain our own transaction code, so there's that. */

Source from the content-addressed store, hash-verified

492 * into sha256_update(). But that was before libwally; but now we don't have
493 * to maintain our own transaction code, so there's that. */
494void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid)
495{
496 wally_txid(tx->wtx, txid);
497}
498
499/* Use the bitcoin_tx destructor to also free the wally_tx */
500static void bitcoin_tx_destroy(struct bitcoin_tx *tx)

Callers

nothing calls this directly

Calls 1

wally_txidFunction · 0.85

Tested by

no test coverage detected