Methods
Static
createId
- createId(e): string
Returns string
Static
extractThread
- extractThread(ev): undefined | Thread
Returns undefined | Thread
Static
fixupEvent
- fixupEvent(e): void
Returns void
Static
forPubKey
- forPubKey(pk, kind): NostrEvent
Static
getRootPubKey
- getRootPubKey(e): string
Returns string
Static
getType
- getType(kind): EventType
Returns EventType
Static
isValid
- isValid(ev): boolean
Returns boolean
Static
minePow
- minePow(e, target): NostrPowEvent
Static
parseTag
- parseTag(tag): Tag
Returns Tag
Static
sign
- sign(e, key): NostrEvent
Static
verify
- verify(e): boolean
Returns boolean
True if valid signature
Assign props if undefined