Most of my career I worked on web tech using js and ruby. Typed, compiled languages were alien to me but I was intrigued by the reliability, performance, and usability Rust offers. The rust-bitcoin ecosystem finally motivated me to start my Rust journey. Here’s how I did it 👇
The book is single handedly the best resource for starting out in Rust. I recommend reading through this at least once to get a good overview and then use it as needed as a reference when a specific topic comes up in your programming.
The Rust compiler is known for producing errors that are actually helpful. Rust Analyzer is a plugin that brings this info to you in real time as you code. It also automatically surfaces docs, auto-completion, and so much more.
Discord communities are welcoming and full of folks willing to help when you need it. Don’t only ask questions, you can learn a ton by helping others solve their problems. Bonus: They are a great place to meet like-minded people!
💡Passion Project
Hands down the best way to learn a new language is to have a problem you are passionate about solving. Do what you can and each time you get stuck refer to the resources above to help you figure it out. This will provide direction for what to learn when.
👨💻Open Source
Find a project you’d be excited to contribute to or is a dependency of your passion project. Most projects do a great job at labeling issues with ‘Good First Issue’ to help newcomers get familiar with the project. I recommend @bitcoindevkit and @lightningdevkit
• • •
Missing some Tweet in this thread? You can try to
force a refresh
How Will We Onboard Earth’s 7.753 Billion People To The Lightning Network?
I ran the numbers, let’s see how we can onboard the entire population of Earth onto the Lightning Network, how long it might take, and what we can do to speed the process up 👇
To onboard onto the lightning network it requires sending btc into a 2-of-2 multisig funding transaction with your channel partner. To optimize space in this transaction we want 1 native segwit input and a single channel funding output. This produces a tx of roughly 121vbytes.
If 100% of the transactions in a block were these channel opening txs we could onboard about 8,264 people to lightning per block. With a global population of 7.753 billion people it would take roughly 938,166 blocks or 17.8 YEARS for everyone on Earth to have a channel.
You probably saw the image of the Bitcoin genesis block with Satoshi’s hidden message in it over a thousand times yesterday (happy belated bday!).
If you were at all curious how Satoshi actually sent the hidden message in the genesis block then read more below 👇
The message is actually embedded in the first transaction ever made on the Bitcoin blockchain. It is part of a special transaction called a coinbase transaction (and no, nothing to do with the shitcoin casino company – though that is where their name came from!).
Every block mined *must* contain at least one transaction, the coinbase transaction, and it has the ability to generate up to the current block reward new bitcoins. Because it generates new coins, It’s the only transaction that must not spend another transaction’s output.
I got a lot of great feedback and questions after posting my article about brute forcing yesterday
I wanted to address a question that came up over and over again because I think a lot of people extrapolated what I did to the false conclusion that Bitcoin isn't safe or secure /0
Q: Are my bitcoins stored in a wallet generated from a 12-word mnemonic safe?
A: Yes, just don't give out any of your words on Twitter.
Brute forcing @alistairmilne's wallet was only possible because he publicly exposed eight words from his twelve word mnemonic seed. /1
It would take the same system that brute forced the last 4 words of his mnemonic 837 quintillion millennium to brute force all possible 12 word mnemonics. /2