What is Nostr?
DanConwayDev
npub15qy…yejr
2024-09-25 15:34:24
in reply to nevent1q…skz2

DanConwayDev on Nostr: I have add auth to the master branch in commit ...

I have add auth to the master branch in commit 4f84dc460c3494286233afe9ca480d3b7c0186b1 but after some testing I am not happy with the delay it introduces when using a nip46 signer.
I've raised an issue with rust-nostr which should hopefully resolve this.
I have a CLI (ngit) that is usually used to read but sometimes used to write events.
I'm trying add support for relays that require AUTH to read.
If nip46 a bunker url is known and have previously been used to successfully sign event, I would like to opportunistically use it to respond to AUTH events.

I don't want to await the return of Nip46Signer:new() before sending read requests and I'd like a shorter timeout (or the connection attempts to be stopped when the client falls out of scope)
so that my CLI can close when other operations are complete.

Later, if the CLI needs to sign user generated events, it will attempt to connect to the remote signer again (if not already connected) and this time would need a longer timeout for connecting to the remote helper as provided through Nip46Signer:new() .


i figured that users can choice whether to approve auth requests through their nip46 signer.
Author Public Key
npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr