BDK v1.0.0-alpha.4: Improved KeychainTxOutIndex API & Fixes
The BDK libraries aims to provide well engineered and reviewed components for Bitcoin based applications. The Bitcoin Dev Kit developers are in the process of releasing a v1.0 which is a fundamental re-write of how the library works.
- "BDK 1.00-alpha.4 is out"
- "This bi-weekly alpha release fixes a chain module performance issue, revamps the KeychainTxOutIndex API to be safer, and moves the hardwaresigner module into it's own crate. We are getting very close to a beta."
What's new
Fixed
- Avoid using
BTreeMap::append
due to performance issues (refer to rust-lang/rust#34666 (comment)). #1274
Changed
- The old
hardwaresigner
module has been moved out ofbdk
and inside a newbdk_hwi
crate. #1161 - Wallet's peek-address logic is optimized by making use of
<SpkIterator as Iterator>::nth
. #1269 KeychainTxOutIndex
API is refactored to better differentiate between methods that return unbounded vs stored spks. #1269KeychainTxOutIndex
no longer directly exposesSpkTxOutIndex
methods viaDeRef
. This was problematic becauseSpkTxOutIndex
also contains lookahead spks which we want to hide. #1269
Added
- LocalChain::disconnect_from method to evict a chain of blocks starting from a given BlockId. #1276
SpkIterator::descriptor
method which gets a reference to the internal descriptor. #1269
New Contributors
- @ValuedMammal made their first contribution in #1264
Full Changelog: v1.0.0-alpha.3...v1.0.0-alpha.4