Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible confusion in the installation guide #57

Open
wants to merge 159 commits into
base: wip
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
02865ee
tutorial02: Code complete
MaxFangX Jul 4, 2017
13d2a9a
tutorial01: Fix errors, complete
MaxFangX Jul 4, 2017
3f84d96
install + tutorial home page: Fix errors, complete
MaxFangX Jul 4, 2017
64cd728
README: Update deploy instructions
MaxFangX Jul 6, 2017
e8868c7
tutorial03: Code complete
MaxFangX Jul 6, 2017
7fc12cf
tutorial04: Code complete
MaxFangX Jul 11, 2017
2ed8740
tutorial and install: small fixes
MaxFangX Jul 13, 2017
eb3da39
install: Add GOPATH/bin example
MaxFangX Jul 14, 2017
9e42575
config: change email
MaxFangX Jul 19, 2017
f35aee1
site: Make it more presentable, remove easter eggs
MaxFangX Jul 19, 2017
61b1642
style: apply a subtle sitewide theme
MaxFangX Jul 19, 2017
cd6a7ec
site: Temporarily remove link to API docs
MaxFangX Jul 19, 2017
f568182
tutorial02: Update installation instructions
MaxFangX Jul 19, 2017
d8eb9e4
resources: commit completed page with updated suggestions
MaxFangX Jul 22, 2017
2c65045
home: Add link to community Slack
MaxFangX Jul 22, 2017
f24f87e
resources: add video, transcript, and slides for Scaling Bitcoin Mila…
MaxFangX Jul 22, 2017
cec768f
config: change hostname
MaxFangX Jul 24, 2017
904b640
style: consolidate stylesheets, apply dkpurple header & footer
MaxFangX Jul 24, 2017
071b197
home: Restructure homepage
MaxFangX Jul 24, 2017
1c508f9
config: Add author field to avoid duplicate site title in footer
MaxFangX Jul 24, 2017
21a4694
resources: move blog to intermediate
MaxFangX Jul 26, 2017
503de12
multi: Add links to lnd everywhere
MaxFangX Jul 26, 2017
d3230b9
style: Remove the Ubuntu font for the site title
MaxFangX Jul 29, 2017
f26a5de
script: Add script for updating and rendering
MaxFangX Aug 1, 2017
2de1368
readme: add instructions for generating documentation
MaxFangX Aug 1, 2017
36229b0
script+templates: full script+templates to render Jekyll guides
MaxFangX Aug 1, 2017
d130bf1
docs: Add default javascript and Python gRPC guides
MaxFangX Aug 1, 2017
3d0e8c6
site: Update all links to include new /guides/ namespace
MaxFangX Aug 1, 2017
a3729d3
script: Pull docker guide from Github
MaxFangX Aug 1, 2017
2cdff7b
site+docs: Update docker guide + fix links to it
MaxFangX Aug 1, 2017
e9907b7
templates: split out footer into separate file
MaxFangX Aug 2, 2017
18223db
config: exclude templates dir
MaxFangX Aug 3, 2017
bca2e8c
docs: Update guides
MaxFangX Aug 3, 2017
aed08ed
docs: Remove num_confs from tutorial
MaxFangX Aug 3, 2017
0c62e7a
docs: update javascript and python guides
MaxFangX Aug 3, 2017
011108c
site: Add guides page and link to new guides
MaxFangX Aug 4, 2017
281110a
Update github link to avoid cutoff
MaxFangX Aug 4, 2017
01deec5
config: Update deploy instructions
MaxFangX Aug 4, 2017
2574a65
styles: Change fonts back to default Helvetica Neue
MaxFangX Aug 7, 2017
1a63e2c
site: Add links to API docs and community blog
MaxFangX Aug 7, 2017
a32f566
config: Clean up unused s3 config
MaxFangX Aug 8, 2017
e584acc
update: Add current most up to date sources
MaxFangX Aug 8, 2017
9994f12
readme: Add overview section, remove old s3 information
MaxFangX Aug 8, 2017
a741624
resources: Fix typos
MaxFangX Aug 8, 2017
f9aeb71
overview: Introduction and Lightning Network Summary
MaxFangX Aug 8, 2017
0a7b16a
Move tutorial home page to tutorial directory
MaxFangX Aug 8, 2017
1cce52a
overview: Edit Lightning Network Summary
MaxFangX Aug 9, 2017
db1dddd
guides: State example gRPC assumptions, recommend GOPATH in .bashrc
MaxFangX Aug 9, 2017
83b5132
overview: Completed Payment Channels and Multihop Payments sections
MaxFangX Aug 10, 2017
91497b2
overview: completed network topology section
MaxFangX Aug 10, 2017
0e87240
installation: Skip running lnd if prepping for guide
MaxFangX Aug 10, 2017
819c3ae
overview: Complete Integration Guidelines, Components, Channel and Pa…
MaxFangX Aug 11, 2017
459c51f
Make paragraphs breaks more distinguishable sitewide
MaxFangX Aug 11, 2017
cc1e4ce
site: Add links to the overview page from everywhere
MaxFangX Aug 11, 2017
93a00d8
overview: Add table of contents and images
MaxFangX Aug 12, 2017
59ce9be
tutorial: Fix small errors
MaxFangX Aug 12, 2017
aa3b182
guides+tutorial: Update to include gRPC instructions for TLS
MaxFangX Aug 12, 2017
6c743fd
header: Add dropdown menu for guides
MaxFangX Aug 12, 2017
1a81a3e
site: Remove duplicate home link
MaxFangX Aug 12, 2017
e742330
site: Reorder homepage, fix typos
MaxFangX Aug 14, 2017
6ea1f20
site: Update Slack invite link
MaxFangX Aug 21, 2017
868bcc3
homepage: Fix link to LND repo
MaxFangX Aug 23, 2017
0f9f885
Swap "off chain" for on-chain
jamesob Aug 24, 2017
f51e9c2
Merge pull request #1 from jamesob/master
MaxFangX Aug 24, 2017
2550b60
Include --no-macaroons options so tutorial works with current lnd code
Aug 25, 2017
486dca9
We need 100 block for Charlie's coins to appear in his wallet
Aug 25, 2017
0575cfd
https for lightning.community gives nasty untrusted site warnings in …
Aug 25, 2017
412cc0f
docs: Update Docker and Installation to latest
MaxFangX Aug 25, 2017
0a610b8
Merge pull request #4 from grant-olson/valid_coins_for_charlie
MaxFangX Aug 25, 2017
9e988b5
Use // rather than hardcoding http/https
Aug 25, 2017
68a5d81
Merge pull request #3 from grant-olson/no_macaroons
MaxFangX Aug 25, 2017
07ae582
readme+resources: Small fixes
MaxFangX Aug 26, 2017
e55589e
tutorial03: Minor fixes and clarications
MaxFangX Aug 26, 2017
1845e8a
Merge pull request #5 from grant-olson/bad_ssl_cert_on_lightning_comm…
MaxFangX Aug 31, 2017
8baf213
overview: Change 'Charlie' to 'Carol' to match the images
MaxFangX Aug 31, 2017
766aba6
homepage: Fix https link to api site causing cert warning
MaxFangX Sep 8, 2017
872f8e7
resources: Fix link to Rusty Russell's tutorial
MaxFangX Nov 16, 2017
f660551
resources: Correct Lightning Network paper publication date
MaxFangX Dec 4, 2017
c24fef6
typos
cbarraford Dec 10, 2017
1e3c451
Merge pull request #8 from CBarraford/overview-typos
MaxFangX Dec 11, 2017
a4ad0a2
docs: Update docker, installation, and python gRPC guides
MaxFangX Dec 21, 2017
410c685
resources: add link to Rusty's Lightning Things to Know FAQ
MaxFangX Dec 21, 2017
1ad7d31
install: Add note about macaroons and noencryptwallet
MaxFangX Dec 22, 2017
e3d01b4
Nitpick: Change gopath env variable
ndeet Dec 23, 2017
a2e4c68
Add lncli create command before requesting basic info
magomimmo Dec 24, 2017
9ce5a1b
Merge pull request #11 from magomimmo/create-wallet
MaxFangX Dec 25, 2017
b51a74a
tutorial01: Small typo and alignment
MaxFangX Dec 25, 2017
6ef1cda
Merge pull request #10 from ndeet/patch-1
MaxFangX Dec 25, 2017
27009d3
Mine at least 3 blocks on opening a channel
ndeet Dec 25, 2017
cdd2ca1
Merge pull request #13 from ndeet/patch-2
Roasbeef Dec 27, 2017
67a5e54
site: Update Slack invite link
MaxFangX Jan 4, 2018
3bc99f6
Merge branch 'master' of https://github.com/lightninglabs/lightning-d…
MaxFangX Jan 4, 2018
245a867
lapps: Add Lapps page
MaxFangX Jan 7, 2018
799b93d
Update command line options in install guide and lncli tutorial
aakselrod Jan 13, 2018
d314de6
Adding on 'error' example for subscribeInvoices
sangaman Jan 15, 2018
d8ac623
Update cli args
tanx Jan 22, 2018
5b88712
Update lnd.conf preset in tutorial
tanx Jan 22, 2018
45553b9
Remove whitespaces
tanx Jan 22, 2018
2565815
Update number of blocks to be mined in tutorial
tanx Jan 22, 2018
04e8add
Merge pull request #25 from tanx/fix-tutorial
bryanvu Jan 23, 2018
0e93dca
Merge branch 'master' into bitcoind-docs
bryanvu Jan 24, 2018
1713d09
Merge pull request #22 from aakselrod/bitcoind-docs
bryanvu Jan 24, 2018
b3702bb
Merge branch 'master' of https://github.com/lightninglabs/lightning-d…
MaxFangX Jan 24, 2018
1763a6b
Ensure we install btcd before testing lnd
cbarraford Dec 29, 2017
5ca8a7d
Updating installation.md to master of lnd/docs/install.md with change…
ndeet Jan 28, 2018
6663b81
`--value` to `--amt`
ckcollab Jan 30, 2018
c0563b5
lapps: Add more
MaxFangX Jan 30, 2018
ff3ccdd
lapps: Add Eclair and c-lightning apps
MaxFangX Jan 30, 2018
89ad358
lapps: Update description of page, add images
MaxFangX Jan 30, 2018
06daf4d
Changing addinvoice --value to --amt in guides
sangaman Feb 15, 2018
9608cec
remove linebreak from inside oneline code block
xgess Mar 1, 2018
df708e0
update value to amt for all instances of addinvoice
xgess Mar 2, 2018
53e697e
guides: update
MaxFangX Mar 3, 2018
2561de1
Merge pull request #32 from xgess/fix-oneline-codeblock-on-overview
MaxFangX Mar 3, 2018
64f7bac
Merge pull request #23 from sangaman/patch-1
MaxFangX Mar 3, 2018
e0aa3f4
Merge pull request #27 from ckcollab/patch-1
MaxFangX Mar 3, 2018
6437a11
Merge pull request #31 from sangaman/master
MaxFangX Mar 3, 2018
d0aa934
Merge pull request #33 from xgess/update-value-to-amt
MaxFangX Mar 3, 2018
f60561c
lapps: add more
MaxFangX Mar 3, 2018
d24b898
Updated installation and tutorial pt 1 to match lnd beta.
bryanvu Mar 14, 2018
2b066d8
Updated tutorial pt 2 for beta
bryanvu Mar 14, 2018
ff687d0
tutorial01: Add macaroon usage, refactor a little bit
MaxFangX Mar 16, 2018
a375718
lapps: Update and recategorize
MaxFangX Apr 2, 2018
f8b3f87
guides: Update all
MaxFangX Apr 4, 2018
89186a1
Update Slack link
MaxFangX Apr 9, 2018
246ea8f
lapps: Add LightningTip
MaxFangX Apr 9, 2018
c6e3cc1
Fix outdated RPC responses and remove outdated lnd.conf flag
arch-wiki Aug 4, 2018
5ebd9a1
tutorial: minor corrections to the tutorials
Rooke Aug 16, 2018
f45a2e9
Merge pull request #50 from valentinewallace/update-tutorial-01
Roasbeef Aug 29, 2018
b2cc903
README: clarify release process build
Roasbeef Dec 13, 2018
c84a7a9
guide: update all guides and install docs
Roasbeef Dec 13, 2018
85ff22b
docs: update contribution guidelines
Roasbeef Dec 13, 2018
9db09f9
guides: update installation.md
Roasbeef Dec 13, 2018
09ea234
README: update instructions for running locally
openoms Aug 31, 2019
d12123f
pages: fix links
openoms Aug 31, 2019
cf5223f
guides: fix typos
openoms Sep 4, 2019
37b6bf6
pages: correct components to btcd or bitcoind
openoms Sep 7, 2019
557f907
tutorial: fix simnet macaroon path
openoms Sep 7, 2019
7af36ae
guides: update go version and PATH variables
openoms Sep 11, 2019
d1d4b6b
tutorial: fix stage 2 link
openoms Sep 11, 2019
34bdd57
pages: clear neutrino definition
openoms Sep 11, 2019
1aea4ee
pages: fix typos and grammar
openoms Sep 11, 2019
459b721
tutorial: fix typo, peerport and bob`s balance
openoms Sep 11, 2019
8e7e04c
pages: additions to lapps
openoms Sep 11, 2019
cb7d899
pages: make LND Dev Slack the point of contact
openoms Sep 11, 2019
0f9bda8
pages: add lapps
openoms Sep 11, 2019
3a398e1
render: fix pyhton2.7 default path
openoms Sep 30, 2019
1f6ccab
guides: correct style
openoms Oct 1, 2019
5bb33c9
lapps: clean, add wallets & physical applications
openoms Oct 1, 2019
19470fb
pages: note incomplete REST streaming RPC coverage
openoms Oct 1, 2019
9997fd3
lapps: formatting
openoms Oct 2, 2019
245bc20
home: updated slack link
bryanvu Oct 4, 2019
db7f482
lapps: add lightning app links for Android and iOS
openoms Oct 5, 2019
ddcbf35
home: add slack link redirect
bryanvu Oct 5, 2019
4622f71
guides: update docker setup
openoms Oct 28, 2019
63addf1
guides: update installation process
openoms Oct 28, 2019
42ab995
configure footer
openoms Oct 28, 2019
f9532d6
Merge pull request #67 from openoms/master
bryanvu Nov 6, 2019
a5c489b
Revert "tutorial: fix stage 2 link"
Roasbeef Feb 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 87 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
# Lightning Network Daemon Developer Site
Documentation for the Lightning Network Daemon
Developer guides and resources for the Lightning Network Daemon

## Overview

This repository contains functionality for programmatically pulling guides from
the lnd repo, using a Python script and Jinja2 templates to output markdown
files, which are the corresponding pages in the fully rendered Jekyll static
site.

Pay special attention to these files:
- `templates/base.md`: The Jinja2 template fed into the Python
script, holding the Jeykll header to be prepended to the guide content pulled
from Github. The `templates` dir also holds the templates for special cases
where for example a dev site-specific footer needs to be appended
- `update_and_render.sh`: Update local guides to the latest version available
- `render.py`: The Python script that uses local guides and Jinja template to
strip out redundant titles, add page headers/footers, and output Jekyll
markdown
- `deploy.sh`: Build static site from Jekyll markdown and deploy to Google Cloud
Platform

The rest of the files in this repo are the standard Jekyll site files.

## Running the site locally

### Prerequisites

You're going to need:

- **Linux or OS X** — Windows may work, but is unsupported.
- **Ruby, version 2.2.5 or newer**
- **Bundler** — If Ruby is already installed, but the `bundle` command doesn't work, just run `gem install bundler` in a terminal.

### Running locally

```shell
git clone https://github.com/lightninglabs/lightning-dev-site
```
Install Jekyll:
```
$ gem install jekyll bundler
Expand All @@ -11,23 +45,65 @@ Run the site and watch for changes:
```
$ bundle exec jekyll serve
```
* If running remotely add: `--host=0.0.0.0`

## Deployment

The Lightning Dev Site is deployed with `s3_website`. Visit their [github
repo](https://github.com/laurilehmijoki/s3_website) for more information.
## Regenerating documentation

### Steps
```shell
# Install Jinja for python templating
pip install Jinja2
```

### Get the latest INSTALL.md
```shell
curl -o INSTALL.md -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/docs/INSTALL.md
```

### Fetch the latest Docker guide
```shell
curl -o DOCKER-README.md -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/docker/README.md
```

1. Add the deployment credentials for `s3_config.yml`
### Get the latest gRPC guides
```shell
curl -o python.md -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/docs/grpc/python.md
curl -o javascript.md -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/docs/grpc/javascript.md
```
$ export LN_S3_ID="YOUR_S3_ID"
$ export LN_S3_SECRET="YOUR_S3_SECRET"
$ export LN_CLOUDFRONT_DISTRIBUTION_ID="YOUR_CLOUDFRONT_DISTRIBUTION_ID"

Let's run the script to render the guides:
```shell
python render.py
```

2. Deploy the site from local changes:
Now that you're all set up, you can just run `./update_and_render.sh` to
automatically pull the latest markdown files and render the local Jekyll docs.

## Deployment

The Lightning API is deployed with Google Cloud Platform. Visit [this blog
post](https://little418.com/2015/07/jekyll-google-cloud-storage.html) for more
information.

### Steps

1. Install Google Cloud SDK and authenticate into it:
```bash
brew cask install google-cloud-sdk
gcloud auth login
```

2. Build
```bash
bundle exec jekyll build
```
s3_website push

3. Push to Google Cloud Bucket
```bash
# -m use faster multithreaded uploads
# -d delete remote files that aren't in the source
# -r recurse into source subdirectories
gsutil -m rsync -d -r ./_site gs://dev.lightning.community
```

In the future, you can just run `./deploy.sh` to deploy automatically.
29 changes: 16 additions & 13 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Lightning Network Developers
email: [email protected]
email: [email protected]
description: > # this means to ignore newlines until "baseurl:"
Developer resources, documentation, and education for the Lightning Network
Daemon.
Developer resources and documentation for the Lightning Network Daemon.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
url: "http://dev.lightning.community" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: lightning
github_username: lightninglabs
github_username: lightningnetwork/lnd

# Build settings
markdown: kramdown
Expand All @@ -34,11 +33,15 @@ permalink: pretty
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- templates
- render.py
- update_and_render.sh
- s3_website.yml
49 changes: 49 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<footer class="site-footer">

<div class="wrapper">

<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li>
<li>
{% if site.author %}
{{ site.author | escape }}
{% else %}
{{ site.title | escape }}
{% endif %}
</li>
{% if site.email %}
<li>
<a href="mailto:{{ site.email }}">
<span>{{ site.email }}</span>
</a>
</li>
{% endif %}
</ul>
</div>

<div class="footer-col footer-col-2">
<ul class="social-media-list">
{% if site.github_username %}
<li>
{% include icon-github.html username=site.github_username %}
</li>
{% endif %}

{% if site.twitter_username %}
<li>
{% include icon-twitter.html username=site.twitter_username %}
</li>
{% endif %}
</ul>
</div>

<div class="footer-col footer-col-3">
<p>{{ site.description | escape }}</p>
</div>
</div>

</div>

</footer>
17 changes: 17 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">

<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/dropdown.css" | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">

{% if jekyll.environment == 'production' and site.google_analytics %}
{% include google-analytics.html %}
{% endif %}
</head>
16 changes: 13 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% assign default_paths = site.pages | map: "path" %}
{% assign page_paths = site.header_pages | default: default_paths %}
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>

{% if page_paths %}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
Expand All @@ -19,8 +19,18 @@
</label>

<div class="trigger">
<a class="page-link" onclick="alert('kek')" href="">Learn</a>
<a class="page-link" onclick="alert('ico')" href="">Develop</a>
<div class="dropdown">
<a class="page-link" href="/guides"><button class="dropbtn">Guides</button></a>
<div class="dropdown-content">
<a href="/overview/">Overview</a>
<a href="/guides/installation/">Installation</a>
<a href="/tutorial/">Tutorial</a>
<a href="/guides/python-grpc/">Python</a>
<a href="/guides/javascript-grpc/">Javascript</a>
<a href="/guides/docker/">Docker</a>
</div>
</div>
<a class="page-link" href="//api.lightning.community">API</a>
</div>
</nav>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions _includes/icon-github.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">lnd</span></a>
95 changes: 86 additions & 9 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,92 @@

<div class="home">

<h1 class="page-heading">Building on the Lightning Network Daemon</h1>
<p>New to lnd?
<a href="/installation/">Installation</a> and
<a href="/tutorial/">Tutorial</a>
<h1 class="page-heading">LND Developer Site</h1>

<section>
<p>Resources and documentation for the
<a href="https://github.com/lightningnetwork/lnd">Lightning Network Daemon (LND)</a>
</p>
</section>

<section class="page-content">
<h2>Learn</h2>
<p>New to LND?
<a href="/overview/">Overview</a>,
<a href="/guides/installation/">Installation</a>, and
<a href="/tutorial/">Tutorial</a>
</p>
<p>Curious about the Lightning Network? <a href="/resources/">Resources</a></p>
</section>

<section class="page-content">
<h2>Develop</h2>
<p>Looking for detailed dev manuals? <a href="/guides/">Developer Guides</a></p>
<p>API Reference Documentation? <a href="//api.lightning.community">API site</a></p>
<p>Want to help build the future? <a href="/contribute/">Contribute</a></p>
<p>Looking to read the code? <a href="https://github.com/lightningnetwork/lnd">Github</a></p>
</section>

<section class="page-content">
<h2>Community</h2>
<p>Follow the
<a href="//lightning.community">Lightning Labs community blog</a>
to keep posted about LND.
</p>
<p>Need a reference? <a href="/docs/">Documentation</a></p>
<p>Want to learn about Lightning Network? <a href="/resources/">Resources</a></p>
<p>Want to help build the future? <a href="/contribute/">Contribute</a></p>

{{ content }}
<p>Join the
<a href="https://lightning.engineering/slack.html">LND Developer Slack</a>
to meet the team, discuss development, and hang out!
</p>
</section>

<section class="page-content">
<h2>Ecosystem</h2>
<p>See the cool apps and wallets built on Lightning: <a href="/lapps/">Lapp directory</a></p>
</section>

<section class="page-content">
<h1>Overview</h1>
<p>
The Lightning Network scales blockchains and enables trustless instant
payments by keeping most transactions off-chain and leveraging the
security of the underlying blockchain as an arbitration layer.
</p>
<p>
This is accomplished primarily through "payment-channels", wherein two
parties commit funds and pay each other by updating the balance
redeemable by either party in the channel. This process is instant and
saves users from having to wait for block confirmations before they can
render goods or services.
</p>
<p>
Payment channels are trustless, since any attempt to defraud the current
agreed-upon balance in the channel results in the complete forfeiture of
funds by the liable party.
</p>
<p>
By moving payments off-chain, the cost of opening and closing channels
(in the form of on-chain transaction fees) is ammortized over the volume
of payments in that channel, enabling micropayments and small-value
transactions for which the on-chain transaction fees would otherwise be
too expensive to justify. Furthermore, the Lightning Network scales not
with the transaction throughput of the underlying blockchain, but with
modern data processing and latency limits - payments can be made nearly
as quickly as packets can be sent.
</p>
<p>
Hash Time-Locked Contracts (HTLCs) allow transactions to be sent between
parties who do not have a direct channels by routing it through multiple
hops, so anyone connected to the Lightning Network is part of a single,
interconnected global financial system.
</p>
<p>
In short, the Lightning Network enables scalable blockchains through a
high-volume of instant transactions not requiring custodial delegation.
</p>
<p>
Continue reading at the full <a href="/overview/">LND Overview and
Developer Guide</a>.
</p>
</section>

</div>
Loading