validation

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSignature

func CheckSignature(evt nostr.Event) bool

CheckSignature verifies the event's signature and ID

func ValidateEventTimestamp

func ValidateEventTimestamp(evt nostr.Event, cfg *cfgType.ServerConfig) bool

Types

type Result

type Result struct {
	Valid   bool
	Message string
}

Result represents the outcome of a validation check

func CheckBlacklistAndWhitelistCached

func CheckBlacklistAndWhitelistCached(evt noatr.Event) Result

CheckBlacklistAndWhitelistCached uses cached pubkey lists for validation

func CheckRateAndSizeLimits

func CheckRateAndSizeLimits(evt noatr.Event, eventSize int) Result

CheckRateAndSizeLimits checks if an event passes rate and size limits

Jump to

Keyboard shortcuts

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