mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
nit - not necessary to be verbose
This commit is contained in:
parent
839154da5a
commit
455c7a23b6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user