| 178 | } |
| 179 | |
| 180 | void db_bind_signature(struct db_stmt *stmt, int col, |
| 181 | const secp256k1_ecdsa_signature *sig) |
| 182 | { |
| 183 | u8 *buf = tal_arr(stmt, u8, 64); |
| 184 | int ret = secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx, |
| 185 | buf, sig); |
| 186 | assert(ret == 1); |
| 187 | db_bind_blob(stmt, col, buf, 64); |
| 188 | } |
| 189 | |
| 190 | void db_bind_timeabs(struct db_stmt *stmt, int col, struct timeabs t) |
| 191 | { |
no test coverage detected