<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Litecoin Foundation - Medium]]></title>
        <description><![CDATA[The Litecoin Foundation  is a non-profit organization with a mission to advance Litecoin for the good of society by developing and promoting state-of-the-art blockchain technologies. - Medium]]></description>
        <link>https://medium.com/litecoin-foundation?source=rss----6160075565bd---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Litecoin Foundation - Medium</title>
            <link>https://medium.com/litecoin-foundation?source=rss----6160075565bd---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:53:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/litecoin-foundation" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A simple guide to Lightning Network on Litecoin]]></title>
            <link>https://medium.com/litecoin-foundation/a-simple-guide-to-lightning-network-on-litecoin-bc944361a5fb?source=rss----6160075565bd---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc944361a5fb</guid>
            <category><![CDATA[lightning-network]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[litecoin]]></category>
            <dc:creator><![CDATA[Loshan]]></dc:creator>
            <pubDate>Fri, 01 Sep 2017 15:46:45 GMT</pubDate>
            <atom:updated>2017-10-12T23:54:06.844Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide is intended for Debian/Ubuntu users. And has been tested to work correctly on a fresh install of Ubuntu 17.04. If you are unfamiliar with terminal command formatting, please remove the $ sign before copy &amp; pasting the commands into terminal.</p><h3>Preliminary</h3><p>Click on the Software &amp; Updates app. Inside of the application, check “community maintained free and open-source software (universe)”. Open Terminal form the search bar.</p><p>First update your system:</p><pre>$ sudo apt upgrade<br>$ sudo apt update</pre><h3>Install dependencies</h3><ol><li>Install git:</li></ol><pre>$ apt install git</pre><p>2. Install golang-go which is required to build ltcd and lnd:</p><pre>$ apt install golang-go</pre><p>3. Install npm &amp; nodejs through the Node Version Manager (nvm):</p><p><em>But first you need to install nvm through the install script:</em></p><pre>$ curl -o https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash</pre><pre>$ source ~/.bashrc</pre><pre>$ export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; . &quot;$NVM_DIR/nvm.sh&quot;</pre><p><em>Now you can install nodejs v8.4.0!</em></p><pre>$ nvm install v8.4.0<br>$ nvm alias default 8.4.0</pre><p>Last thing left to do is to setup your dev environment.</p><pre>$ export GOPATH=~/projects/lightning<br>$ export PATH=$PATH:$GOPATH/bin</pre><pre>$ source ~/.bashrc</pre><h3>Installing ltcd</h3><pre>$ go get -u github.com/Masterminds/glide</pre><pre>$ git clone <a href="https://github.com/ltcsuite/ltcd.git">https://github.com/ltcsuite/ltcd</a> $GOPATH/src/github.com/ltcsuite/ltcd</pre><pre>$ cd $GOPATH/src/github.com/ltcsuite/ltcd<br>$ glide install<br>$ go install . ./cmd/...</pre><p>As simple as copying the above!</p><h3>Installing lnd</h3><pre>$ git clone <a href="https://github.com/lightningnetwork/lnd.git">https://github.com/lightningnetwork/lnd</a> $GOPATH/src/github.com/lightningnetwork/lnd</pre><pre>$ cd $GOPATH/src/github.com/lightningnetwork/lnd<br>$ glide install<br>$ go install . ./cmd/...</pre><p><em>Let’s now test lnd:</em></p><pre>$ go install; go test -v -p 1 $(go list ./... | grep -v &#39;/vendor/&#39;)</pre><h3>Setting up ltcd</h3><pre>$ touch ~/.ltcd/ltcd.conf</pre><p>Now edit the ltcd.conf file by:</p><pre>$ nano ~/.ltcd/ltcd.conf</pre><p>Then insert and match the following:</p><pre>rpcuser=username<br>rpcpass=password</pre><p>Make sure to change username and password to random characters. And write this information down somewhere. To save, ctrl+o and then ctrl+x .</p><h3>Start syncing ltcd</h3><p>ltcd now needs to sync with the Litecoin Blockchain. This process will likely take a few hours. And requires minimum space of 9GB.</p><pre>$ ltcd --txindex --testnet --rpcuser=username --rpcpass=password</pre><p>Make sure to change username and password to the characters that you previously wrote down in the above step.</p><p>Keep this process running in a terminal window. The next few steps require ltcd to be up to date. Please now create a new terminal window shift+ctrl+n or switch to a new terminal tab shift+ctrl+t .</p><h3>Installing Zap</h3><pre>$ git clone <a href="https://github.com/LN-Zap/zap-desktop.git">https://github.com/LN-Zap/zap-desktop.git</a><br>$ mkdir ~/.lnd<br>$ cd ~/.lnd</pre><p><em>Now generate certificates required for Zap:</em></p><pre>$ openssl ecparam -genkey -name prime256v1 -out tls.key</pre><pre>$ openssl req -new -sha256 -key tls.key -out csr.csr -subj &#39;/CN=localhost/O=lnd&#39;</pre><pre>$ openssl req -x509 -sha256 -days 3650 -key tls.key -in csr.csr -out tls.cert</pre><pre>$ rm csr.csr</pre><p>You know need to remember the result of the following command — this lists the directory in which the cert files you just created exists within.</p><pre>$ pwd</pre><p>Once you’ve created the node.js compatible certificate, paste the path to your cert in app/lnd/config/index.js :</p><pre>$ nano app/lnd/config/index.js</pre><p>You’ve now opened index.js in the text editor nano. Modify index.js to match the following:</p><pre>// Cert will be located depending on your machine<br>// Mac OS X: /Users/user/Library/Application Support/Lnd/tls.cert<br>// Linux: ~/.lnd/tls.cert<br>// Windows: TODO find out where cert is located for windows machine<br>export default {<br>  lightningRpc: `${__dirname}/rpc.proto`,<br>  lightningHost: &#39;localhost:10009&#39;,<br>  cert: &#39;/path/to/directory/tls.cert&#39;<br>}</pre><p>Replace /path/to/directory with the result of the pwd command which your previously entered. It might look like this:/home/loshan/.lnd/tls.cert . To save your changes, press ctrl+o then ENTER/RETURN and then ctrl+x .</p><p>Finally install zap-desktop!</p><pre>$ cd zap-desktop<br>$ yarn<br><br>$ ./node_modules/.bin/electron-rebuild</pre><h3>Setting up lnd</h3><pre>$ touch ~/.lnd/lnd.conf</pre><p>Now edit the lnd.conf file by:</p><pre>$ nano ~/.lnd/lnd.conf</pre><p>Then insert using and match the following:</p><pre>[Application Options]<br>debuglevel = debug<br>externalip = MY_IP<br>no-macaroons = true</pre><pre>[Litecoin]<br>litecoin.active = 1</pre><p>Replace MY_IP with your external IP address — which you can find by <a href="http://lmgtfy.com/?q=what%27s+my+ip+address">Googling what’s my ip address.</a> To save, ctrl+o and then ctrl+x .</p><h3>Starting up lnd</h3><pre>$ lnd --litecoin.active --debuglevel=debug --bitcoin.rpcuser=losh11 --bitcoin.rpcpass=password --bitcoin.testnet --externalip=MY_IP</pre><p>Make sure to replace MY_IP with your external IP address, which you found previously.</p><h3>Running Zap</h3><p>If everything went well, from a new terminal window, we can then navigate to the zap directory:</p><pre>$ cd ~/zap-desktop</pre><p>And finally run Zap!</p><pre>$ npm run dev</pre><p>Thank you to <a href="https://medium.com/u/2ce693b5864c">Charlie Lee</a>, <a href="https://medium.com/u/fb26851df6e0">Jack Mallers</a> &amp; Franklyn for testing and producing the instructions above. Special thanks to the numerous persons in IRC freenode #litecoin-dev for helping with reviewing and testing.</p><p>On a final note, Zap is still not ready for public release. And you can help Zap get deployed by contributing to the development effort at: <a href="https://github.com/LN-Zap/zap-desktop">https://github.com/LN-Zap/zap-desktop</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc944361a5fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/litecoin-foundation/a-simple-guide-to-lightning-network-on-litecoin-bc944361a5fb">A simple guide to Lightning Network on Litecoin</a> was originally published in <a href="https://medium.com/litecoin-foundation">Litecoin Foundation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>