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

Function db_col_sha256d

db/bindings.c:586–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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