odin_token_generator_get_public_key
enum OdinError odin_token_generator_get_public_key(struct OdinTokenGenerator *token_generator,
char *out_public_key,
uint32_t *out_public_key_length);
Overview
Extracts the public key from the access key used by the specified token generator. The public key, derived from the Ed25519 curve, must be shared with 4Players to enable verification of a generated room token.
Parameters
| Name | Type | Description |
|---|
token_generator | struct OdinTokenGenerator * | The token generator handle. |
out_public_key | char * | Buffer to write the public key to. |
out_public_key_length | uint32_t * | Input: buffer size, Output: actual key length. |
Return Value
| Type | Description |
|---|
OdinError | ODIN_ERROR_SUCCESS on success. |