pub trait InventoryWallet: Inventory {
    // Provided method
    fn pay(
        &mut self,
        invoice: RgbInvoice,
        psbt: &mut Psbt,
        method: CloseMethod
    ) -> Result<Bindle<Transfer>, PayError<Self::Error, <Self::Stash as Stash>::Error>>
       where Self::Error: From<<Self::Stash as Stash>::Error> { ... }
}

Provided Methods§

source

fn pay( &mut self, invoice: RgbInvoice, psbt: &mut Psbt, method: CloseMethod ) -> Result<Bindle<Transfer>, PayError<Self::Error, <Self::Stash as Stash>::Error>>
where Self::Error: From<<Self::Stash as Stash>::Error>,

Assumptions
  1. If PSBT output has BIP32 derivation information it belongs to our wallet - except when it matches address from the invoice.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I> InventoryWallet for I
where I: Inventory,