Companion

object Companion

Validated parsing and construction helpers.

Functions

Link copied to clipboard
fun event(eventId: NostrEventId, relays: List<String> = emptyList(), author: NostrPublicKey? = null, eventKind: NostrEventKind? = null, unknownTlvs: List<Nip19UnknownTlv> = emptyList()): Nip19Identifier

Construct a canonical nevent identifier.

Link copied to clipboard

Construct a canonical note identifier.

Link copied to clipboard

Parse one untrusted NIP-19 identifier at the Rust boundary.

Link copied to clipboard
fun profile(publicKey: NostrPublicKey, relays: List<String> = emptyList(), unknownTlvs: List<Nip19UnknownTlv> = emptyList()): Nip19Identifier

Construct a canonical nprofile identifier.

Link copied to clipboard

Construct a canonical npub identifier.