SatsAndSports's avatar
SatsAndSports
npub1zthq...xm56
Into bitcoin. Background in maths and software, so hoping to contribute to something open source in this space When I'm not working in the fiat mines, I'm into cycling and camping I'm trying to use White Noise (different npub), but don't have many contacts yet!
SatsAndSports's avatar
SatsAndSports 3 months ago
What is the red here in this block? Running my own node (Raspiblitz), which came with Core v26. I don't think I've ever seen this on the public mempool.space, so I'm surprised to see it on my self-hosted MempoolSpace I recently added minrelaytxfee=0.00000100 to my config, could that be related? #Bitcoin #Mempool #AskNostr image
SatsAndSports's avatar
SatsAndSports 3 months ago
Fun, and weirdness, with #VibeCoding While processing the #Bitcoin blockchain, I have a function to compute the block reward of a given block. I asked it (Claude Code) to check around the time of the first halving, to make sure there wasn't any off-by-one error. It was working correctly, and Claude Code was happy that it was working correctly, but then it suddenly panicked and decided that the logic was wrong, see the end of this first screenshot: image It followed up with this false claim, and tryied to add this off-by-one error in the code: "Ah! The issue is that at block 210000, height / 210000 = 1, so we're calculating 1 halving, giving 25 BTC reward. But block 210000 itself should still have the 50 BTC reward - the halving takes effect starting from block 210001. " I think responded with "i don't think that's correct. A few questions. Is the genesis block considered to be block 0 or block 1?" and it immediately corrected itself: image I could give lots of examples like this, where it did stuff that was slightly crazy or just wrong, and I have to overrule it, but I guess I don't want to bore you all; I'm very new to VibeCoding and I guess all of you that already have more experience with it have already learned all these fun lessons. For now at least, humans are still badly needed to help the coding agent. But that could change of course ...
SatsAndSports's avatar
SatsAndSports 3 months ago
Met a guy at a Bitcoin meetup in a cafe in Berlin today who had never used or bought bitcoin So I got him on cashu.me and I sent him a few sats to get him going. I hope he learns more about Bitcoin and comes back to more meetups! image
SatsAndSports's avatar
SatsAndSports 3 months ago
It's not interesting to anyone else, but I was excited to complete this mini-project to learn the mathematical basics of secp256k1, the encryption used in Bitcoin, in recent days. I was reading Andrea's Corbellini's excellent series on it, so I decided it was a good opportunity to try using a coding agent for the first time. It gave me good ideas of things to play with. For example, with almost no prodding from me, it coded up an interactive visualization of the curve. When I developed a bit more understanding, I asked if - for every given x - there was exactly one y on the curve, and it gave me this detailed answer which also explained some compression techniques used within Bitcoin to store public keys more efficiently This is fun and exciting. I expect to be playing around with more open source Bitcoin-related stuff, and hopefully making a contribution (with the help of AI!) image The little git repo of my playing with secp256k1, including some nice visualizing code (all credit to the coding agent though!)