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

Function db_col_sha256

db/bindings.c:573–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void db_col_sha256(struct db_stmt *stmt, const char *colname, struct sha256 *sha)
574{
575 size_t col = db_query_colnum(stmt, colname);
576 const u8 *raw;
577 size_t size = sizeof(struct sha256);
578 assert(db_column_bytes(stmt, col) == size);
579 raw = db_column_blob(stmt, col);
580 memcpy(sha, raw, size);
581}
582
583void db_col_sha256d(struct db_stmt *stmt, const char *colname,
584 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