breez_sdk_spark/signer/cpfp.rs
1use crate::error::SignerError;
2
3/// Signer for external UTXO inputs in CPFP fee-bumping transactions.
4///
5/// Signs the non-finalized inputs of a PSBT (serialized as bytes) and returns the
6/// signed PSBT (also serialized as bytes).
7#[cfg_attr(feature = "uniffi", uniffi::export(with_foreign))]
8#[macros::async_trait]
9pub trait CpfpSigner: Send + Sync {
10 async fn sign_psbt(&self, psbt_bytes: Vec<u8>) -> Result<Vec<u8>, SignerError>;
11}