nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / decodePrivkey

Function: decodePrivkey()

decodePrivkey(nsec): string

Decode a bech32 nsec to hex privkey

Parameters

nsec

string

Returns

string

Defined in

nips/nip-19.ts:57