Reaction

sealed class Reaction : EventContent

A reaction to an event. Event kind 7, as defined in nip-25.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val eventId: ByteString
Link copied to clipboard
open override val kind: Int
Link copied to clipboard
open override val tags: List<Tag>

Functions

Link copied to clipboard
Link copied to clipboard
open fun sign(sec: SecKey): Event

open fun sign(sec: SecKey, at: Instant): Event

Sign this content as created at at, truncated to the second. Signing the same content with the same key at the same second yields an event with the same id, which a relay stores once.

Link copied to clipboard
open override fun toJsonString(): String
Link copied to clipboard
open override fun toString(): String