Skip to content

Commit

Permalink
fixup! Keysend bLIP
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Aug 17, 2021
1 parent 2ce13ef commit 4ea1653
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions blips/blip-0002.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ Sender:
* MUST include a TLV record keyed by type `5482373484` with a TLV value of a
randomly generated and cryptographically-secure 32-byte value that serves as
the HTLC payment preimage
* MUST NOT set a `payment_data` field
* MUST NOT set a `payment_data` field in the onion routing packet's TLV payload
* SHOULD only send payments to nodes advertising feature bit 55
Receiver:
* if failing the payment due to not wanting to accept keysend payments, SHOULD
error with `PERM|15 incorrect_or_unknown_payment_details`.
* MUST advertise feature bit 55 in the node context only
* MUST reject the keysend if the preimage does not match the payment hash
* MUST reject the keysend if a `payment_data` field is present
* MUST reject the keysend if a `payment_data` field is present in the onion
routing packet's TLV payload
Note that because of the lack of a payment secret, basic MPP payments are not
supported with keysend.
Expand Down Expand Up @@ -103,4 +104,5 @@ implementation (e.g. the choice of `5482373484` for the TLV type).

LDK: https://github.com/rust-bitcoin/rust-lightning/pull/967
C-Lightning: https://github.com/ElementsProject/lightning/blob/master/plugins/keysend.c
`lnd` original keysend PR: https://github.com/lightningnetwork/lnd/pull/3795
`lnd` original keysend PR: https://github.com/lightningnetwork/lnd/pull/3795
Eclair: https://github.com/ACINQ/eclair/pull/1485

0 comments on commit 4ea1653

Please sign in to comment.