getAppEnvEncryptPubKey
GET /kms/{kms}/pubkey/{app_id}
Retrieves the encryption public key managed by a KMS instance for a specific app. This key is used to encrypt environment variables before sending them to the Phala Cloud API.
For PHALA KMS, the public key is returned directly in the provisionCvm response as app_env_encrypt_pubkey. You only need to call this function explicitly when using on-chain KMS (ETHEREUM/BASE), where the app ID comes from deploying a contract.
Parameters:
Returns:
GetAppEnvEncryptPubKey
Example:
safeGetAppEnvEncryptPubKey
Safe variant that returns aSafeResult<GetAppEnvEncryptPubKey> instead of throwing on errors.
