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::appenddue to performance issues (refer to rust-lang/rust#34666 (comment)). #1274
Changed
- The old
hardwaresignermodule has been moved out ofbdkand inside a newbdk_hwicrate. #1161 - Wallet's peek-address logic is optimized by making use of
<SpkIterator as Iterator>::nth. #1269 KeychainTxOutIndexAPI is refactored to better differentiate between methods that return unbounded vs stored spks. #1269KeychainTxOutIndexno longer directly exposesSpkTxOutIndexmethods viaDeRef. This was problematic becauseSpkTxOutIndexalso 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::descriptormethod 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