]> Untitled Git - bdk/commit
Verify signatures after signing
authorScott Robinson <ssr@squareup.com>
Mon, 15 Aug 2022 05:07:14 +0000 (15:07 +1000)
committerScott Robinson <ssr@squareup.com>
Thu, 25 Aug 2022 06:29:44 +0000 (16:29 +1000)
commit7b1ad1b62914a26d6f445364ace4e784bb2901c2
tree5381b61f4145606955bbcdff69576c47219f04a3
parent9f9ffd0efd94f172bf28ca23477a4b13757ac4b0
Verify signatures after signing

As per [BIP-340, footnote 14][fn]:
> Verifying the signature before leaving the signer prevents random or
> attacker provoked computation errors. This prevents publishing invalid
> signatures which may leak information about the secret key. It is
> recommended, but can be omitted if the computation cost is prohibitive.

[fn]: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#cite_note-14
src/wallet/signer.rs