Peer protocol doesn't want sighash flags. */
| 1075 | |
| 1076 | /* Peer protocol doesn't want sighash flags. */ |
| 1077 | static secp256k1_ecdsa_signature *raw_sigs(const tal_t *ctx, |
| 1078 | const struct bitcoin_signature *sigs) |
| 1079 | { |
| 1080 | secp256k1_ecdsa_signature *raw; |
| 1081 | |
| 1082 | raw = tal_arr(ctx, secp256k1_ecdsa_signature, tal_count(sigs)); |
| 1083 | for (size_t i = 0; i < tal_count(sigs); i++) |
| 1084 | raw[i] = sigs[i].s; |
| 1085 | return raw; |
| 1086 | } |
| 1087 | |
| 1088 | static struct bitcoin_signature *unraw_sigs(const tal_t *ctx, |
| 1089 | const secp256k1_ecdsa_signature *raw, |