Skip to main content

odin_access_key_secret_key

Retrieves the private key associated with an access key. The private key, rooted in the Ed25519 curve, is utilized to sign a generated room token for accessing the ODIN network.

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

Declaration
OdinReturnCode odin_access_key_secret_key(const char *access_key,
char *out_secret_key,
size_t out_secret_key_len);

Parameters

access_key

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

Declaration
const char *access_key;

out_secret_key

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

Declaration
char *out_secret_key;

out_secret_key_len

Size of the buffer for the secret key.

Declaration
size_t out_secret_key_len;

Returns

A return code indicating success or failure.

Return Type
OdinReturnCode