Skip to main content

odin_access_key_public_key

Retrieves the public key associated with an access key. The public key, derived from the Ed25519 curve, must be shared with 4Players to enable verification of a generated room token.

See our guides on access keys and tokens for more information.

Declaration
OdinReturnCode odin_access_key_public_key(const char *access_key,
char *out_public_key,
size_t out_public_key_len);

Parameters

access_key

Pointer to the access key whose public key is to be retrieved.

Declaration
const char *access_key;

out_public_key

Pointer to a buffer where the public key will be stored.

Declaration
char *out_public_key;

out_public_key_len

Size of the buffer for the public key.

Declaration
size_t out_public_key_len;

Returns

A return code indicating success or failure.

Declaration
OdinReturnCode