Renaming external_public_key to public_key

This commit is contained in:
Dave Hrycyszyn
2024-07-29 11:00:31 +01:00
parent 192d0c3da2
commit ebe5283ed2
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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")