| 113 | } |
| 114 | |
| 115 | void towire_pubkey(u8 **pptr, const struct pubkey *pubkey) |
| 116 | { |
| 117 | u8 output[PUBKEY_CMPR_LEN]; |
| 118 | size_t outputlen = sizeof(output); |
| 119 | |
| 120 | secp256k1_ec_pubkey_serialize(secp256k1_ctx, output, &outputlen, |
| 121 | &pubkey->pubkey, |
| 122 | SECP256K1_EC_COMPRESSED); |
| 123 | |
| 124 | towire(pptr, output, outputlen); |
| 125 | } |
no test coverage detected