nip46: different ids for imagined/fake nostrconnect requests so they bypass the duplicate filter.
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"fiatjaf.com/nostr"
|
"fiatjaf.com/nostr"
|
||||||
@@ -78,7 +79,7 @@ func (p *StaticKeySigner) HandleNostrConnectURI(ctx context.Context, uri *url.UR
|
|||||||
return resp, eventResponse, err
|
return resp, eventResponse, err
|
||||||
}
|
}
|
||||||
reqj, _ := json.Marshal(Request{
|
reqj, _ := json.Marshal(Request{
|
||||||
ID: "nostrconnect",
|
ID: "nostrconnect-" + strconv.FormatInt(int64(nostr.Now()), 10),
|
||||||
Method: "imagined-nostrconnect",
|
Method: "imagined-nostrconnect",
|
||||||
Params: []string{clientPublicKey.Hex(), secret},
|
Params: []string{clientPublicKey.Hex(), secret},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user