SignedNostrEvent

data class SignedNostrEvent

One immutable, structurally and cryptographically verified NIP-01 event.

The object owns ordinary Kotlin values only. parse accepts complete wire JSON, verifies the declared ID and Schnorr signature in Rust, and preserves every raw tag element. fromWire is the equivalent adapter for applications that already decoded JSON with their platform serializer.

Types

Link copied to clipboard
object Companion

Validated constructors for untrusted wire events.

Properties

Link copied to clipboard

event content

Link copied to clipboard

Unix timestamp in seconds

Link copied to clipboard

cryptographically recomputed and verified event ID

Link copied to clipboard

event kind

Link copied to clipboard

verified event author

Link copied to clipboard

verified BIP-340 signature

Link copied to clipboard

exact ordered raw tags

Functions

Link copied to clipboard
fun toJson(): String

Serialize the seven NIP-01 fields as compact canonical JSON.