| 214 | } |
| 215 | |
| 216 | static char *sig_as_hex(const struct bitcoin_signature *sig) |
| 217 | { |
| 218 | u8 compact_sig[64]; |
| 219 | |
| 220 | secp256k1_ecdsa_signature_serialize_compact(secp256k1_ctx, |
| 221 | compact_sig, |
| 222 | &sig->s); |
| 223 | return tal_hexstr(NULL, compact_sig, sizeof(compact_sig)); |
| 224 | } |
| 225 | |
| 226 | |
| 227 | static char *sig_notation(const struct sha256_double *hash, |
no test coverage detected