1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 10:00:04 +01:00
BOLT: Basis of Lightning Technology (Lightning Network Specifications)
Go to file
Bastien Teinturier db92932a9f
BOLT 04: Add failure code for invalid payload. (#627)
The specification currently doesn't specify the case where the onion per-hop
payload can't be correctly decoded.

This is somewhat fine with the fixed frames because every field of the payload
can always be interpreted as a numeric value from the input bytes, so it leads
to application errors in upper layers when those values are actually
interpreted (and we realize that for instance we have an invalid
short_channel_id` value).

With variable-length tlv streams in the onion payloads, we will encounter
decoding errors (duplicate tlv types, invalid ordering, etc) and the spec
should define the failure code to use in that case.
2019-09-03 06:54:13 +00:00
bolt04 bolt04: Remove in-spec test vector in favor of JSON test vector 2019-07-26 11:38:33 +02:00
tools tools/extract-formats.py: allow '.' in length fields. 2019-08-06 00:18:49 +00:00
.aspell.en.pws spelling: check all the .md files 2019-07-28 07:03:19 +00:00
.copy-edit-stylesheet-checklist.md clarify purpose of stylesheet; add instructions for executing spellchecker.sh 2019-01-07 19:34:58 +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: Add test vectors. 2019-07-22 23:27:13 +00:00
02-peer-protocol.md BOLT 3: Explicit description of implicitly enforced timelocks on HTLC outputs (#601) 2019-08-19 21:52:09 +00:00
03-transactions.md BOLT 3: Explicit description of implicitly enforced timelocks on HTLC outputs (#601) 2019-08-19 21:52:09 +00:00
04-onion-routing.md BOLT 04: Add failure code for invalid payload. (#627) 2019-09-03 06:54:13 +00:00
05-onchain.md f'BOLT5: Unify two practically redundant paragraphs' 2019-05-21 22:18:14 +02:00
07-routing-gossip.md BOLT7: channel_update after exchange funding_locked (#657) 2019-09-02 20:09:59 +00:00
08-transport.md BOLT08: define e and s within the context of the noise handshake 2019-04-30 20:00:26 -07:00
09-features.md Bolt 04: fix a few left-over spelling / clean-up nits (#653) 2019-07-31 07:21:38 +00:00
10-dns-bootstrap.md BOLT 10 copy edit (#440) 2018-08-07 00:10:11 +00:00
11-payment-encoding.md fixup! BOLT 11: Add test vectors for feature bitfield. 2019-09-03 01:00:47 +00: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.