Package org.ngengine.nostr4j.event
Class SignedNostrEvent
java.lang.Object
org.ngengine.nostr4j.proto.NostrMessageFragment
org.ngengine.nostr4j.proto.NostrMessage
org.ngengine.nostr4j.event.SignedNostrEvent
- All Implemented Interfaces:
Serializable
,Cloneable
,NostrEvent
- Direct Known Subclasses:
SignedNostrEvent.ReceivedSignedNostrEvent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.ngengine.nostr4j.event.NostrEvent
NostrEvent.TagValue
-
Constructor Summary
ConstructorsConstructorDescriptionSignedNostrEvent
(String id, NostrPublicKey pubkey, int kind, String content, Instant created_at, String signature, List<List<String>> tags) SignedNostrEvent
(Map<String, Object> map) -
Method Summary
-
Constructor Details
-
SignedNostrEvent
-
SignedNostrEvent
-
-
Method Details
-
getCreatedAt
- Specified by:
getCreatedAt
in interfaceNostrEvent
-
getKind
public int getKind()- Specified by:
getKind
in interfaceNostrEvent
-
getContent
- Specified by:
getContent
in interfaceNostrEvent
-
getSignature
-
getId
-
getPubkey
-
getAuthor
Deprecated.use getPubkey instead -
toMap
- Overrides:
toMap
in classNostrMessage
-
equals
- Overrides:
equals
in classNostrMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classNostrMessage
-
clone
-
verify
- Throws:
Exception
-
verifyAsync
-
getIdBech32
-
getIdentifier
-
getPrefix
- Specified by:
getPrefix
in classNostrMessage
-
getFragments
- Specified by:
getFragments
in classNostrMessage
-
parse
-
getExpiration
- Specified by:
getExpiration
in interfaceNostrEvent
-
hasTag
- Specified by:
hasTag
in interfaceNostrEvent
-
getTag
- Specified by:
getTag
in interfaceNostrEvent
-
getFirstTag
- Specified by:
getFirstTag
in interfaceNostrEvent
-
listTagKeys
- Specified by:
listTagKeys
in interfaceNostrEvent
-
getTagRows
- Specified by:
getTagRows
in interfaceNostrEvent
-