EventContent

interface EventContent

A type that can be signed and converted into an Event

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val kind: Int
Link copied to clipboard
abstract 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
abstract fun toJsonString(): String