Assessment reports>Cloak V1>Threat Model>getLatestEncryptionKey

Function: getLatestEncryptionKey()

This function returns the most recently registered encryptionKeys inserted via registerNewEncryptionKey by the KEY_MANAGER_ROLE.

Branches and code coverage

Intended branches

  • Verifies at least one key exists.

  • Returns the last key ID and its value.

Zellic © 2025Back to top ↑