nip42

package
v0.30.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUnsignedAuthEvent added in v0.12.0

func CreateUnsignedAuthEvent(challenge, pubkey, relayURL string) nostr.Event

CreateUnsignedAuthEvent creates an event which should be sent via an "AUTH" command. If the authentication succeeds, the user will be authenticated as pubkey.

func ValidateAuthEvent

func ValidateAuthEvent(event *nostr.Event, challenge string, relayURL string) (pubkey string, ok bool)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL