EncryptedDm

data class EncryptedDm(val to: PubKey, val cipherText: CipherText, val tags: List<Tag> = listOf(PubKeyTag(to))) : EventContent

An encrypted direct message. Event kind 4, as defined in nip-04.

Constructors

Link copied to clipboard
constructor(from: SecKey, to: PubKey, message: String)
constructor(to: PubKey, cipherText: CipherText, tags: List<Tag> = listOf(PubKeyTag(to)))

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
fun decipher(from: PubKey, to: SecKey): String
Link copied to clipboard
open fun sign(sec: SecKey): Event
Link copied to clipboard
open override fun toJsonString(): String