nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / validateEncryptedDM

Function: validateEncryptedDM()

validateEncryptedDM(message, logger): boolean

Validates an encrypted DM event format

Parameters

message

NostrWSMessage

Message to validate

logger

Logger

Logger instance

Returns

boolean

True if message follows NIP-04 format

Defined in

nips/nip-04.ts:92