Companion

object Companion

Functions

Link copied to clipboard
fun fromJson(json: String): Event?
Link copied to clipboard
fun sign(sec: SecKey, kind: Int, tags: List<List<String>>, content: String, at: Instant = Instant.now()): Event

Sign an event of any kind with raw tags and content, as created at at truncated to the second. Prefer EventContent.sign for the kinds that have a model.