]> Untitled Git - bdk/commit
Attach a context to our software signers
authorAlekos Filini <alekos.filini@gmail.com>
Thu, 12 May 2022 15:28:41 +0000 (17:28 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Fri, 27 May 2022 09:48:50 +0000 (11:48 +0200)
commit1312184ed7a9c5c7a6f99cf8bb08d43775ba5083
treefe71bfb58ddd0e6a30fbf179e9597032e0e05203
parent906598ad9254643a204df7711693dcc0a73a0332
Attach a context to our software signers

This allows the signer to know the signing context precisely without
relying on heuristics on the psbt fields.

Due to the context being static, we still have to look at the PSBT when
producing taproot signatures to determine the set of leaf hashes that
the key can sign for.
src/descriptor/policy.rs
src/wallet/mod.rs
src/wallet/signer.rs