Validate a base58-encoded Solana public key.

Checks character set and length (32–44 chars for 32-byte keys).

1.0.0

  • Parameters

    • s: string

      String to validate.

    Returns s is never

    true if valid, and narrows the type to Pubkey.