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

Function db_col_sha256

db/bindings.c:576–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576void db_col_sha256(struct db_stmt *stmt, const char *colname, struct sha256 *sha)
577{
578 size_t col = db_query_colnum(stmt, colname);
579 const u8 *raw;
580 size_t size = sizeof(struct sha256);
581 assert(db_column_bytes(stmt, col) == size);
582 raw = db_column_blob(stmt, col);
583 memcpy(sha, raw, size);
584}
585
586void db_col_sha256d(struct db_stmt *stmt, const char *colname,
587 struct sha256_double *shad)

Callers 14

stmt2chain_eventFunction · 0.85
stmt2channel_eventFunction · 0.85
wallet_shachain_loadFunction · 0.85
wallet_stmt2htlc_inFunction · 0.85
wallet_stmt2htlc_outFunction · 0.85
wallet_htlc_stubsFunction · 0.85
payment_get_detailsFunction · 0.85
wallet_offer_id_nextFunction · 0.85
wallet_invreq_id_nextFunction · 0.85
wallet_htlcs_nextFunction · 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