]> Untitled Git - bdk/tag
v1.0.0-alpha.13
object 05438017876c3338d091ca85e52242b455e2193a
authorSteve Myers <steve@notmandatory.org>
Sat, 15 Jun 2024 02:49:35 +0000 (21:49 -0500)
Release 1.0.0-alpha.13

Summary

This is release includes major changes required to finalize the bdk_wallet 1.0.0 APIs, including: upgrading to rust-bitcoin 0.32 and rust-miniscript 0.12.0, constructing a Wallet now requires two descriptors (external and internal), the db field was removed from Wallet, staged changes can be persisted via a blocking or async data store.

Changelog

Fixed

*  Fix KeychainTxOutIndex range-based methods. #1463

Changed

- Upgrade rust bitcoin to 0.32.0, miniscript to 0.12.0. #1448
  - Use compute_txid() instead of deprecated txid().
  - Use minimal_non_dust() instead of dust_value().
  - Use signature and sighash_type fields, instead of previous sig and hash_type.
  - Use sighash::P2wpkhError, and sighash::TaprootError instead of older sighash::Error.
  - Converts from Network to NetworkKind, where expected.
  - Converts from Weight type to current used usize.
  - Use .into() to convert from AbsLockTime and RelLockTime to absolute::LockTime and relative::LockTime.
  - Remove use of deprecated ThirtyTwoByteHash trait, use Message::from_digest().
  - Update the miniscript policy and dsl macros to proper expect and handle new Threshold type, instead of the previous two parameters.
- Add further bitcoin::Amount usage on public APIs. #1426
  - Updated CreateTxError::FeeTooLow to use bitcoin::Amount.
  - Updated Wallet::calculate_fee(). to use bitcoin::Amount
  - Updated TxBuilder::fee_absolute(). to use bitcoin::Amount.
  - Updated CalculateFeeError::NegativeFee to use bitcoin::SignedAmount.
  - Updated TxGraph::calculate_fee(). to use bitcoin::Amount.
  - Updated PsbUtils::fee_amount() to use bitcoin::Amount.
-  Wallet::get_balance() renamed to Wallet::balance(). #1455
- Constructing a Wallet now requires two distinct descriptors. #1390
- Removed duplicated `InsufficientFunds` error member. #1441
- Refactor wallet and persist mods, remove bdk_persist crate. #1454 and #1473
  - Removed `db` from `Wallet`, users are now responsible for persisting changes, see docs and examples.
  - Removed the `bdk_persist` crate.
  - Remove persist submodule from bdk_chain.
  - Change Wallet to outsource it's persistence logic by introducing Wallet::take_staged.
  - Add take convenience method to Append trait.
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE2f+QEL4Wm2TT7cv5gQWkayLC0FEFAmZtAbMACgkQgQWkayLC
0FFxfBAAsQsDSAi+dfsJbJETxh/t2godnJQosWvXMgBEKJcaqmaH33pt3Yjz2hGF
jC6BBFrOztVXX0pOgzSPpszKSr5Qn2t3OkkvgEVvd3IWqoRw38BVfhOgpeUzOJNt
I3O9HI1Xs/EAjH0XZZBMeNh9uBsFMG6SLDbBCmrNLrkVr2UQphDEepRsLg9AzC23
fUA2dxNAQv4CuNuibk6GEJ55zkvQ9jtHbTiobkgxl2wzy64w1p2KKf9R8O5+5Dov
LmcKvjZyvQvIzkNLO3wbhQXrxjliC7sLLx7ceagJWjZU5pFFhkIb0aOdy7sWGjg9
OUbV5kcgB29YiCNuilnyaKHy9ozoCw6LVZxUV/nxjLRRz8Xu08wM2FR+VvSkRc0x
imCzPrYc5M3BrxTqdm/kZIuJJn8aEMBL02sd+2bKduI0s9/IpNsbStz/i8E9hsSb
NGwvtb85Ty3PcsXtduSIS1XR3HSshoTZ7Lznc88yaL4fsXhK3hMabxlLYWhQ4a8q
bhHsyszR1QYsfCkmO3e813tWnB8LLAt0ooWRFiskNs6A27IhAEvAV8fCINJ0svXf
J3dsg07AVulOVj0lv+vZVwChGIFsbRIfjvPQYzYyqnifMh106byKZTViqzm7iBz3
RumIG+BzRXICxR2SRUS6gw3XF5pmkzDnRqcCvsjFIe3zyQ/3WdE=
=6ggS
-----END PGP SIGNATURE-----
-----BEGIN OPENTIMESTAMPS GIT TIMESTAMP-----

AQHwIPhNGl2qUL5vtf+iODjda9hRGQUbbGwYRA5Buoy/uHcWCP/wEBRQOGcNMg9w
wYEEeRSnRqQI8QRmbQG08AgAgFeokD6poACD3+MNLvkMjiwraHR0cHM6Ly9ib2Iu
YnRjLmNhbGVuZGFyLm9wZW50aW1lc3RhbXBzLm9yZ//wED5Ngl64AicwUs0++CWl
OXU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