pub fn create_from_hash(
    keys: &ExpandedKey,
    min_value_msat: Option<u64>,
    payment_hash: PaymentHash,
    invoice_expiry_delta_secs: u32,
    current_time: u64
) -> Result<PaymentSecret, ()>
Expand description

Equivalent to crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash, but no ChannelManager is required. Useful for generating invoices for phantom node payments without a ChannelManager.

See create for information on the keys and current_time parameters.