Oddbean new post about | logout

Notes by Fabian | export

 PCR85 👇

nostr:naddr1qqjxve3nxserxdek95unsefj956xveph943xgvp4956rwctyvycrvvpkxumnqq3qtvqc82mv8cezhax5r34n4muc2c4pgjz8kaye2smj032nngg52clqxpqqqpmxwqgcwaehxw309aex2mrp0yh8xmn0wf6zuum0vd5kzmqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wd3skueq0e27js 
 The bitcoin whitepaper is just 9 pages.

What's even more incredible is that everything that makes people say their mind was blown when reading it is explained in the first 4 pages.

The remaining 5 pages could have just been left out and clarified on the mailing list as Satoshi did with many other details not mentioned in the whitepaper.

https://bitcoin.org/bitcoin.pdf 
 It will show whatever was “deleted”, I deleted my reply as an example for the screenshot, but can be anyone’s post you’ve already seen or fetched 
https://media.utxo.nl/wp-content/uploads/nostr/5/2/5277715618372ed913c1d10a7128f9ccaf3b5e4769b7015bc619edb5448114fa.webp 
 #asknostr Nostr seems to handle a lack of access pretty well, for example using Nostur, it buffer... 
 Yes its by design, it queues your post for sending later when your connection is back. I added this a year ago when I was in an area with limited service

nostr:note1rd29zvr2whk7a8y80n9g7e9mves6u3wsjt6fgt20c3efp3x9tx9qzp0a4m 
 Client devs, can you please implement relay feeds 🙏🙏🙏

This is a critical missing piece ... 
 You can use it by adding it as a custom relay feed, its pretty good but not completely as intended, I’ll need to add a toggle to override chronological ordering and allow posts already seen to fully take advantage 
 Would be a useful feature for many clients.

What are your thoughts nostr:npub1gcxzte5zlkncx26j68... 
 
Right now Nostur only does this one in-app, but seems like good idea to add it to the home/lock screen notifications as well, will add it.
 
 nostr:npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe where does Nostur get the k... 
 It asks the keychain for the nsec of the logged in npub, so either the keychain has the wrong nsec or the its asking with the wrong npub, not sure how either of those can happen.

When you go to your own profile and tap edit profile does it reveal the correct npub but the wrong nsec? That would mean its somehow wrong in the keychain 
 Ok I just checked all the code paths where the private key is set and its possible to turn a read-only account into a normal account by entering the private key, but it doesn’t check if the private key belongs to that read-only account, oops  😬

So what probably happened is you had a read-only with your main account and then at some point turned it to a normal account but with a different nsec.

If you have a Mac with iCloud keychain sync you could manually fix this in Keychain Access, on the phone its not possible I think, I’ll need to add some tooling in Nostur to recover from this. 
 yea I debugged some more and it does actually check if the private key belongs to that read-only account so that can't be it. I did some DB updates in the past, maybe I missed something related to bunker accounts. Could it be that the "wrong" nsec is the bunker client key?

I think you could try to add existing account again and it should override the wrong keychain data, if that works I don't need to add extra tooling to recover 
 It's a bit tricky, it used to work like that, but when I added support for iCloud keychain sync there can be the situation where someone is logged in on 2 or more iCloud devices and logging out on 1 device would also unexpectedly logout on all other devices as well because its using the same keychain, so to be on the safe side I remove the account from Nostur on logout but not from the keychain.

It’s still on the todo list to also remove from keychain, but with warnings to back-up key first etc. 
 I think the connections are still ok but something is broken with the infinite scroll, fixing… 
 I think there might be something else going on in the linked post, it looks like a reply to a highlight (9802) of an article (30023), and an e-tag to the article is added as root, probably the article shouldn't be added at all and the highlight should be root but I'm not sure, will look into it some more later 
 hey you randomly brough back some memories from 20 years ago, its not possible to **Sap** from Nostur but you can add any button you want from Settings -> Reaction buttons 😉
https://media.utxo.nl/wp-content/uploads/nostr/8/8/88a3a56dfb7c73f7eb6699d64dc62aa4dba5cb0ccf064e466a87f004bfcd3bf9.webp 
 For some reason I simply cannot do css today 
 nostr:npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe I am unable to add a local ... 
 its trying to remove redundant :80 in a not so good way, workaround is to run the local relay on a different port like 8108. I’ll fix it at some point 
 can I use this for solo lottery mining instead of public-pool? 
 PCR83 👇

nostr:naddr1qqjxvc3jxuersefj95unxdr9956r2cec95urgctx95mnsvrxv3jnvephxv6ngq3qtvqc82mv8cezhax5r34n4muc2c4pgjz8kaye2smj032nngg52clqxpqqqpmxwqgcwaehxw309aex2mrp0yh8xmn0wf6zuum0vd5kzmqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wd3skueqmppu9e 
 Calling client devs: 

AlgoRelay alpha is available to play around with.

Suggestions for impleme... 
 Seems pretty good, so far I will keep using it.

Nostur does use the “since” filter on relay feeds, and it won’t add older posts above newer posts when updating the feed, not sure if that breaks anything 
 Is it technically challenging to open zap streams and Nostr pods in a separate tab on #Nostur , e... 
 I will add that, for nests it already works but zap streams still use the older video player that I need to rewrite a bit to keep playing in background 
 I have this little NUC (small computer) that I've been using for ~8 years now to run my bitcoin/lightning node and everything else related. I've been using it as a playground to just try everything, I've installed and reinstalled so many things, I ran it with FreeBSD (my fav), Ubuntu and in the last years Debian, it's been running pretty stable with very little maintenance. 

But a few days ago it would't boot anymore, disk full, the 500 GB internal SSD isn't enough anymore for full blockchain + indexes and I don't want to run it pruned, it's also connected to a 2 TB external USB HDD but that one is a bit slow. I've moved some things around a few times to make it work again but now its not booting anymore with a totally unrelated error about a wifi device (wtf, its not even using wifi), so after all these years of experiments and bloat I've decided to just start over with fresh install, same NUC, bigger disks, reinstall OS and restore config. This time I'm going to install the minimal just to:

- Connect my wallets to my own bitcoin or lightning node
- Look up transactions on my own blockchain explorer
- Connect a BitAxe solo lottery miner

Bookmark this post if you want to follow along as I will post my updates as replies.

#sidequest #hobby #server 
https://media.utxo.nl/wp-content/uploads/nostr/6/4/64ac813ca13e3401ab85bfcf77f819cd031f49326c512d89a0a1b4a44b805830.webp 
 I've replaced the internal SATA 500 GB SSD with a 1 TB SSD that I had laying around, and connected the old disk with a SATA-USB adapter to have easy access to existing files / configs and copy things over.

I also found the NUC had a unused M2 slot so I put a 500 GB SSD from my old gaming PC there

#sidequest #hobby #server 
https://media.utxo.nl/wp-content/uploads/nostr/7/b/7b651891dd906eca1638dfed1eeea389c1066e2647ce0b7c3757268d622051b0.webp 
 I had tried this a few years ago already but basic things like looking up a transaction became slow, maybe it was the usb interface 
 The install wizard is just next next next and I set it to use the 500 GB disk for OS and the 1 TB disk for data, this way I can more easily swap out the 1 TB for a bigger one in the future without having to reinstall the OS
https://media.utxo.nl/wp-content/uploads/nostr/0/2/02e7845718a40280b91942f90c8661dc6ce5f46a2fabcd7d17af7f87a1a2a214.webp 
 Next is installing software. I used to compile from source but updating was always a hassle, and step 1 is always please install a gazillion unknown dependencies that conflict with other dependencies. I will now just download the binaries and verify the signatures, I want to try to just have a few binaries, some scripts, and data, nothing more, keep it lean and simple.
https://media.utxo.nl/wp-content/uploads/nostr/0/8/08d003cc7a15cb0de1afd58be18c95bc7661813df93d767862188912c05c2604.webp 
 It looks like I can’t avoid installing nodejs and all the mess that comes with it if I want to use mempool block explorer and public-pool mining server :/ can’t find alternatives
https://media.utxo.nl/wp-content/uploads/nostr/3/f/3fad210510740fd0cbce91e0dc3d49456255123a34a3391fc0b05063175795a3.webp 
 Setting up mempool block explorer, first the frontend following the steps in https://github.com/mempool/mempool/tree/master/frontend using nginx with nginx-mempool.conf and nginx.conf from the mempool repo as starting point

Works! But its not connecting yet because I need to set up the backend first, which requires electrs, which requires bitcoind, and I can't start bitcoind yet because I'm still copying the blocks from my old disk in the background
https://media.utxo.nl/wp-content/uploads/nostr/d/b/dba5290ba099aac3bdca521d0543acca236d0124fdbd94d6b4ccb4a2dc1ac23b.webp 
 well the blocks have finished copying but bitcoin core won’t start because half the blocks are missing, I had forgotten that I symlinked blocks to another directory some time ago, and I deleted that directory 😅

so I’ll be syncing from the genesis block now.. to be continued 
 While bitcoind is still syncing I've started with the mempool backend and electrs following the steps from https://github.com/mempool/mempool/tree/master/backend

Unfortunately there is no simple mempoold to just download and run, I also need to install rust first (in addition to nodejs and npm) to run the backend installer, more bloat :( 
https://media.utxo.nl/wp-content/uploads/nostr/b/a/ba8e6b00c3a52f66123462b21b5763455f3fafa8fe36b2c071d0c9e6a60330b9.webp 
 electrs that I copied over from the old disk is v0.10 from 2023 and there have been many updates:
https://github.com/romanz/electrs/blob/master/RELEASE-NOTES.md

It looks like the old one will probably not work with bitcoin core v28 so I’ll need to compile the latest one
https://media.utxo.nl/wp-content/uploads/nostr/b/8/b8aa6136127151e8c36bc97897374357f7b94d4d85a43b42892d65f1392b1b4a.webp 
 Compiling electrs by following steps on: https://github.com/romanz/electrs/blob/v0.10.6/doc/install.md 

But instead of doing it on the NUC, I'm doing it on a virtual machine, installed with the same Debian .iso file that I used on the usb stick for the NUC. I'm doing this with UTM: https://mac.getutm.app

This way I can just copy over only electrs and don't need all the mess of packages required to build it on the NUC. It would have been great if I could do this with nodejs/npm stuff too but I don’t think that’s possible.
https://media.utxo.nl/wp-content/uploads/nostr/b/e/be56cb1fd6ae02009b43ae2e1ce225e3de040d77b61ef2c26fcb8d39405e3ec7.webp 
 I haven’t heard about this one, is it compatible with Mempool blockchain explorer? 
 the new electrs build is ready, the docs said the build would take ~20 minutes, I didn't measure it but left it running in the background and it took longer than an hour.

bitcoind is still syncing in the background, blocks are at june 2024 now, will probably be finished by tomorrow. After that I will start electrs with a fresh sync too.
https://media.utxo.nl/wp-content/uploads/nostr/0/c/0cd714489d13eafeb5f0dcc5fb8a581599d619a68d693cd4f6d54effc7fa491f.webp 
 I took the latest lightning lnd from https://github.com/lightningnetwork/lnd/releases/tag/v0.18.3-beta

At first thought I copied wrong version because the file dates are jan 1st 2020, but after checking —version it says 0.18.3-beta. Probably the machine used to build it has the wrong date or maybe needed for deterministic builds, I never looked in to how thats done.
https://media.utxo.nl/wp-content/uploads/nostr/7/0/70a64819b224ed31893cf0f9e43299058596605d0c4bd3a20be07e5b6cd6fff9.webp 
 bitcoind has finished its sync, now I can start electrs. I wasn't sure how slow the sync would be so I tried it first from scratch but it was going very slow, would probably take days, so instead I copied over the data from my old disk, which was around 50 GB.

With bitcoind running, electrs running, I can start the mempool backend and my now local block explorer is working:


https://media.utxo.nl/wp-content/uploads/nostr/d/8/d8c3aee4a8967d6602e352d1522084b6e2b77d3f440b766413d27f564b87b235.webp 
 now I should also be able to start lightning lnd but I was getting errors: 
[ERR] LTND: unable to create partial chain control: unable to determine if bitcoind is pruned: unable to detect bitcoind version

I vaguely remember @Derek Ross posted about a special config flag and after some digging around that was it:

nostr:note18lz63u08tdtxslhznayxw6sq6f7t0mu4vtt6fd6lvfxek0h29d9qtgf8hm

lnd can’t connect to bitcoin core v28 without it, after adding the flag the problem went away and my lightning channels are back online.
 
 Now time to get the BitAxe lottery miner connected, I can't connect it directly to my bitcoin node, it needs something that does stratum protocol in between. A few options I found: public-pool, ckpool, stratum SRI.

public-pool seems easy to use but needs nodejs
stratum SRI looks way too complex for solo lottery mining, I don't understand anything on the docs
so I'm trying out ckpool, it has instructions specifically for solo mining which I'm following: https://bitbucket.org/ckolivas/ckpool-solo/src/solobtc/README

I'm doing it the same as with electrs, building it in the virtual machine so I can keep the NUC clean.

Following the steps, I kept getting stuck on the ./configure command. For some reason this line in configure breaks it: PKG_PROG_PKG_CONFIG(). I'm not sure what it does but the only way I could continue was by removing it.

This resulted in 4 files, I think only 1 is needed for solo mining but I copied all 4 to the NUC just to be sure.

I pointed ckpool to bitcoind, and the bitaxe miner to ckpool and all looks good:


https://media.utxo.nl/wp-content/uploads/nostr/5/5/55373953ccc9bf24d9fe793df10f98d4b63e74d8cf616fb54a099cf4e8fc8c90.webp
https://media.utxo.nl/wp-content/uploads/nostr/0/3/03232d050fc23fc37b6b7bae401e142030780d1d53328ae20f5045a230df6b39.webp
https://media.utxo.nl/wp-content/uploads/nostr/3/1/316a5bc64f12ee0414c1e456c66c96f06bc491ba19bc0080ec1ba9a351987e16.webp 
 So if I technically “deleted” my account on nostr once, but it still shows in Primal and Damu... 
 are you trying to restore your account? If you still have the “deleted” account in Nostur you can go to Edit profile, update your name/info and save. That should be enough to broadcast your restored profile to relays and other apps 
 at the moment its posts by anyone, reacted to by your follows with one of the following emojis: 😂 🤣 😆 😝 🤪 😜 😹 😁 😄 🤭 😛 
 this is on TestFlight where you can get the new features first, but also the bugs

https://nostur.com/testflight 
 PCR82 👇

nostr:naddr1qqjrsvr9xyurjwp495ur2cmy956rvdp494sk2epe95ekywrpxgcrjwpjvgerzq3qtvqc82mv8cezhax5r34n4muc2c4pgjz8kaye2smj032nngg52clqxpqqqpmxwqgcwaehxw309aex2mrp0yh8xmn0wf6zuum0vd5kzmqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wd3skueq3nzc47 
 nostr:npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe have you thought about addi... 
 Bitaxe enjoyers, what's your frequency and  voltage? 
 Mine was overheating with the defaults, now running stable with 475/1150 and automatic fan control off 
 Nostr-PHP dev 👇

nostr:naddr1qqjxgctzvsenge33943rqctz956rgvfn943rsefn94jxzdmr8qmn2e3jxucxvq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxwqgcwaehxw309aex2mrp0yh8xmn0wf6zuum0vd5kzmqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3vamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmnyl5r550


https://media.utxo.nl/wp-content/uploads/nostr/b/8/b80ee70035b9deac25c16220862b07e05493da0a35dea0d86a69aeffcabec0f9.webp 
 MEME WARS (THE BITCOIN PODCAST) 👇

nostr:naddr1qqjrzen9xsurwe3s943ngce3956xvdp3943rgdt994snyepcvsckxdejxe3njq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxwqgcwaehxw309aex2mrp0yh8xmn0wf6zuum0vd5kzmqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3vamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmnyrscpsl
https://media.utxo.nl/wp-content/uploads/nostr/f/d/fd8d618422611e014888da607aa0191fb723a572ac589c9422cd46fb6908ffdb.webp 
 123 days of analysis paralysis, help me decide between Nostury and Nosturix in the comments.

There have been many great suggestions, but I still want to keep it close to Nostur instead of a total rebrand.

The main problem was with pronunciation, are you talking about nostr or nostur, you can't tell the difference verbally. Nostury or Nosturix makes it clear, but which one? I like them both
nostr:note1357tnyjuhlzvwr6ut0zentdngkntz8y9vuh7x3vskdltakp294es3u9s5a 
 this is great, I will save this one for a future toggle in the app 😂 
 Thank you @doc 🫂 
 No should be less than 5 seconds. Could be a slow relay causing delays. You could try with just 1 fast relay to see if that is the cause 
 is there an ios client that will undo a retweet or whatever it’s called on #nostr 
 I will add (request) delete for reposts 
 awesome that we can see threads posts on nostr thanks to mostr bridge, shame they cant see us 
no... 
 I’m not sure I did anything, could be something changed on the mostr bridge 
 Every version keeps getting better and better. I’m really surprised by how well the integration... 
 Its like twitter audio spaces 
 New update is now live on the app store! 

Nostr Nest integration, Live streams and many more improvements:
nostr:note147rrz8e8etlmdm995clguqnlxnftr3dcj8vege6hun2zy07lelxql4ft7f 
 They cannot, but as an alternative you can request delete and post another one 
 yes but the version downloaded from the website directly does not have auto-update, you need to download again manually. 
 I tried to add nostr.build early on but was never able to figure out the API or what I was doing wrong, but with NIP-96 it was easy to add :)

@quentin actually already cleaned up the list but I see now that commit never made it in the right branch, will be corrected soon 
 “Comet Notes is a note-taking app with Nostr integration”

Best part is that the notes are actual notes ;) 
 I’m not sure, I thought it was like a replacement for apple notes but it just posted my note in public
https://media.utxo.nl/wp-content/uploads/nostr/9/7/97263a7091056c3d79f45a80ba3d95d619e9dffb060a5e80caee1ffceaa443b0.webp 
 I will probably link to @Comingle or nip89 apps, maybe add a minimal view while nothing else is available yet 
 nostr is censorship resistant because:

1. the follow list is decentralized
2. there are multiple relays

Normal users can resist censorship by switching relays, or ultimately run their own relay and they cannot be censored on follow lists because each follower owns their own follow list, it doesn't even need to exist on a relay, can exists primarily on everyones own device while syncing to relays.

Relays stopping spam doesn't mean nostr can be censored, it just means whatever was stopped was something no ones care about enough to either be followed or hosted on a different relay.
 
 that is already solved, its just the solution that is not widely adopted yet, see https://how-nostr-works.pages.dev/#/outbox