CJ54 on Nostr: I'm building an X to Nostr bridge. I want to use NIP-26 delegation to get permission ...
I'm building an X to Nostr bridge. I want to use NIP-26 delegation to get permission to publish kind:1 events on user's behalf.
After reading and writing some test code, I realize that the delegator (the user) needs to generate a schnorr (BIP340) signature using their private key (nsec.)
I don't think any Nostr browser extensions can do that. Nostr browser extensions are designed to sign events, not sign NIP-26 delegation tokens.
This sucks for my project because I was hoping to generate a NIP-26 delegatee key that has permissions to post as the delegator, but doesn't require that I custody to the user's master key.
I think it's still doable, but I'll have to give instructions to the user and they have to come up with the signature so my app can post as them.
Unless there's a better way?
After reading and writing some test code, I realize that the delegator (the user) needs to generate a schnorr (BIP340) signature using their private key (nsec.)
I don't think any Nostr browser extensions can do that. Nostr browser extensions are designed to sign events, not sign NIP-26 delegation tokens.
This sucks for my project because I was hoping to generate a NIP-26 delegatee key that has permissions to post as the delegator, but doesn't require that I custody to the user's master key.
I think it's still doable, but I'll have to give instructions to the user and they have to come up with the signature so my app can post as them.
Unless there's a better way?