we have that. there is a general signSchnorr() in Alby

Reply to this note

Please Login to reply.

Discussion

Yeeeeesssssss!!! P2PK nuts on the web here we go!

Was there ever been an attempt to standardise this in NIP-07. it would enable so many cross protocol usecases. Opening a PR as we speak

Do you have any protection for web apps asking users to sign event ids? I could see this being misused to get users to sign events without them being able to see what they are signing

Pretty sure albys default behaviour is to pop open and ask the user for confirmation

Getting „Error: hex invalid 2“ when calling this with „test“ in my browser console. Any idea why?

Nvm. String needs to be a hex string. Your documentation seems to be outdated.

yes. you sign a hash.

where is it wrong?

https://guides.getalby.com/developer-guide/v/alby-browser-extension-apis/window.nostr/signschnorr

The code example says

const signature = await window.nostr.signSchnorr("some text here");

But that would throw