What is BOLT 12? Well, it is a lot of different features and moving pieces put together to accomplish multiple different things static QR codes, modular invoices, privacy for the person receiving the payment.
But what is the whole package? It's a way to have a single QR code, an "offer," allow you to grab invoices from a node in a privacy preserving way, while also allowing for things like requesting that a remote node pay your invoice.
Now, anyone familiar with LNURL should already be thinking, This sounds a lot like LNURL. But for those of you who don't know what LNURL is or how it works, here's a quick breakdown.
LNURL is a stack of simple protocols for coordinating information needed to make payments over the Lightning Network using HTTP. The full list of LNURL protocol pieces can be found here, but I'm just going to go into a few core uses that overlap with BOLT 12.
Three core pieces of the LNURL protocol are an authentication scheme, where a public key can be used to log in to a service, an invoice request scheme where a wallet can ping a server through a static QR code and retrieve an invoice, and a withdraw request scheme where a wallet can ping a server and request that the server pays an invoice provided by the wallet. Lightning invoices are much longer than on-chain Bitcoin addresses, the payment itself is already an interactive process requiring both parties to be online, so coordinating payment details interactively over a network connection makes sense.
The authentication protocol is effectively just the server providing a randomly generated number which the users wallet signs with a newly generated key. After the signed random value is received by the server, it saves the associated key to be used in future logins.
The invoice request functionality is a way to provide information to a user about a payment they wish to make in a format that is not an invoice. This provides a description of the payment, the minimum and maximum amount the service expects to be paid, and a URL for the wallet from which to request an actual invoice. From here, the wallet displays this information to the user, allowing them to set a final amount and request an invoice. After sending the invoice request and receiving one back from the server, the wallet verifies that the amounts match what the user set and pays the invoice.
The withdrawal request works by pinging the service, and receiving in response a description, a URL to send an invoice to, a random string (or deterministic to tie to an account or user), and a minimum amount and maximum amount that can be withdrawn. After filling in the appropriate value, the wallet returns an invoice to the server, and if it is valid and within the amount parameters, the service pays the invoice. The LNURL authenticate protocol can be used in addition to this to ensure that only the intended user can successfully withdraw using the LNURL link.
LNURL has smoothed over and improved much of the UX experience around using the Lightning Network, but it requires the use of a web server in order to be utilized. All of the requests and responses are handled through HTTP, and additional infrastructure beyond the Lightning node itself is required to handle these streamlined ways of coordinating and making payments. This is a perfectly reasonable requirement for any online service provider or merchant, who is realistically going to need a web server anyway to provide their service or products online. However, for a non-technical end user at home who simply wants such a streamlined experience, a street vendor, a physical shop or other users who do not already require the use of a web server, this can be a burdensome and potentially risky requirement.
BOLT 12 offers an attempt to achieve some of the core functionality that LNURL provides without requiring the use of a web server. An offer encodes the data necessary to reach a node to request an invoice to make a payment, either a node_id, or a blinded path (the last few hops in an onion route, pre-computed and encrypted) to that node using onion messages. It also can encode a minimum amount for a payment, the currency being paid in, an expiry time and minimum/maximum quantity numbers (for purchasing multiple items).
This is all of the information necessary to fetch an actual invoice from the node that issued the offer. Someone who wants to pay an invoice does so over onion messages, one of the core features of BOLT 12. It allows nodes to make a direct, end-to-end-encrypted connection between each other that does not involve a Lightning channel. Just like Lightning payments, these can be used to onion route messages. After obtaining an offer, a payer will use the information encoded in it to send an invoice_request message. The creator of the offer will then respond back with an actual invoice.
There is also support for generating unique per user offers that allow the receiver to request a payment from the creator of the offer, similar to LNURL's withdrawal request feature. BOLT 12 invoices commit to a unique payer key this can be used in the case of issuing refunds to prove you are the person who actually paid the invoice. This can also be used in combination with the withdrawal offer to guarantee that only the correct person can succeed in getting an invoice paid by the creator, as opposed to whoever is able to get a copy of the offer.
These two uses of offers effectively fulfill the same functionality as the invoice and withdrawal requests of LNURL, without the need to run a web server.
LNURL and BOLT 12 both accomplish the same general functionality, so what is really the difference between them? What is the need for BOLT 12 if LNURL already exists? The key distinction is the web server. A web server requires running more infrastructure, a domain name, a TLS certificate and the expertise to manage these things.
While this is not an issue even worth mentioning for most businesses and services, as these things are needed to operate any online business in the first place, this is a big issue for your typical non-technical end user. It is not a reasonable expectation for a user to maintain extra infrastructure bolted on top of their Lightning node in order to have access to a streamlined and simple user experience. There is also the question of the centralization of DNS; a domain is not something that can ever be truly controlled by the owner.
These issues aside, both can co-exist. LNURL works just fine, and is already very widely adopted in the Lightning ecosystem, it is just not a realistic solution for users other than businesses or services. BOLT 12 as it is adopted can fill that gap, and provide the same streamlined user experience for end users at home who are not businesses.
Both solutions accomplish roughly the same thing for two different classes of users, and that is OK.
This is a guest post by Shinobi. Opinions expressed are entirely their own and do not necessarily reflect those of BTC Inc or Bitcoin Magazine.
Read this article:
BOLT 12 And LNURL: What Is The Future For Bitcoins Lightning Network? - Bitcoin Magazine
- Bitcoin Reaches Record High of $69,000, Recovering from 2022 Meltdown - The New York Times - March 10th, 2024 [March 10th, 2024]
- Is Bitcoin headed for $100k? What it could mean for US dollar. - IG - March 10th, 2024 [March 10th, 2024]
- Bitcoin Rallies To Record $70K, Prompts Coinbase Upgrade; BlackRock To Add BTC Exposure To $17.83 Billion Fund - Investor's Business Daily - March 10th, 2024 [March 10th, 2024]
- What Is Bitcoin 'Halving' and Does It Push Up the Cryptocurrency's Price? - Bloomberg - March 10th, 2024 [March 10th, 2024]
- What to Know About Bitcoins Record High in Latest Crypto Surge - The New York Times - March 10th, 2024 [March 10th, 2024]
- SEC's Gensler says crypto 'rife with abuses and fraud' as bitcoin surges to new all-time record - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Rich Dad Poor Dad Author Robert Kiyosaki: Bitcoin 'on Fire' BTC Headed for $300K This Year Markets and Prices ... - Bitcoin.com News - March 10th, 2024 [March 10th, 2024]
- Bitcoin can top $150000 in the next 12-18 months, says Fundstrat's Tom Lee - CNBC - March 10th, 2024 [March 10th, 2024]
- Is This The Real $90 Trillion Reason Behind BlackRocks Huge Bitcoin ETF Flip That Triggered The Price Boom? - Forbes - March 10th, 2024 [March 10th, 2024]
- Bitcoin's Test of All-Time Highs Means Old Miners Are Cashing Out - CoinDesk - March 10th, 2024 [March 10th, 2024]
- Bitcoin Price Prediction: Can BTC Reach $100000? Forbes Advisor - Forbes - March 10th, 2024 [March 10th, 2024]
- Bitcoin hits new all-time high near $69,000 before tumbling - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Bitcoin spikes above $70K, a record high, before fading - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Bitcoin Ordinals Wallet Oyl Raises $3M With Arthur Hayes, BRC-20 Creator Domo Among Investors - CoinDesk - March 10th, 2024 [March 10th, 2024]
- Fear of bitcoin price 'triple top' dismissed by analysts following all-time high - TheStreet - March 10th, 2024 [March 10th, 2024]
- Here's why gold, bitcoin and stocks are all hitting new highs - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Bitcoin vs. Ethereum: Which Is the Better Buy? - U.S News & World Report Money - March 10th, 2024 [March 10th, 2024]
- Crypto Analyst Predicts Bitcoin Could Surpass $330000, Breaking Historical Growth Patterns Markets and Prices ... - Bitcoin.com News - March 10th, 2024 [March 10th, 2024]
- Bitcoin is running out of enemies - Fortune - March 10th, 2024 [March 10th, 2024]
- Why is Bitcoin at an all-time high? - BBC.com - March 10th, 2024 [March 10th, 2024]
- Bitcoin tops $68,000 as it nears 2021 all-time high - CNBC - March 10th, 2024 [March 10th, 2024]
- BlackRock's Global Allocation Fund Eyes Spot Bitcoin ETFs, Expects Institutional Uptake to Drive BTC Above $600k - TradingView - March 10th, 2024 [March 10th, 2024]
- FT Cryptofinance: This time isn't different for bitcoin rally - Financial Times - March 10th, 2024 [March 10th, 2024]
- Coinbase Stock vs. Bitcoin: Which Should You Invest In? - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- ETC Group CEO on Bitcoin's wild ride to a new high and why Ethereum could be the next big thing - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Miners continue money-conscious moves ahead of the Bitcoin halving - Blockworks - March 10th, 2024 [March 10th, 2024]
- Warren Buffett's danger to Apple, the truth about Bitcoin's record, and Nvidia's bubble: Markets news roundup - Quartz - March 10th, 2024 [March 10th, 2024]
- Warren Buffett Says He Wouldn't Pay $25 For All The Bitcoin In The World He Considers Crypto 'Rat Poison' And ... - Yahoo Finance - March 10th, 2024 [March 10th, 2024]
- Bitcoin breaks record: Will the crypto rally sustain? - DW (English) - March 10th, 2024 [March 10th, 2024]
- Bitcoin Hit a Record High. Here's What Might Happen Next - CoinDesk - March 10th, 2024 [March 10th, 2024]
- Bitcoin price falls below $39,000 as indicators suggest risk of a deeper correction, according to Bitfinex - The Block - January 25th, 2024 [January 25th, 2024]
- Bitcoin down 20% since ETFs approval, but may still see record high this year - MarketWatch - January 25th, 2024 [January 25th, 2024]
- Bitcoin briefly falls below $39,000 as post-ETF selling pressure continues - CNBC - January 25th, 2024 [January 25th, 2024]
- Bitcoin trims its losses after breaking below $39,000 to lowest level in 7 weeks - CNBC - January 25th, 2024 [January 25th, 2024]
- Bitwise publishes bitcoin ETF holdings address after on-chain sleuths uncover BlackRock's - Blockworks - January 25th, 2024 [January 25th, 2024]
- AI Agents Are Coming For CryptoPalantir Cofounder Issues Very Important Bitcoin, Ethereum, Solana And XRP Price Prediction - Forbes - January 25th, 2024 [January 25th, 2024]
- This Investing Phenomenon Could Be Why Bitcoin Prices Are Down After ETF Approval - Money - January 25th, 2024 [January 25th, 2024]
- Bitcoin Under $39K as ETF Debut Continues to Be a Sell-the-News Event - CoinDesk - January 25th, 2024 [January 25th, 2024]
- Blockchain, the tech behind bitcoin, may have found its 'killer use case' by keeping AI in check - CNBC - January 25th, 2024 [January 25th, 2024]
- Why Aren't There Options on the New Bitcoin ETFs Yet? - The Wall Street Journal - January 25th, 2024 [January 25th, 2024]
- Bitcoin ETFs to Likely Divert Users and Trading Volumes Away from CEXs, Says Anthony Bevan Bitcoin News - Bitcoin.com News - January 25th, 2024 [January 25th, 2024]
- Retail investors are worried bitcoin will plunge below $20000 this year, Deutsche Bank survey says - CNBC - January 25th, 2024 [January 25th, 2024]
- China's Currency Woes to Weigh on Bitcoin: Crypto Observer - CoinDesk - January 25th, 2024 [January 25th, 2024]
- Bitcoin ETF fee war spreads to Europe - Financial Times - January 25th, 2024 [January 25th, 2024]
- Bitcoin Bulls Buoyed by Report of FTX's $1B GBTC Sale - CoinDesk - January 25th, 2024 [January 25th, 2024]
- Despite the Bitcoin ETF Hype, Survey Says Investors Are Still Skeptical - Barron's - January 25th, 2024 [January 25th, 2024]
- Bitcoin ETFs aren't giving crypto a big boost just yet. Here's where the new funds stand - CNBC - January 25th, 2024 [January 25th, 2024]
- Why Bitcoin's 'relentless' selling will end in weeks - DLNews - January 25th, 2024 [January 25th, 2024]
- Bitcoin recovers above $40k amidst GBTC outflows, other ETF inflows - CryptoSlate - January 25th, 2024 [January 25th, 2024]
- These two drivers will fuel Bitcoin's rebound: 'It's happened often before' - DLNews - January 25th, 2024 [January 25th, 2024]
- Top Analyst Says 600 Days of Bullish Momentum Still Ahead for Bitcoin - The Crypto Basic - January 25th, 2024 [January 25th, 2024]
- Bitcoin Funds Are Here. But You Probably Dont Need Them. - The New York Times - January 25th, 2024 [January 25th, 2024]
- Bitwise releases wallet addresses of spot Bitcoin ETF holdings - Cointelegraph - January 25th, 2024 [January 25th, 2024]
- Mt. Gox Moves Seemingly Closer to Bitcoin Repayments For 2014 Hack Victims - CoinDesk - January 25th, 2024 [January 25th, 2024]
- Coinbase faces headwinds as Bitcoin and ETF interest dips, says JPMorgan - crypto.news - January 25th, 2024 [January 25th, 2024]
- Waning Bitcoin ETF Hype to Drag on Coinbase, JPMorgan Says - Yahoo Finance - January 25th, 2024 [January 25th, 2024]
- Bitcoin Price At Make-Or-Break Moment, Key Levels To Watch - NewsBTC - January 25th, 2024 [January 25th, 2024]
- Bitcoin Mid-Cycle Top? Benjamin Cowen Says One Indicator Suggesting BTC Headed for Downtrend - The Daily Hodl - January 25th, 2024 [January 25th, 2024]
- Franklin Templeton expects its spot bitcoin ETF to gain traction as financial advisors become more familiar with product - The Block - January 25th, 2024 [January 25th, 2024]
- Bitcoin ETFs: The Good, the Bad and the Ugly - RealMoney - January 25th, 2024 [January 25th, 2024]
- Cathie Wood Thinks Bitcoin Could Skyrocket 3,356% By 2030. Is She Right? - The Motley Fool - December 19th, 2023 [December 19th, 2023]
- JPMorgan says ether to outperform bitcoin next year - The Block - Crypto News - December 19th, 2023 [December 19th, 2023]
- XRP Beats Bitcoin, Ethereum in Weekly Fund Flows, Boasts $2.7M Inflow - The Crypto Basic - December 19th, 2023 [December 19th, 2023]
- Bitcoin Must Hold $32K Support to Prevent Bears from Taking Over: Analyst - CryptoPotato - December 19th, 2023 [December 19th, 2023]
- BlackRock Has Quietly Opened The Door To A Trillion-Dollar Plus Wall Street Game-Changer Amid The $700 Billion Bitcoin, Ethereum, XRP And Crypto Price... - December 19th, 2023 [December 19th, 2023]
- Bitcoin Bounces Over $43K, Altcoins, Crypto Stocks Burst Higher as Fed Projects Rate Cuts Next Year - CoinDesk - December 19th, 2023 [December 19th, 2023]
- 10 Best Bitcoin Stocks To Invest In - Yahoo Finance - December 19th, 2023 [December 19th, 2023]
- Why 2023 Is Like 2020 and Bitcoin Is Set to Head Towards $50k - CoinDesk - December 19th, 2023 [December 19th, 2023]
- Bitcoin About To Take Center Stage Again After BTC Holds $40,000, According to Analyst Heres His Outlook - The Daily Hodl - December 19th, 2023 [December 19th, 2023]
- Bitcoin rises as investors await vote on tentative debt ceiling agreement - CNBC - May 31st, 2023 [May 31st, 2023]
- 'Bitcoin Millionaire' Found Dead a Week After Going Missing - Decrypt - May 31st, 2023 [May 31st, 2023]
- US Debt Crisis: Gold and Bitcoin to Soar, Predicts Gromen - CryptoGlobe - May 31st, 2023 [May 31st, 2023]
- Why Bitcoin Is Falling Today - The Motley Fool - May 31st, 2023 [May 31st, 2023]
- At bitcoins annual convention, few feel the chill of crypto winter - Marketplace - May 31st, 2023 [May 31st, 2023]
- Bitcoin Association for BSV to Serve as Steward of Bitcoin Protocol - PR Newswire - May 31st, 2023 [May 31st, 2023]
- Former Operator of Payza.com Charged with Laundering 450 Bitcoin - Department of Justice - May 31st, 2023 [May 31st, 2023]
- Bitcoin is on a collision course with 'Net Zero' promises - Cointelegraph - May 31st, 2023 [May 31st, 2023]
- Using Bitcoin to build a business - The Unilateral Contract - CoinGeek - May 31st, 2023 [May 31st, 2023]
- ChatGPTs Bitcoin Price Prediction is $35,000, Also Backing Wall ... - Finbold - Finance in Bold - May 31st, 2023 [May 31st, 2023]
- best-bitcoin-casinos-for-2023-top-rated-btc-casino-sites - Analytics Insight - May 31st, 2023 [May 31st, 2023]