1
0
Fork 0
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:
Jonathan Underwood 2020-02-27 17:32:09 +09:00 committed by GitHub
parent dcbf858397
commit 9a3a0a47f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.