Working with ChatGPT is like working with an optimistic colleague who takes one step at a time and takes feedback really well. This is me and ChatGPT writing a little Rust program that calculates the final seedword for a set of 11 or 23. The draft was straightforward; if the code failed to compile, I would poke back and get these replies. It is funny how it would say, "You are slicing..." when the code was written by ChatGPT just five minutes ago. However, with a bit of tweaking, I got a working program.
- Ah, good catch! That’s due to a change in the crate structure in the newer versions of bip39. The MnemonicType was moved or renamed.
- Ah yes — another subtle change in the bip39 crate!
- Ah! Got it — thanks for catching that. The issue here is that in the newer bip39 crate versions, Language is an enum, and its word list is not accessed via .wordlist() anymore.
- Ah yes — this error means you're slicing a string (&bits[..entropy_bits_required]) at a character index that doesn’t exist. Let's break it down...
Marius
marius@mess.ch
npub18kmu...xwnr
life, freedom, reason, btc, cln, lnbits, https://mint.mountainlake.io ⛵️🎾📷
PV - taken during a recent stay in PiacenzaWhat do you Bitcoiners think of tailscale? Is this software I should consider as part of my Bitcoin setup?
PVThe most significant risk to Bitcoin is a behavioral change in the guardians of our current financial system, which has existed since 1971. If they adopted a transparent, fair, impartial, reasonable, competent, and apolitical approach to managing FIAT, this could significantly delay the adoption of Bitcoin. Otherwise, LFG team #Bitcoin.