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

Function db_col_secret

db/bindings.c:597–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void db_col_secret(struct db_stmt *stmt, const char *colname, struct secret *s)
598{
599 size_t col = db_query_colnum(stmt, colname);
600 const u8 *raw;
601 assert(db_column_bytes(stmt, col) == sizeof(struct secret));
602 raw = db_column_blob(stmt, col);
603 memcpy(s, raw, sizeof(struct secret));
604}
605
606struct secret *db_col_secret_arr(const tal_t *ctx,
607 struct db_stmt *stmt,

Callers

nothing calls this directly

Calls 3

db_query_colnumFunction · 0.85
db_column_bytesFunction · 0.85
db_column_blobFunction · 0.85

Tested by

no test coverage detected