Why Nostr? What is Njump?
2024-10-15 16:32:21
in reply to

dankswoops on Nostr: ESBuild compiles nostr-tools into nostr-tools.js. Background.js imports this file but ...

ESBuild compiles nostr-tools into nostr-tools.js. Background.js imports this file but you could cut the middle man and put tools inside background.js and compile it together. I'm unable to find proper documentation on how the logic of signEvent works.

I'm pretty sure I'm implementing this function wrong and that's all I need help with.

https://github.com/dankswoops/NostrKeyring/blob/a9d16a57567121c2090738203199b867e1c83f2d/extension/background.js#L9

I'm happy to put $100 of btc on it. To get the test environment setup, npm i, npm run build, put the extension into firefox using manifest json at about:debugging#/runtime/this-firefox

Then create a user profile, log into that user to pass the keys to background.js and now you should be able to edit bg.js, test a nip-07 signEvent login.

to retest: change the code, refresh the extension, log out then in of the user, and try to signEvent.

That's all you need to know dev on it.
Author Public Key
npub1yrkexvt88h6cgd32gdcfm55auuz6rw6c70xj478gcz6lstz5czvs9s77xh