| 106 | } |
| 107 | |
| 108 | static u8 *stack_key(const tal_t *ctx, const struct pubkey *key) |
| 109 | { |
| 110 | u8 der[PUBKEY_CMPR_LEN]; |
| 111 | pubkey_to_der(der, key); |
| 112 | |
| 113 | return tal_dup_arr(ctx, u8, der, sizeof(der), 0); |
| 114 | } |
| 115 | |
| 116 | /* Bitcoin wants DER encoding. */ |
| 117 | static u8 *stack_sig(const tal_t *ctx, const struct bitcoin_signature *sig) |
no test coverage detected