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

Function db_col_sha256d

db/bindings.c:583–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void db_col_sha256d(struct db_stmt *stmt, const char *colname,
584 struct sha256_double *shad)
585{
586 size_t col = db_query_colnum(stmt, colname);
587 const u8 *raw;
588 size_t size = sizeof(struct sha256_double);
589 assert(db_column_bytes(stmt, col) == size);
590 raw = db_column_blob(stmt, col);
591 memcpy(shad, raw, size);
592}
593
594void db_col_secret(struct db_stmt *stmt, const char *colname, struct secret *s)
595{

Callers 4

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