mirror of
https://github.com/lightning/bolts.git
synced 2025-02-22 14:22:46 +01:00
[Bolt11] Clarify when payment secret should be included (#747)
Payment secret must be included if and only if the corresponding feature bit is set.
This commit is contained in:
parent
dcbf858397
commit
9a3a0a47f1
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ Currently defined tagged fields are:
|
|||
### Requirements
|
||||
|
||||
A writer:
|
||||
- MUST include exactly one `p` and `s` fields.
|
||||
- MUST include exactly one `p` field.
|
||||
- If the `payment_secret` feature is set, MUST include exactly one `s` field.
|
||||
- MUST set `payment_hash` to the SHA2 256-bit hash of the `payment_preimage`
|
||||
that will be given in return for payment.
|
||||
- MUST include either exactly one `d` or exactly one `h` field.
|
||||
|
|
Loading…
Add table
Reference in a new issue