From 099f0a0488bce8e59c9c9e9a5e9b1f24998f1633 Mon Sep 17 00:00:00 2001 From: Noor Date: Fri, 14 Mar 2025 09:44:03 +0000 Subject: [PATCH] Add app_name field to AppContract and NewAppReq messages; update AppDeployConfig struct --- proto/sgx/brain.proto | 2 ++ src/sgx/types/brain.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/proto/sgx/brain.proto b/proto/sgx/brain.proto index 0784f42..3cdde95 100644 --- a/proto/sgx/brain.proto +++ b/proto/sgx/brain.proto @@ -20,6 +20,7 @@ message AppContract { string collected_at = 12; string hratls_pubkey = 13; optional bytes public_package_mr_enclave = 14; + string app_name = 15; } message NewAppReq { @@ -32,6 +33,7 @@ message NewAppReq { uint64 locked_nano = 7; string hratls_pubkey = 8; optional bytes public_package_mr_enclave = 9; + string app_name = 10; } message AppResource { diff --git a/src/sgx/types/brain.rs b/src/sgx/types/brain.rs index c179c5b..ac29a49 100644 --- a/src/sgx/types/brain.rs +++ b/src/sgx/types/brain.rs @@ -51,7 +51,8 @@ pub struct AppDeployConfig { pub hours: u64, #[serde(default)] pub private_package: bool, - // pub public_package: bool, + #[serde(default)] + pub app_name: String, } impl From for AppDeployConfig { @@ -83,6 +84,7 @@ impl From for NewAppReq { locked_nano: val.locked_nano, hratls_pubkey: val.hratls_pubkey, public_package_mr_enclave: val.public_package_mr_enclave, + app_name: val.app_name, } } }