PubKey

data class PubKey(val key: ByteString) : Key

Nostr public key.

Constructors

Link copied to clipboard
constructor(key: ByteString)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val key: ByteString
Link copied to clipboard

nip-19 bech32 encoded form of this key

Link copied to clipboard

The shortened form of this key's npub. For example, npub1sdnq9yr3kwzaauhylwty6ttnum6zgcf34s0lwcythjcew8zss8fqlm45zq becomes sdnq9yr3:fqlm45zq, being the first 8 (after npub1) and the last 8 with a colon between.

Functions

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