Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin/rust-bitcoin#989: Add method to push an ECDSA sig …
…+ sighash type byte on a witness 0ab5eea Add method to push an ECDSA sig + sighash type byte on a witness (Matt Corallo) Pull request description: We do this all over the place in rust-lightning, and its probably the most common thing to do with a `Witness` so I figured I'd upstream the util method to do this. It also avoids an allocation compared to the naive approach of `SerializedSignature.to_vec()` with two pushes, which is nice. ACKs for top commit: apoelstra: ACK 0ab5eea tcharding: ACK 0ab5eea dunxen: ACK 0ab5eea Tree-SHA512: d4042eb3f2bc7e6beecd2c17eaeef1fdb7d096b8889a3709924734739557031f338525b685d32ac0dc26404afefd4f2d48defd1753ea8935e54e3a82987feb8c
- Loading branch information