pull down to refresh

INTRO
...
With adopting a new money it’s inevitable that some things will change. That may come through learning about the fundamentals of what makes a good money, central banking, inflation or cryptography. The main one I’d like to introduce today is about utilizing bitcoin onchain UTXO’s along with lightning (possibly liquid or mints) in a more efficient and cost effective way.
...
NEW HABIT
...
Here's a simple idea that bitcoin accepting retailers could do to save costs. The basic idea is that consumers overpay by sending a UTXO for the product in its entirety, and the retailer returns the change in lightning/liquid OR creates a balance of credit in that retailers mint.
Here are some of the main advantages:
  • It makes good use of onchain UTXO's by not breaking them up and creating unwanted dust.
  • It looks like a "self spend" to any chain analytics.
  • It helps retailers balance their LN channel by creating more inbound liquidity.
  • It encourages more retail adoption of LN.
  • It saves block space.
...
ANALOGY AND EXAMPLE
...
A basic analogy for this method might be like spending cash at a local store. Buying $96.50 worth of groceries you hand over a $100 bill and receive $3.50 in change. You give the note to the cashier, then they return the change.
Let’s take an example to see how something like this might be implemented:
Lets say Start9 is selling their latest server for 900k sats. Bob wants to purchase it and selects a single 1m sat UTXO. He selects the product and arrives on a page to pay with bitcoin which has 2 options, onchain or LN. He selects onchain and gets a pop up saying something like "overpay up to X and receive change in LN". So Bob pays the 1m sat UTXO, 50k is paid for the network fee, and there is now a 50k "credit" Bob can claim in LN. Start9 recognizes that the received onchain BTC is more than the product and asks Bob to generate a 50k sat LN invoice.
Bob’s 1m sat UTXO
server cost - 900k sats network TX fee - 50k sats change - 50k sats
WHAT JUST HAPPENED?
In the current environment Bob would receive a 50k change output that he will need to pay a large percentage of it on fees in the future. He could consolidate with other small UTXO’s if he believes fees will come down at some point, but this would link and reveal all his other purchases. With introducing this new habit, Bob now has 50k sats that he can spend on smaller purchases or zapping. Start9 receives a larger UTXO and has created more inbound liquidity. Lastly the onchain transaction looks like a self spend and therefore is more difficult to analyse (depending on other preceding factors of course).
Its really win win all around!
...
AUTOMATION
...
The good thing is that this works now. I could go to my local butcher and say something like: “I have this 400k sat UTXO, can I pay onchain and receive the change in lightning?” Both parties are more than likely to be in agreement. For retailers, lightning is a one way street (as in money comes in).
This might be ok amongst bitcoiners that have been using the technology for a while, but it would be better if the app/web page/PoS could simply automate this. As soon as the onchain payment is received, the price of the good is subtracted from the UTXO and the buyer is asked to generate an invoice for this amount. OR as another option for the merchant to retain customers, they could offer credit on their next purchase through individual accounts with the product/service.
I’m sure there are more advanced ways that we can bring this habit into working with LN holding invoices or ecash mints. This might take more time to be tested and built out though.
...
FEES
...
There has been a lot of talk and debate about onchain fees since stamps/ordinal/inscriptions/BRC-20 tokens last year. Whatever your position is on this, we all know fees will rise regardless. Whatever percentage of bitcoin ends up as dust or in large institution custody, we still need to continue to keep “our” bitcoin use efficient, cost effective and as private as possible for this segment of the p2p network to truely flourish.
...
OLD IDEA?
...
First of all, this idea probably exists somewhere in the bitcoin space. I think it's a good one so I'm certain it's likely out there somewhere. I did see that electrum had a recent release where the change from a UTXO can be added to your lightning channel. This requires that you have both onchain BTC and a LN channel open in the same electrum wallet though. Also, I’d take a guess that it could be an API to swap with boltz.
Of course swap services like boltz are working today. Using a desktop wallet we can direct the change output into a swap with liquid, lightning or ecash. My problem with this currently is that in a high fee environment a lot of that gets eaten away by either the network or the service provider. From our example if boltz were to accept the 50k sat UTXO they need to charge for a future cost to consolidate. If it costs a single input/output 50k sats, then there is no point (economically irrational). Liquid services like sideswap or aqua charge fees too, but the federation would have to pay that future consolidation/spend and at some point (if liquid ever gains significant adoption) they will have to charge higher fees.
This is why I think it would be a beautiful improvement to how we buy things using onchain BTC today.
...
LETS DO THIS!
...
Educating and building new habits is inherently part of this new form of money. While we’re still in the early stages we need to encourage best practices for the users of the bitcoin network. So while we are still building out the ideal money network, let’s simply ask the next time we buy something using onchain BTC if we can get our small change in lightning and keep our UTXO’s large.
...
REFERENCES
...
122 sats \ 4 replies \ @nym 15 Apr
Good idea. A little trust needed there, but at least it is for the change and likely small amounts relative to the purchase.
reply
This. Is there any way to enforce the change being paid?
reply
16 sats \ 1 reply \ @OT OP 16 Apr
I guess that would depend on the type of payment. If its face to face definitely.
Automated payments could work using hold invoices in the same way as robosats does now. Buy it would be a little weird for the buyer to pay a small fidelity bond before making the purchase for the product.
Regardless, every business depends on reputation. If they don't pay, you let everyone know.
reply
Yeah. I guess I was thinking more about online merchants like on Ebay or Amazon.
reply
16 sats \ 0 replies \ @OT OP 15 Apr
Yeah, it might only work for small amounts.
reply
Great article! I've bookmarked it for future reference.
It has made me more knowledgeable about UTXOs. Thank you so much.
reply
Glad to help!
reply
“I have this 400k sat UTXO, can I pay onchain and receive the change in lightning?”
I like that and indeed with Electrum is easy to do it. Good post !
reply
Thank you sir!
reply
This would be neat - almost like an 'open a channel' add on to your online order at checkout
reply
40 sats \ 2 replies \ @OT OP 16 Apr
Ummm... No I don't think so. You would already have to have a LN channel for this to work using LN.
However you could use liquid or possibly ecash tokens straight up. Custodial LN too.
reply
101 sats \ 1 reply \ @windward 16 Apr
You would already have to have a LN channel for this to work using LN
A LN channel is necessary - but the buyer might not necessarily have one open with the merchant they're purchasing from, especially if they're a first time buyer. having channel creation with your merchant as an option streamlined into the first initial purchase would make it easier to have them be repeat customers,too.
ecash tokens
honestly, that would be great too, but it also would be dependent on finding a way to consistently send that info to the customer w/out being sure whether or not they had a cashu wallet at the time of token creation (I'd say email, but the text is the money w/ cashu)
reply
The point of this "habit" is simply to not create onchain dust. So if you have a channel opened with the change of like 50-100k, that's not going to get you very far. We're kinda seeing with high onchain fees that channels need to be big or bad things happen.
But if someone didn't have any LN channels they could receive a LN payment to custodial wallets like coinos.io or wallet of satoshi.
reply
Great post. Thanks
reply
What sizes of UTXOS will be good to have?
If you could consolidate some of your coins into 3 sizes of UTXOS, how big your Utxos will be?
reply
0 sats \ 1 reply \ @OT OP 16 Apr
For me I think anything under 100k sats is too small. Over 500k-1m would be ideal.
Consolidating might save costs down the track, but is terrible for privacy.
reply
Thank you for the reply.
Maybe just spending some SATs and doing a coinjoin instead of a consolidation would be better.
reply