nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / encodePrivkey

Function: encodePrivkey()

encodePrivkey(privkey): string

Encode a private key to bech32 nsec format

Parameters

privkey

string

Returns

string

Defined in

nips/nip-19.ts:27