.map_err(|e| Error::Generic(format!("Invalid NUMS key: {e}")))?;
let nums_point = PublicKey::from_x_only_public_key(nums_key, Parity::Even);
- let internal_key_point = nums_point
- .add_exp_tweak(&secp, &Scalar::from(r_secret))
- .map_err(|e| Error::Generic(format!("Failed to tweak NUMS key: {e}")))?;
+ let internal_key_point =
+ nums_point
+ .add_exp_tweak(&secp, &Scalar::from(r_secret))
+ .map_err(|e| Error::Generic(format!("Failed to tweak NUMS key: {e}")))?;
let (xonly_internal_key, _) = internal_key_point.x_only_public_key();
let tree = TapTree::Leaf(Arc::new(taproot_policy));
#[cfg(any(feature = "electrum", feature = "esplora"))]
use {bdk_wallet::KeychainKind, std::collections::HashSet, std::io::Write};
+#[cfg(any(feature = "electrum", feature = "esplora", feature = "rpc"))]
+use crate::utils::print_wallet_events;
#[cfg(any(
feature = "electrum",
feature = "esplora",
consensus::Decodable, hex::FromHex,
},
};
-#[cfg(any(feature = "electrum", feature = "esplora", feature = "rpc"))]
-use crate::utils::print_wallet_events;
#[cfg(any(
feature = "electrum",
feature = "esplora",
clap::Parser,
};
-#[cfg(any(
- feature = "electrum",
- feature = "esplora",
- feature = "rpc",
- feature = "cbf"
+#[cfg(all(
+ feature = "repl",
+ any(
+ feature = "electrum",
+ feature = "esplora",
+ feature = "rpc",
+ feature = "cbf"
+ )
))]
use crate::client::BlockchainClient;
#[cfg(feature = "repl")]
use bdk_kyoto::{Info, Receiver, UnboundedReceiver, Warning};
#[cfg(feature = "silent-payments")]
use bdk_sp::encoding::SilentPaymentCode;
+use bdk_wallet::bitcoin::{Address, Network, OutPoint, ScriptBuf};
#[cfg(any(
feature = "electrum",
feature = "esplora",
feature = "rpc"
))]
use bdk_wallet::{bitcoin::Psbt, event::WalletEvent};
-use bdk_wallet::bitcoin::{Address, Network, OutPoint, ScriptBuf};
use crate::commands::OfflineWalletSubCommand;
use std::{
OfflineWalletSubCommand::SignMessage(_) => true,
#[cfg(feature = "bip322")]
- OfflineWalletSubCommand::VerifyMessage(_) => false,
+ OfflineWalletSubCommand::VerifyMessage(_) => true,
#[cfg(feature = "silent-payments")]
- OfflineWalletSubCommand::CreateSpTx(_) => false,
+ OfflineWalletSubCommand::CreateSpTx(_) => true,
}
}