pub fn create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref>(
    channelmanager: &ChannelManager<M, T, ES, NS, SP, F, R, L>,
    node_signer: NS,
    logger: L,
    network: Currency,
    amt_msat: Option<u64>,
    description: String,
    duration_since_epoch: Duration,
    invoice_expiry_delta_secs: u32,
    payment_hash: PaymentHash,
    min_final_cltv_expiry_delta: Option<u16>
) -> Result<Bolt11Invoice, SignOrCreationError<()>>
Expand description

See create_invoice_from_channelmanager_and_duration_since_epoch This version allows for providing a custom PaymentHash for the invoice. This may be useful if you’re building an on-chain swap or involving another protocol where the payment hash is also involved outside the scope of lightning.