content warning: nerdy bitcoin thoughts after a day of btcplusplus.dev

If we had some form of covenants we could have hundreds of L2s instead of just a few that barely work. Covenants are not spooky. They just mean being able to look at information of the transaction in the script that unlocks bitcoin for spending.

Before I didn’t really care about transaction introspection but many smarter bitcoiners are starting to convince me otherwise.

We could have channel factories that would solve many lightning onboarding problems, not to mention replacing the “i steal all your money because you restored from backup wrong” to “i just fix the channel state”.

It would also enable non-interactive versions of Ark and would open up tons of potentially more efficient L2s that make onboarding onto bitcoin easier and safer.

With op_txhash and other introspection proposals you could do “stacking”, a way for anyone to take a bunch of transactions and make a more efficient bundle translation to reduce fees, which will be increasingly important when fees get higher. This can be seen as a less hacky way to do sighash flags.

rusty’s great script restoration with a proper op budget has played a huge role in my shift of thinking, things like op_cat can be re-enabled, fixing the concerns which prompted satoshi to disable it at the last minute.

You can bizarrely get introspection from op_cat itself in a super inefficient way, but if we end up fixing script ideally we would just do something smarter like #lnhance

I can’t help but thinking of the future risks to bitcoin in a high fee environment if we don’t have tools to deal with it.

This is all theoretical of course, as engineers all we can do is come up with the best possible solution, ultimately its up to the node runners if they think its worth the opportunity to fix these problems.

Reply to this note

Please Login to reply.

Discussion

“Fixing script”

Details pls, OOTL

satoshi disabled many useful opcodes like multiplying numbers and concatenating values together out of DoS concerns, rusty has a way to measure the true cost of these operations so we could restore them without the DoS concerns, in theory of course 😅

bitcoin script got gimped at the last moment which has severely hindered L2 development, and why our L2s are complicated and inefficient.

Rusty’s work on that public yet? Hadn’t come across it

I asked him that yesterday he says not yet, but I started implementing it myself on my bitcoin script interpreter: https://github.com/jb55/btcs although there is not much code there either since I’m still writing it.

His proposal also came with the idea of fixing script integers to use variable length for OP_MUL, etc. he had a book on variable length integer arithmetic so i am getting nerd sniped a bit going down that rabbit hole

Nerdy Bitcoin thought of the day: It only has value if you sell it for fiat.

you misspelled tacos

Why do we need hundreds of L2s again? They all have to still fit into the blocks, right?

Because the ones we have suck and are just barely usable for end users, most people just use custodians on ln and custodians are dropping like flies.

hundreds of L2s just means we can iterate in this design space far into the future. We’re talking a few more opcodes to make bitcoin usable for everyone instead of just a few nerds who know how to run a lightning node.

Bitcoin is at the end of the correction. It's already down 20% from the highs and we'll have some more downside to happen from here.

If the correction continues, then I think the zones between $59-63K are essential to watch.

If you haven’t join (RCL) vip group yet you’re missing out. they are doing a great job in demystifying biases in #Bitcoin and bringing clarity to controversies, you can easily 174x your portfolio with the arbitrage algorithm integration in longterm interval.

Vip group: https://t.me/rebelcapitalistshow

Source: https://www.youtube.com/watch?v=kX7inr8yy1s

Don't write off APO. It's a simple but powerful way to improve Lightning while also enabling covenants without additional soft fork changes.

Not convinced.

Instead of a few, we can have hundreds of L2s that still don't work.