Applesauce
    Preparing search index...

    Function normalizeToPubkey

    • Parses any nip-19 encoded string into a hex pubkey. Returns null if the string is not a valid pubkey.

      Parameters

      • str: `npub1${string}`

      Returns string

    • Parses any nip-19 encoded string into a hex pubkey. Returns null if the string is not a valid pubkey.

      Parameters

      • str: string

      Returns string | null