Trending Tags
  • #bitcoin
  • #nostr
  • #bitcoindayoftheyear
  • #wordle
  • #softwar
Trending Notes
Global
Trending Profiles
  • node
    @node
  • mleku
    @mleku
  • Jay
    @Jay
  • The Fishcake🐶🐾 & 763 others
    @The Fishcake🐶🐾
  • The Daniel ⚡️ Sats are the Standard
    @daniel

Nostr View


Marius @MariusFebruary - 2mo

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...

0
0
0

Showing page 1 of 1 pages