Constructors
Methods
Static
checkPermission
- checkPermission(event, pubkey?): boolean
Parameters
- event: Event
Optional
pubkey: string
Returns boolean
Static
extractDelegationTag
- extractDelegationTag(event): undefined | Tag
Returns undefined | Tag
Static
extractDTagValue
- extractDTagValue(event): null | string
Returns null | string
Static
extractExpirationTimestamp
- extractExpirationTimestamp(event): null | number
Returns null | number
Static
getAuthor
- getAuthor(event, needValidateDelegationEvent?): string
Parameters
- event: Event
- needValidateDelegationEvent: boolean = true
Returns string
Static
isDelegationEventValid
- isDelegationEventValid(event): boolean
Returns boolean
Static
isIdValid
- isIdValid(event): boolean
Returns boolean
Static
isMatchingFilter
- isMatchingFilter(event, filter): boolean
Returns boolean
Static
isSignedEventValid
- isSignedEventValid(event, clientId, domain): string | void
Parameters
- event: Event
- clientId: string
- domain: string
Returns string | void
Static
isSigValid
- isSigValid(event): boolean
Returns boolean
Static
validate
- validate(event): undefined | string
Returns undefined | string