UserMetaData

data class UserMetaData(val name: String? = null, val about: String? = null, val picture: String? = null, val nip05: String? = null, val banner: String? = null, @Json(name = "display_name") val displayName: String? = null, val website: String? = null, val tags: List<Tag> = emptyList()) : EventContent

User metadata (profile). Event kind 0, as defined in nip-01.

Constructors

Link copied to clipboard
constructor(name: String? = null, about: String? = null, picture: String? = null, nip05: String? = null, banner: String? = null, @Json(name = "display_name") displayName: String? = null, website: String? = null, tags: List<Tag> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val about: String? = null
Link copied to clipboard
val banner: String? = null
Link copied to clipboard
val displayName: String? = null
Link copied to clipboard
open override val kind: Int
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val nip05: String? = null
Link copied to clipboard
val picture: String? = null
Link copied to clipboard
open override val tags: List<Tag>
Link copied to clipboard
val website: String? = null

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