Nip19Identifier

One parsed and bounded NIP-19 display identifier.

Secret-key (nsec) and address-coordinate (naddr) values are deliberately outside this API. Relay hints must be ws or wss URLs. Unknown TLVs are retained across encode.

Types

Link copied to clipboard
object Companion

Validated parsing and construction helpers.

Properties

Link copied to clipboard

Optional canonical author for an event identifier.

Link copied to clipboard

Optional kind for an event identifier.

Link copied to clipboard

Parsed identifier family.

Link copied to clipboard

Canonical public key or event ID as lowercase hexadecimal.

Link copied to clipboard

Validated relay hints in wire order.

Link copied to clipboard

Unrecognized TLVs retained for forward compatibility.

Functions

Link copied to clipboard
fun encode(): String

Encode the canonical lowercase representation.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare every canonical field, including retained unknown TLVs.

Link copied to clipboard
open override fun hashCode(): Int

Hash every canonical field used by equals.

Link copied to clipboard
open override fun toString(): String

Return the canonical encoded identifier.