pub struct DerivationAdditions<K>(pub BTreeMap<K, u32>);
impl<K> DerivationAdditions<K> {
- /// Returns whether the additions are empty.
- pub fn is_empty(&self) -> bool {
- self.0.is_empty()
- }
-
/// Get the inner map of the keychain to its new derivation index.
pub fn as_inner(&self) -> &BTreeMap<K, u32> {
&self.0
self.0.append(&mut other.0);
}
+ /// Returns whether the additions are empty.
fn is_empty(&self) -> bool {
self.0.is_empty()
}
use bdk_chain::{
collections::BTreeMap,
keychain::{DerivationAdditions, KeychainTxOutIndex},
+ Append,
};
use bitcoin::{secp256k1::Secp256k1, OutPoint, Script, Transaction, TxOut};