]> Untitled Git - bdk/commit
fix(wallet): use efficient peek address logic
author志宇 <hello@evanlinjin.me>
Sat, 13 Jan 2024 12:38:11 +0000 (20:38 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 17 Jan 2024 03:17:25 +0000 (11:17 +0800)
commitb74c2e262255a39e9dc904aad469e307bf7d0151
tree2be24af8380f0b19b520a95e8763e6230f9928a5
parent81aeaba48a980a7e7add76ac2d24e896bedaa1d2
fix(wallet): use efficient peek address logic

Changes the peek address logic to use the optimized `Iterator::nth`
implementation of `SpkIterator`.

Additionally, docs are added for panics that will occur when the caller
requests for addresses with out-of-bound derivation indices (BIP32).
crates/bdk/src/wallet/mod.rs