oc · docs
docs / documentation

@orangecheck/sdk


@orangecheck/sdk / nostrPubkeyToHex

Function: nostrPubkeyToHex()

function nostrPubkeyToHex(value: string): string | null;

Defined in: nostr-pubkey.ts:12

A Nostr public key as lowercase hex, from either npub1… or hex. Null if it is neither.

Parameters

ParameterType
valuestring

Returns

string | null