| 202 | } |
| 203 | |
| 204 | void db_bind_signature(struct db_stmt *stmt, |
| 205 | const secp256k1_ecdsa_signature *sig) |
| 206 | { |
| 207 | u8 *buf = tal_arr(stmt, u8, 64); |
| 208 | int ret = secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx, |
| 209 | buf, sig); |
| 210 | assert(ret == 1); |
| 211 | db_bind_blob(stmt, buf, 64); |
| 212 | } |
| 213 | |
| 214 | void db_bind_timeabs(struct db_stmt *stmt, struct timeabs t) |
| 215 | { |
no test coverage detected