burn the bridge Profile picture
Jun 26, 2021 24 tweets 21 min read Read on X
1/24 Build a self-custodial Lightning node with @RaspiBlitz

A thread on Lightning for beginners.
2/24 This thread is the short version of a more detailed article that can be found on my blog.

Lightning is a rabbit hole in and of itself, so this thread will only cover the very high level steps involved. Please check out my article for the full story.

econoalchemist.com/post/build-a-s…
3/24 Lightning is a layer-2 payment network built on layer-1, #Bitcoin

Network peers with open bi-directional channels can send/receive payments quickly without the need to wait for block confirmations. Other peers can help facilitate the best network route for payments.
4/24 By running your own Lightning node, you can maintain custody. There are no privacy guarantees in Lightning. @cycryptr wrote an excellent article on the subject & had a great rip on @citadeldispatch with @openoms & @ODELL

citadeldispatch.com/cd21/

abytesjourney.com/lightning-priv…
5/24 I used a @Raspberry_Pi 4B-4GB, a Smraza Case, 32GB microSD Card, Samsung T7 1TB SSD, & an ethernet cable for my build. Total cost was ~$260 USD.
6/24 First, build the RasPi OS image by downloading & verifying the zip file. Then download the imager. Save both files in the same folder then flash the image file to your microSD card.

downloads.raspberrypi.org/raspios_arm64/…

raspberrypi.org/software/
7/24 After flashing, write a blank ssh file to the root folder. Then insert the microSD card into the RasPi. Connect the SSD, ethernet, & power adaptor. Then open an SSH connection from your desktop to your RasPi.
8/24 Once logged in, use the commands found here to compile the @RaspiBlitz software then reboot. You will now log in with a new username/password. RaspiBlitz connects via Tor by default.

github.com/rootzoll/raspi…
9/24 Upon initial configuration; choose Bitcoin, name your node, set your passwords, format the SSD, & begin the Initial Blockchain Download (IBD). This took me 3-days 6-hours.
10/24 During IBD, you can setup your new LND Wallet. Make sure to secure your seed phrase on paper, not in a digital format. Do not share it with anyone.
11/24 After IBD, you can install the Ride The Lightning (RTL) web-interface from the main menu. This is a smooth UX interface for interacting with your node.
12/24 Deposit on-chain #bitcoin to your LND wallet then you can open public or private (un-announced) channels. Be aware of the privacy implications such as exposing your node's capacity and your active & historical channels. Check out nodes on 1ml.com to see.
13/24 You & your peer will both maintain a balance state of your channel. At first, all the liquidity will be on your side which means you can spend but not receive. Lightning Terminal Loop (LiT) is another service that can help with that.
14/24 The loop out will balance your channel by moving sats en route to Lightning Labs. Then Lightning Labs will send #bitcoin to your on-chain LND wallet minus their fee. It's custodial. This is done with HTLC's so if it doesn't work, no loss. This can take several attempts.
15/24 A dishonest peer could force-close your channel & broadcast a previous balance state thus stealing some funds from you in the event your node is off-line. Watchtowers can be used from different geolocations to protect against this with a justice tx.

openoms.gitbook.io/lightning-node…
16/24 Keeping an automatic backup of your Lightning node can be helpful in the event of a catastrophic hardware failure. I utilize the USB stick option. To restore; you will need your 24-words, "C" password, & the channels.backup file.
17/24 @ZeusLN can connect to your @RaspiBlitz node via Tor. Now you can send/receive Lightning payments on the go, backed by your own node at home. Export the tls certificate from RaspiBlitz and install it on your phone to prevent MITM attacks.
18/24 You can create invoices from RTL or from @ZeusLN mobile. Share the resulting QR code or copy/paste the alpha-numeric string. Invoices expose your node's pubkey so be cautious about public sharing. You will need inbound liquidity to receive sats.
19/24 Paying invoices is just as easy from both interfaces. You cannot make self payments. By making some initial Lightning payments you can get the gossip network to start noticing your node better which may help if you had trouble looping out.
20/24 @RaspiBlitz has several extra features like @BtcpayServer, Electrum Rust Server, Mempool Explorer, Join Market, and you can even download the Bitcoin Whitepaper from the blockchain.
22/24 More companies are accepting Lightning so you can use your sats in more places. A couple services that I have enjoyed are @paywithmoon & @bitrefill. Lightning has many conveniences and many tradeoffs. Like Bitcoin, there are no privacy guarantees.
23/24 Off-chain payments expose less info to the ledger however considerations should be made around which UTXO's are used in funding channels & how they are used after.

Lightning payments are fast but off-line peers can cause routing disruptions.
24/24 Tx fees are low but maintaining balanced channels introduces some friction into the experience.

Typically, the amount of #bitcoin you have on Lightning is less than on-chain, yet the amount of backup info required is more.

Overall Lightning is a great tool to use.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with burn the bridge

burn the bridge Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @econoalchemist

Dec 28, 2022
1/12 Secure your #Bitcoin backups in stainless steel to protect against environmental hazards like fire & flood.

The Kiboruto from @Crazyk_031 & @stackbitme is a letter stamp style backup tailor made for @SamouraiWallet. Full guide on @BitcoinMagazine

bitcoinmagazine.com/guides/guide-f…
2/12 There are 3 key pieces of info you need for your backup. #1 is seed words. They always need to be in order and in the case of @SamouraiWallet, you get 12 of them. Kiboruto features etched numbered boxes to keep these words in order. Never share them with anyone!
3/12 Key piece of info #2 is your passphrase. The wallet requires one but doesn't generate it for you nor does it know if your passphrase is correct upon recovery. Every passphrase generates a valid wallet. Kiboruto has a dedicated passphrase plate so you can store it separately.
Read 12 tweets
Nov 2, 2022
1/16 Secure a #Bitcoin seed phrase with corrosion & fire resistant titanium; a thread on the @hodlrswiss One Titanium seed backup.

Full guide published with @BitcoinMagazine

bitcoinmagazine.com/guides/using-a…
2/16 Self-custody means you have the radical responsibility of securing your #Bitcoin backup. Geographically distributed water & fire proof backups are a good starting point. The @hodlrswiss One Titanium backup makes that pretty easy.

hodlr.swiss/products/one-t…
3/16 The One Titanium supports both BIP39 (github.com/bitcoin/bips/b…) & SLIP39 (slip39.com). This product involves converting standardized seed words into a corresponding numbered index. Exercise caution when making such conversions.
Read 16 tweets
Aug 10, 2022
15/19 Side note, while waiting for that transaction, if you're interested in building your own #Bitcoin full node on a @Raspberry_Pi, here is how I built mine:

econoalchemist.com/post/build-you…
16/19 Once received in the Bitcoin Core wallet, send some #BTC to @COLDCARDwallet. You can export a list of receiving addresses to a .txt file & transfer via microSD to the Raspi node then copy/paste. Bech32 addresses seem to work best for PSBT, FYI. Verify address on the CC. ImageImageImageImage
17/19 In conclusion, showed how to set up @COLDCARDwallet, generate WIF for mobile @bluewalletio & Bitcoin Core, & moved some #BTC to all 3 wallets. I hope you found some useful information here.
Read 5 tweets
Jul 25, 2022
1/24 Preserve the anonymity gained in Whirlpool by making every spend a CoinJoin.

My latest article with @BitcoinMagazine covers how to use the spending tools found in @SamouraiWallet & @SparrowWallet step-by-step.

bitcoinmagazine.com/guides/how-to-…
2/24 Whirlpool is a zero-link CoinJoin implementation that can be found in both @SamouraiWallet for mobile Android users as well as @SparrowWallet for desktop users. For the best privacy practices don't trust someone else's node, run your own @RoninDojoNode
3/24 Whirlpool breaks deterministic links that exist on the Bitcoin blockchain. These links are often exploited by law enforcement working with exchanges & chain analysis companies to invade your privacy & track your transactions. Even people you transact with might snoop around.
Read 25 tweets
May 16, 2022
1/18 Bear market mining, what can home miners do to survive? In this first part of a series on survival tips, I suggest setting expectations based on BTC price & hashrate so miners can be better prepared to make good decisions in stressful situations.

2/18 Miners face a lot of variables, the volatility of BTC price and hashrate specifically though can quickly change a miner's outlook. Setting some operating bands can help you remain calm and avoid making costly mistakes.
3/18 Setting these operating bands involves 3 steps:

1) Where do you stand today?
2) How high can hashrate go if the price stays flat?
3) How low can the price go if hashrate stays flat?

To help find these thresholds, this is a great tool:

insights.braiins.com/en/cost-to-min…
Read 18 tweets
Apr 29, 2022
1/32 Whirlpool your #bitcoin from desktop with @SparrowWallet and mix straight to cold storage with @COLDCARDwallet or @FOUNDATIONdvcs

A great solution for iPhone users who don't have @SamouraiWallet or a @RoninDojoNode

Full article @BitcoinMagazine:
bitcoinmagazine.com/technical/how-…
2/32 All #Bitcoin transactions are public & anyone can see them with a block explorer. Whirlpool breaks deterministic links and diminishes on-chain heuristics to weak subjective interpretations. Gain forward looking anonymity & transact without the privacy invasion.
3/32 Navigate to bitcoincore.org/en/download/ and follow the instructions to download the latest version of Bitcoin Core to your PC. It takes a few days to sync the whole blockchain and it takes up a lot of space, have at least 500GB of disk space available.
Read 32 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(