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

Function db_col_sha256

db/bindings.c:493–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void db_col_sha256(struct db_stmt *stmt, const char *colname, struct sha256 *sha)
494{
495 size_t col = db_query_colnum(stmt, colname);
496 const u8 *raw;
497 size_t size = sizeof(struct sha256);
498 assert(db_column_bytes(stmt, col) == size);
499 raw = db_column_blob(stmt, col);
500 memcpy(sha, raw, size);
501}
502
503void db_col_sha256d(struct db_stmt *stmt, const char *colname,
504 struct sha256_double *shad)

Callers 11

wallet_shachain_loadFunction · 0.85
wallet_stmt2htlc_inFunction · 0.85
wallet_stmt2htlc_outFunction · 0.85
wallet_htlc_stubsFunction · 0.85
wallet_stmt2paymentFunction · 0.85
wallet_offer_id_nextFunction · 0.85
wallet_htlcs_nextFunction · 0.85
maybe_mark_offer_usedFunction · 0.85
stmt2chain_eventFunction · 0.85
stmt2channel_eventFunction · 0.85

Calls 3

db_query_colnumFunction · 0.85
db_column_bytesFunction · 0.85
db_column_blobFunction · 0.85

Tested by

no test coverage detected