What is Nostr?
CJ54
npub1fa4…yp93
2024-08-26 04:00:09

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?
Author Public Key
npub1fa4cxyjkcwmqpt4ftfr6qxfgmc3cz3vtckuvq7jh5687hu55xcgsy5yp93