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

Function bitcoin_txid

bitcoin/tx.c:506–509  ·  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

504 * into sha256_update(). But that was before libwally; but now we don't have
505 * to maintain our own transaction code, so there's that. */
506void bitcoin_txid(const struct bitcoin_tx *tx, struct bitcoin_txid *txid)
507{
508 wally_txid(tx->wtx, txid);
509}
510
511/* Use the bitcoin_tx destructor to also free the wally_tx */
512static void bitcoin_tx_destroy(struct bitcoin_tx *tx)

Callers 1

bitcoin_block_from_hexFunction · 0.70

Calls 1

wally_txidFunction · 0.85

Tested by

no test coverage detected