]> Untitled Git - bdk/commit
[signer] Add an option to explicitly allow using non-`ALL` sighashes
authorAlekos Filini <alekos.filini@gmail.com>
Wed, 26 May 2021 08:34:25 +0000 (10:34 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Wed, 26 May 2021 08:38:15 +0000 (10:38 +0200)
commit881ca8d1e37f6cf15e78b8578979ef5c68515943
tree70af2131b6fb2165f136c9f0822c67e1441704f7
parent5633475ce85485bada2072da4d793ca2b1af23cf
[signer] Add an option to explicitly allow using non-`ALL` sighashes

Instead of blindly using the `sighash_type` set in a psbt input, we
now only sign `SIGHASH_ALL` inputs by default, and require the user to
explicitly opt-in to using other sighashes if they desire to do so.

Fixes #350
CHANGELOG.md
src/psbt/mod.rs
src/wallet/mod.rs
src/wallet/signer.rs