Skip to content

3.2.1

Latest

Choose a tag to compare

@bitcoindevkit-release-plz bitcoindevkit-release-plz released this 23 Nov 18:49
· 68 commits to master since this release
1e3fedf

Added

  • Add WalletEvent::TxRejected and TxRejectedReason to report unconfirmed transactions that were not applied because their wallet-owned inputs failed signature verification #660

Changed

  • Raise the miniscript dependency to 12.3.8, fixing KeyMapWrapper signing with account-level xprvs #620

Fixed

  • Verify the signatures of wallet-owned inputs before accepting unconfirmed transactions in Wallet::apply_update and Wallet::apply_unconfirmed_txs, dropping invalid ones, and refuse to bump or replace them in Wallet::build_fee_bump and Wallet::replace_by_fee with BuildFeeBumpError::IrreplaceableTransaction or ReplaceByFeeError::InvalidSignature. This protects against forged transactions from a malicious chain source. Taproot spends with foreign inputs require those prevouts to be verifiable unless signed with SIGHASH_ANYONECANPAY; Electrum users should sync with fetch_prev_txouts = true #660
  • Fix Wallet::mark_used and Wallet::unmark_used doing nothing on single-descriptor wallets when passed KeychainKind::Internal #648
  • Fix signing PSBTs that mix taproot and non-taproot inputs: taproot amounts are verified against the parent transaction stored in the wallet, and input amounts are verified when SIGHASH_ANYONECANPAY is used #643
  • Fix Wallet::build_fee_bump panicking when a legacy foreign input's parent transaction is unknown; it now returns BuildFeeBumpError::TransactionNotFound #636
  • Fix TxBuilder::add_foreign_utxo to overwrite witness_utxo with the prevout from non_witness_utxo, and fail signing with SignerError::InvalidNonWitnessUtxo when the two disagree #636
  • Validate the hardenedness of wildcard derivation steps when signing with an xprv signer #629
  • Reject a missing taproot witness_utxo before signing, instead of returning an error after earlier inputs were already signed #651