From f1fdb0788ae94bcf634ff6bfe088a40f08bc890d Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 22 Jan 2026 18:56:41 -0300 Subject: [PATCH] nip46: different ids for imagined/fake nostrconnect requests so they bypass the duplicate filter. --- nip46/static-key-signer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nip46/static-key-signer.go b/nip46/static-key-signer.go index 0aae6dc..25d8462 100644 --- a/nip46/static-key-signer.go +++ b/nip46/static-key-signer.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "net/url" + "strconv" "sync" "fiatjaf.com/nostr" @@ -78,7 +79,7 @@ func (p *StaticKeySigner) HandleNostrConnectURI(ctx context.Context, uri *url.UR return resp, eventResponse, err } reqj, _ := json.Marshal(Request{ - ID: "nostrconnect", + ID: "nostrconnect-" + strconv.FormatInt(int64(nostr.Now()), 10), Method: "imagined-nostrconnect", Params: []string{clientPublicKey.Hex(), secret}, })