From 3e1a608fbaa8388cebde0b01abd8fd76e8848d47 Mon Sep 17 00:00:00 2001 From: Yan Mingzhi Date: Mon, 22 Jan 2024 13:22:49 +0000 Subject: [PATCH] feat: improve upgrade transactions --- system-actors/src/tappstore/txns.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system-actors/src/tappstore/txns.rs b/system-actors/src/tappstore/txns.rs index a59e319..874c7a7 100644 --- a/system-actors/src/tappstore/txns.rs +++ b/system-actors/src/tappstore/txns.rs @@ -1,5 +1,4 @@ use serde::{Deserialize, Serialize}; -use std::collections::HashMap; use std::convert::TryFrom; use strum::Display; use tea_codec::errorx::Global; @@ -283,8 +282,8 @@ pub enum TappstoreTxn { UpgradeEnclaveVersion { url: String, version: String, - modules: HashMap, - pcrs: HashMap, + modules: Vec<(String, String)>, + pcrs: Vec<(PcrType, String)>, auth_b64: String, expire_at: TimestampShort, }, @@ -315,7 +314,7 @@ pub enum TappstoreTxn { }, AddVersionPcrs { version: String, - pcrs: HashMap, + pcrs: Vec<(PcrType, String)>, auth_b64: String, }, RemoveVersionPcrs {