Avatar
cr0bar
f16ac67afff1340501cf27b7ebe9e3086fb62e97f044ba407e38b5d8425a73f2
šŸ•¹ #RetroGaming • šŸŽ® #Gamer • šŸ‘Øā€šŸ’» #Developer • 🄷 #Hacking • šŸ¤“ #Geek • šŸ” #Food • 🤪 #Random

Thanks for the zaps! It’s a fun project to be honest, but has its challenges 🤣 but being able to sign and decrypt nostr notes on the go from any app that implements the NSD without the app ever needing to know the private key will be amazing.

Pushed a new EXPERIMENTAL build to my NAD repo if anyone wants to give it a go. It now supports NIP-44 and BLE.

The main experimental bit is the batching as part of the BLE implementation to support larger payloads over GATT. I did consider pivoting to L2CAP to get around it, but want to ensure compatibility with libraries so doing it at application layer.

https://github.com/cr0bar/nostr-signing-device

I’ve also updated my NIP PR to take this requirement into account.

I should have done this… ended up coding for about 2 hours, trying to troubleshoot why my new code wasn’t working, only to realise that the code base I’d started working on this evening, had a bug… the new code probably wasn’t even faulty to start with…

Lesson learned… don’t code when tired. 😩 nostr:note1kwtwgy2xhpeh65y9kdmu95x049p74n2x87afmsfk84yl8kymfuhqm0lzse

I’m not going to do any coding tonight, just an evening with my feet up I think ā˜ŗļø

I go for headphones on, ignore important stuff for other people, work on important stuff to me.

Im assuming that’s my issue anyway. All other gift wrapped notes I’ve received decrypt fine, it’s just my dev key which I’ve used for secret chat between my primary and dev key which don’t decrypt. Assuming it’s using one of the aliased keys.

Yeah, it’s not in with the other approved nips, but it is listed on 0xChat covering key aliases used for ā€œsecret chatā€.

Found the issue, had nothing to do with NIP-44 and everything to do with NIP-101… 😩 nostr:note13ujz9agyyqjfsclgxjeajp6fwjr69fcklsec6wfvmfpmuyyta4wsdtq0z7

Can someone send me a message on 0xChat please using my npub. Thanks šŸ™ #asknostr

Wonder if that’s what confusing it. Looks like I may have been trying to decrypt the optional one. Looked at others sent to me from other people and they fully decrypt as expected.

Does anyone understand how kind 13 works? I’ve captured a message sent to myself on 0xChat, kind 1059. I then decrypted the content using NIP-44 and the pubkey on the note. The result is a kind 13.

I’ve the attempted to perform the same NIP-44 decryption steps for the content of the kind 13 using the pubkey in the note, but decryption fails.

Burnt a few hours on this. Any ideas? Tried with multiple message and get the same issue. #asknostr #nostrdev

Nevermind, it works now šŸ˜šŸ‘ nostr:note102apcspz746g75ngzpc7supyaknpz0f6l00pem9vyu5fhluqz8wqqt379q

Been looking to add NIP-44 to the NSD as it already supports NIP-04. Not sure if I’ve just overloaded by brain with BLE recently, but I can’t get my head around NIP-44…

The code I’ve written seems fine (it encrypts and decrypts its own data), but won’t decrypt a note I sent from another npub to myself via 0xChat… šŸ¤·ā€ā™‚ļø

Check out this PR that implements support for the T-Display-S3. This build doesn’t implement BLE, but I’ll be raising that PR next. https://github.com/lnbits/nostr-signing-device/pull/20

Imagine losing the private key for the 100+ 🤣

It holds your nostr private keys and allows you to sign notes and encrypt/decrypt them from a client which only has the public key. The current version only supports over USB but this build does it over BLE too.

Not sure the BLE rings would have enough program memory to hold the library required to sign it unfortunately. But you can have a separate device like the LilyGo T-Display-S3 that holds your private key so your apps don’t need it or ever see it.

Easiest option is just pick up a LilyGo T-Display-S3 (the one with 2 buttons, not the touch version) from AliExpress or anywhere you can get cheap electronics from, and keep an eye on my feed for when my next PR is merged 😁

Very strange šŸ¤”

Still work in progress #nostrdev #nostr #nsd

It’s friday!

First successful tests this evening signing a note from my laptop using the NSD plugged into a USB charger at the other side of the room. Tomorrow, write an iOS app to do the same thing as the code on the laptop. šŸ˜šŸ‘ nostr:note1w9ktxwq6jkmwur6y3cc4vae4al7dyf55mwu54h8ktukezswaezpqq9fw5m

One of my greatest midnight McDonald’s orders…