Renaming external_public_key to public_key
This commit is contained in:
@@ -15,7 +15,7 @@ pub struct BitcoinClient {
|
||||
pub(crate) blockchain: bdk::blockchain::EsploraBlockchain,
|
||||
name: String,
|
||||
pub(crate) wallet: Wallet<MemoryDatabase>,
|
||||
pub(crate) external_public_key: PublicKey,
|
||||
pub(crate) public_key: PublicKey,
|
||||
}
|
||||
|
||||
impl BitcoinClient {
|
||||
@@ -106,7 +106,7 @@ impl BitcoinClient {
|
||||
name: name.to_string(),
|
||||
wallet,
|
||||
blockchain,
|
||||
external_public_key,
|
||||
public_key: external_public_key,
|
||||
};
|
||||
|
||||
Ok(esplora)
|
||||
|
||||
@@ -12,7 +12,7 @@ pub(crate) async fn run() -> anyhow::Result<()> {
|
||||
|
||||
tracing::info!("starting transfer policy flow");
|
||||
|
||||
let policy_str = format!("pk2wsh({:?})", dave.external_public_key);
|
||||
let policy_str = format!("pk2wsh({:?})", dave.public_key);
|
||||
|
||||
let policy = policy::Concrete::<bdk::bitcoin::PublicKey>::from_str(&policy_str)
|
||||
.expect("policy compilation failed")
|
||||
|
||||
Reference in New Issue
Block a user