| 351 | } |
| 352 | |
| 353 | void db_col_pubkey(struct db_stmt *stmt, |
| 354 | const char *colname, |
| 355 | struct pubkey *dest) |
| 356 | { |
| 357 | size_t col = db_query_colnum(stmt, colname); |
| 358 | bool ok; |
| 359 | assert(db_column_bytes(stmt, col) == PUBKEY_CMPR_LEN); |
| 360 | ok = pubkey_from_der(db_column_blob(stmt, col), PUBKEY_CMPR_LEN, dest); |
| 361 | assert(ok); |
| 362 | } |
| 363 | |
| 364 | void db_col_scid(struct db_stmt *stmt, const char *colname, |
| 365 | struct short_channel_id *dest) |
no test coverage detected