Whilst Bitcoins decentralized attributes and hard monetary policy are second to none, the most common critique has always been its inability to scale due to high congestion within the network.

This results from Bitcoin's simple design with small block sizes to remain decentralized, often causing slow transactions and high fees.

For this reason, I was extremely proud that Purse will be integrating Lightning to alleviate these problems.

Learning how to use this Layer 2 solution was fairly simple given my previous Bitcoin exposure. However, there are some confusing elements for a first-time user.

Here are some of the answers to questions I had along the way.

If you want specific help with using Lightning on Purse, click here.

Lightning is a Layer 2 solution to Bitcoin, allowing transactions to be made off-chain in a decentralized, peer-to-peer manner. Transactions are done through payment channels opened for multiple parties.

This means that every transaction has a unique invoice (address to send funds to).

As transactions between parties are batched, fees only occur when loading and offloading on the chain.

To put into perspective, whilst Bitcoin fees can be as low as a couple of cents, on-chain fees during bull runs can go over $100.

Irrespective of bull or bear, the price of Lightning transactions remains free or a couple of cents.

The more significant fee associated with Lightning is the “channel open fee” that is based on the nodes you route through. Thus, it is only worth transferring over to Lightning if you plan to use a decent amount of funds.

Comparable solutions on other protocols include Polygon or optimism for Ethereum, where a new solution is made on the backbone of an existing one. This allows for the users to access the same functionalities whilst taking stress off layer 1, making it more cost and time efficient.

This was the initial confusing element. Yes, there is a difference. And no, you cannot immediately send BTC to a Lightning address unless your wallet/exchange supports Lightning natively, such as Kraken. If your wallet or exchange doesn't support Lightning, you need to move funds to one that does to use the layer 2 solution.

Here are some examples of wallets that support Lightning:

Exchanges:

Only after this can you make a Lightning transaction.

Here is an example of a BTC address: (Segwit)

bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq

Here is an example of a Lightning Invoice:

lnbc100u1p3t2zsgpp5z4e25kf8w6gh2rys6nlpt4576y72fut0njhzp5ctp9njwmnl2l7sdqqcqzpgxqyz5vqsp5pmvcdw79tlnylpv9ha2jck8ry9zl6pkmxx2rd9fzcqwcpatl7xjs9qyyssq0re538enhkzyymem59culqq35jjmefvruauekgv76ghmedycl6sxappnl8rd5wa63hp0xjl9wc5lrydtezqef2gg2cyraeqz3k5yx7cqcpxa5t

As you can see, the Lightning invoice is much longer than the bitcoin address and thus pretty distinguishable.

Let's break down what a Lightning invoice actually is.

An invoice is very different from an address. For example, a Bitcoin address is a home to all your Bitcoin receivables.

If anyone needed to send you BTC, you could provide each individual with the same address. However, your Lightning wallet does not have one distinct address where you can receive BTC from different people.

Instead, the receiver of BTC has to create an invoice stating the amount of BTC to be received. The sender then has to scan or paste in that invoice and put in the required amount.

You often do not even need to put the amount you are sending, as some apps do it automatically upon scanning or pasting the invoice.

Lightning Invoice (Blue wallet)

Invoice:

lnbc1u1p3vlzjwpp5zmxa7d83ktyag86nlgwh2z03npkq7209x2tzhyq93zdmve2xcrxsdqqcqzpgxqyz5vqsp5wh545cg34vnymmdlmz8vtatwc7d8nprfg480j88yajnpprmafhrq9qyyssq0w2lgzf2faczzejcxd4knvzj3zxdd7xk0e2xqvc09r26tgcj8fyqryahlze6ttfn4nj3pe7tpnkhgu5gmg6696yrt3rrln98p36qs6gqh4my6x

Key features of the invoice:

  1. The cryptocurrency network this invoice is valid for — in this example, “lnbc” indicates the bitcoin network.
  2. The amount is encoded in the invoice. — in this example, 1u is the amount. This means 1 microBitcoin or 0.000001 bitcoin.
Invoice for 50,000 sats (500 Micro BTC) on Purse

Setting up a Lightning wallet is quick and easy. Here is an example using blue wallet.

  1. Download wallet app
  2. Create a BTC wallet
  3. Write down back up phrase
  4. Create a lightning wallet
  5. Write down backup key

Since your BTC and Lightning wallet are separate, you have a different backup phrase for each.

This will allow you to restore your funds if you lose your device.

Your Lightning wallet has two wallets within.

A Bitcoin wallet and a Lightning wallet.

Now, since your wallet (eg Blue wallet) supports Lightning natively, you can move BTC to your lightning wallet within the app via “refill”. If you do not know how to do this, please click this link.

Once this is done, you can check if you have received the Bitcoin in your Lightning wallet.

TADA! You finally have some Bitcoin locked and loaded for Lightning transactions.

Now, to complete a Lightning payment:
1. Select your Lightning wallet
2.Click send
3. Click the QR scanner icon and scan the Lightning invoice or paste the code provided.

Lightning request for 50,000 sats (500 Micro BTC) on Purse
Invoice for 50,000 sats (500 Micro BTC) on Purse

By completing this payment, you have technically opened up a payment channel between you and the receiving party!

As a Lightning payment occurs off-chain and is private between sender and receiver, you cannot track its progress via a block explorer.

However, you can check the transaction via a pop-up in your wallet.

EG: Blue wallet

  • Click on your Lightning wallet, it shows recent transactions
  • Click on the latest one
  • Shows a check mark that the transaction has completed denominated in sats

There are two ways you can go about this:

  1. Send your Bitcoin to an exchange that accepts Lightning natively.
  2. Send your off-chain BTC back on chain via an external party or a function within your app.

External solutions include Zigzag and Fixedfloat.

These great applications allow for auto swaps between LN and on-chain BTC, making the process very smooth.
___________________________________________________________________

I hope this answers some headscratchers for those who haven't used Lightning before and can now use the L2 solution confidently!

Despite the Lightning network still being in its infancy, it is worth using if you wish to save on time and fees.

If you would like an in-depth tutorial on how to get set up and start spending your sats, please click here

Happy Lightning!!



Source link

Skip to content