fedimint_lightning::ldk

Function get_preimage_and_payment_hash

Source
fn get_preimage_and_payment_hash(
    kind: &PaymentKind,
) -> (Option<Preimage>, Option<Hash>)
Expand description

Maps LDK’s PaymentKind to an optional preimage and an optional payment hash depending on the type of payment.