breez_sdk_liquid::lightning_125::offers::invoice

Trait SignBolt12InvoiceFn

pub trait SignBolt12InvoiceFn {
    // Required method
    fn sign_invoice(
        &self,
        message: &UnsignedBolt12Invoice,
    ) -> Result<Signature, ()>;
}
Expand description

A function for signing an UnsignedBolt12Invoice.

Required Methods§

fn sign_invoice(&self, message: &UnsignedBolt12Invoice) -> Result<Signature, ()>

Signs a TaggedHash computed over the merkle root of message’s TLV stream.

Implementors§