nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / decodePubkey

Function: decodePubkey()

decodePubkey(npub): string

Decode a bech32 npub to hex pubkey

Parameters

npub

string

Returns

string

Defined in

nips/nip-19.ts:40