https://github.com/nbd-wtf/nostr-tools/releases/tag/v2.0.0 was released with many changes that will break your app. Congratulations. I am too tired to test this now, so please test it for me and report bugs.
I see you love JavaScript, keep going
rugged again
💯
nip19.decode() on an nsec returns a Uint8Array instead of a hex string. I submitted a pr for this, but it’s a quick fix regardless. https://github.com/nbd-wtf/nostr-tools/pull/328