Skip to content

Util

session_id_is_valid

Returns true if session_id has the right form (66 hex digits). This is a quick check, not a robust one: it does not check the leading byte prefix, nor the cryptographic properties of the pubkey for actual validity.

Declaration

BOOL session_id_is_valid(
    [in]    const char*     session_id
);

Parameters

  • session_id — [in] hex string of the session id

Returns

  • bool — Returns true if the session id has the right form