mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-05 04:54:31 +02:00
nit - not necessary to be verbose
This commit is contained in:
@ -26,7 +26,7 @@ func CreateUnsignedAuthEvent(challenge, pubkey, relayURL string) nostr.Event {
|
||||
// ValidateAuthEvent checks whether event is a valid NIP-42 event for given challenge and relayURL.
|
||||
// The result of the validation is encoded in the ok bool.
|
||||
func ValidateAuthEvent(event *nostr.Event, challenge string, relayURL string) (pubkey string, ok bool) {
|
||||
if ok, _ := event.CheckSignature(); ok == false {
|
||||
if ok, _ := event.CheckSignature(); !ok {
|
||||
return "", false
|
||||
}
|
||||
if event.Kind != 22242 {
|
||||
|
Reference in New Issue
Block a user