What are you looking for? I am not a web developer. You are already using nostr-tools, so you just need to call it up.
Login to reply
Replies (1)
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.
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.
GitHub
NostrKeyring/extension/background.js at a9d16a57567121c2090738203199b867e1c83f2d · dankswoops/NostrKeyring
Nostr Keyring Browser Extension Repo. Contribute to dankswoops/NostrKeyring development by creating an account on GitHub.