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

Function db_col_sha256d

db/bindings.c:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void db_col_sha256d(struct db_stmt *stmt, const char *colname,
504 struct sha256_double *shad)
505{
506 size_t col = db_query_colnum(stmt, colname);
507 const u8 *raw;
508 size_t size = sizeof(struct sha256_double);
509 assert(db_column_bytes(stmt, col) == size);
510 raw = db_column_blob(stmt, col);
511 memcpy(shad, raw, size);
512}
513
514void db_col_secret(struct db_stmt *stmt, const char *colname, struct secret *s)
515{

Callers 3

wallet_stmt2channelFunction · 0.85
wallet_sanity_checkFunction · 0.85
db_col_txidFunction · 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