The Wayback Machine - https://web.archive.org/web/20221222102051/https://github.com/lightningnetwork/paper
Skip to content

lightningnetwork/paper

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Lightning Network Paper

This is the Bitcoin Lightning Network paper.

Paper PDF: http://lightning.network/lightning-network-paper.pdf

#Compiling/Editing

Paper is in LaTeX format. Diagrams are in dia, but may remake the diagrams in inkscape for cleanliness.

Updating bibliography

If you're not familiar with latex, updating bibliography requires running:

pdflatex new.tex
bibtex new
pdflatex new.tex
pdflatex new.tex

Generating figures

requires dia

cd figures
python dia2pdf.py

Formatting

By default, there is a text width of 80 characters unless there is an explicit need to go longer.

If you want to do formatting of paragraphs, the vim settings are:

:set tw=80

If you want to reflow text, it's

<ESC>gqj

If you want to reflow an entire paragraph, it's

<ESC>gq}

There are a couple places where reflowing will break (primarily in figures where it's sensitive to linebreaks).