Docs on transfer operations

This commit is contained in:
Dave Hrycyszyn
2024-07-29 10:41:28 +01:00
parent 6b55b0d0a4
commit 82e8612b38
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ use crate::bitcoin::client::BitcoinClient;
use crate::bitcoin::driver;
use bdk::wallet::AddressIndex;
/// Run the simplest transfer flow. There is no policy file,
/// it's just a normal bitcoin transaction for a sanity check.
pub async fn run() -> Result<(), anyhow::Error> {
let (mut dave, sammy) = driver::setup().await?;

View File

@@ -4,6 +4,9 @@ use bdk::miniscript::policy;
use crate::bitcoin;
/// A miniscript-based simple transfer, equivalent to the `simple_transfer`
/// but using a Bitcoin miniscript policy. TODO: finish implementation, it's not
/// working yet.
pub(crate) async fn run() -> anyhow::Result<()> {
let (dave, _sammy) = bitcoin::driver::setup().await?;