| 95 | } |
| 96 | |
| 97 | static u8 *stack_key(const tal_t *ctx, const struct pubkey *key) |
| 98 | { |
| 99 | u8 der[PUBKEY_CMPR_LEN]; |
| 100 | pubkey_to_der(der, key); |
| 101 | |
| 102 | return tal_dup_arr(ctx, u8, der, sizeof(der), 0); |
| 103 | } |
| 104 | |
| 105 | /* Bitcoin wants DER encoding. */ |
| 106 | static u8 *stack_sig(const tal_t *ctx, const struct bitcoin_signature *sig) |
no test coverage detected