mirror of
https://github.com/lightning/bolts.git
synced 2025-02-20 13:34:43 +01:00
A note on the maximum size of Tagged Fields (#1042)
Make it more obvious to readers of bolt 11 that the maximum length of a Tagged Field is 639 bytes.
This commit is contained in:
parent
a0bbe47b02
commit
f7dcc32694
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,8 @@ Each Tagged Field is of the form:
|
|||
1. `data_length` (10 bits, big-endian)
|
||||
1. `data` (`data_length` x 5 bits)
|
||||
|
||||
Note that the maximum length of a Tagged Field's `data` is constricted by the maximum value of `data_length`. This is 1023 x 5 bits, or 639 bytes.
|
||||
|
||||
Currently defined tagged fields are:
|
||||
|
||||
* `p` (1): `data_length` 52. 256-bit SHA256 payment_hash. Preimage of this provides proof of payment.
|
||||
|
|
Loading…
Add table
Reference in a new issue