| 73 | } |
| 74 | |
| 75 | static char *sig_notation(const struct privkey *privkey, |
| 76 | struct sha256_double *hash, |
| 77 | const secp256k1_ecdsa_signature *sig) |
| 78 | { |
| 79 | const char *pstr = tal_hexstr(NULL, privkey->secret.data, |
| 80 | sizeof(privkey->secret.data)); |
| 81 | const char *hstr = |
| 82 | type_to_string(NULL, struct sha256_double, hash); |
| 83 | |
| 84 | if (verbose) |
| 85 | return tal_fmt(NULL, |
| 86 | "SIG(%s:%s)\n" |
| 87 | " -- privkey= %s\n" |
| 88 | " -- tx_hash= %s\n" |
| 89 | " -- computed_sig= %s", |
| 90 | pstr, hstr, pstr, hstr, sig_as_hex(sig)); |
| 91 | |
| 92 | return tal_fmt(NULL, "SIG(%s:%s)", pstr, hstr); |
| 93 | } |
| 94 | |
| 95 | /* BOLT #7: |
| 96 | * |
no test coverage detected