Oddbean new post about | logout
 hit me up, I'll give you context, its just the  signEvent function in extension/background.is

everything else is working. maybe 97% is done and coded already 
 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.  
 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. 
 Just made a PR with a fix, let me know if it works for you