| 111 | } |
| 112 | |
| 113 | void db_bind_secret_arr(struct db_stmt *stmt, int col, const struct secret *s) |
| 114 | { |
| 115 | size_t num = tal_count(s), elsize = sizeof(s->data); |
| 116 | u8 *ser = tal_arr(stmt, u8, num * elsize); |
| 117 | |
| 118 | for (size_t i = 0; i < num; ++i) |
| 119 | memcpy(ser + i * elsize, &s[i], elsize); |
| 120 | |
| 121 | db_bind_blob(stmt, col, ser, tal_count(ser)); |
| 122 | } |
| 123 | |
| 124 | void db_bind_txid(struct db_stmt *stmt, int pos, const struct bitcoin_txid *t) |
| 125 | { |
no test coverage detected