1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00
BOLT: Basis of Lightning Technology (Lightning Network Specifications)
Go to file
Bastien Teinturier 6ac177f95c
Bolt 1: Specify that extensions to existing messages must use TLV (#714)
The spec already prepared a hook to add additional information to existing
messages (additional bytes at the end of a message must be ignored).

Since we're using TLV in many places, it makes sense to use that optional
additional space at the end of each message to allow an optional tlv stream.

This requires making a few previously optional fields mandatory:

- channel_reestablish commitment points: it makes sense to always include those
  regardless of whether `option_dataloss_protect` or `option_static_remotekey` are set.
- option_upfront_shutdown_script: if you're not using one, just set the length to 0.
  That field is moved to a TLV record because luckily, the resulting bytes are the same.
  This provides more flexibility to later remove the requirement of making this field mandatory.

No need to change the `channel_update`'s `htlc_maximum_msat` because
the `message_flags` encode its presence/absence.
It can still be either included or omitted without causing issues to the extension stream.
2020-02-28 10:25:44 +01:00
bolt04 bolt04: minor JSON fix and generate the exact number of bytes for the padding 2020-01-24 18:17:10 +01:00
bolt07 Add test vector for extended queries 2019-09-16 22:36:59 +02:00
tools tools/extract-formats.py: allow '.' in length fields. 2019-08-06 00:18:49 +00:00
.aspell.en.pws Clarify numerical comparison of pubkeys (#743) 2020-02-18 09:53:12 +01:00
.copy-edit-stylesheet-checklist.md Fix typos 2019-09-26 06:12:41 +00:00
.travis.yml spelling: check all the .md files 2019-07-28 07:03:19 +00:00
00-introduction.md Bolt 00: Added Internal Links to Glossary (#637) 2019-07-15 10:01:15 +02:00
01-messaging.md Bolt 1: Specify that extensions to existing messages must use TLV (#714) 2020-02-28 10:25:44 +01:00
02-peer-protocol.md Bolt 1: Specify that extensions to existing messages must use TLV (#714) 2020-02-28 10:25:44 +01:00
03-transactions.md Clarify numerical comparison of pubkeys (#743) 2020-02-18 09:53:12 +01:00
04-onion-routing.md Keep hmac case consistent (#547) 2020-02-18 09:51:57 +01:00
05-onchain.md f'BOLT5: Unify two practically redundant paragraphs' 2019-05-21 22:18:14 +02:00
07-routing-gossip.md Clarify numerical comparison of pubkeys (#743) 2020-02-18 09:53:12 +01:00
08-transport.md Remove reference to DER encoding for public keys in compressed format (#742) 2020-02-17 11:00:30 +01:00
09-features.md Single-option large channel proposal (#596) 2020-02-18 09:21:22 +01:00
10-dns-bootstrap.md BOLT 10 copy edit (#440) 2018-08-07 00:10:11 +00:00
11-payment-encoding.md [Bolt11] Clarify when payment secret should be included (#747) 2020-02-27 09:32:08 +01:00
CONTRIBUTING.md CONTRIBUTING.md: first draft of how to write and change spec. 2019-07-28 07:03:19 +00:00
README.md Fix formatting of BOLT links 2018-01-22 14:02:01 +01:00

Lightning Network In-Progress Specifications

The specifications are currently a work-in-progress and currently being drafted.

Pull requests and comments welcome, seeking input from community stakeholders.

Discussion available on the lighting-dev mailing list.

Start here for Table of Contents

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.