Skip to content

Commit 39800da

Browse files
committed
sdk: Remove rootfs_hash from TcbInfo
1 parent f09ad67 commit 39800da

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

sdk/go/dstack/client.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ type EventLog struct {
4848

4949
// Represents the TCB information
5050
type TcbInfo struct {
51-
Mrtd string `json:"mrtd"`
52-
RootfsHash string `json:"rootfs_hash"`
53-
Rtmr0 string `json:"rtmr0"`
54-
Rtmr1 string `json:"rtmr1"`
55-
Rtmr2 string `json:"rtmr2"`
56-
Rtmr3 string `json:"rtmr3"`
57-
EventLog []EventLog `json:"event_log"`
51+
Mrtd string `json:"mrtd"`
52+
Rtmr0 string `json:"rtmr0"`
53+
Rtmr1 string `json:"rtmr1"`
54+
Rtmr2 string `json:"rtmr2"`
55+
Rtmr3 string `json:"rtmr3"`
56+
EventLog []EventLog `json:"event_log"`
5857
}
5958

6059
// Represents the response from an info request

sdk/go/tappd/client.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,12 @@ type EventLog struct {
7878

7979
// Represents the TCB information
8080
type TcbInfo struct {
81-
Mrtd string `json:"mrtd"`
82-
RootfsHash string `json:"rootfs_hash"`
83-
Rtmr0 string `json:"rtmr0"`
84-
Rtmr1 string `json:"rtmr1"`
85-
Rtmr2 string `json:"rtmr2"`
86-
Rtmr3 string `json:"rtmr3"`
87-
EventLog []EventLog `json:"event_log"`
81+
Mrtd string `json:"mrtd"`
82+
Rtmr0 string `json:"rtmr0"`
83+
Rtmr1 string `json:"rtmr1"`
84+
Rtmr2 string `json:"rtmr2"`
85+
Rtmr3 string `json:"rtmr3"`
86+
EventLog []EventLog `json:"event_log"`
8887
}
8988

9089
// Represents the response from an info request

sdk/js/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface EventLog {
2828

2929
export interface TcbInfo {
3030
mrtd: string
31-
rootfs_hash: string
3231
rtmr0: string
3332
rtmr1: string
3433
rtmr2: string

sdk/python/src/dstack_sdk/dstack_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class EventLog(BaseModel):
9191

9292
class TcbInfo(BaseModel):
9393
mrtd: str
94-
rootfs_hash: str
9594
rtmr0: str
9695
rtmr1: str
9796
rtmr2: str

sdk/rust/src/dstack_client.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ impl InfoResponse {
174174
pub struct TcbInfo {
175175
/// The measurement root of trust
176176
pub mrtd: String,
177-
/// The hash of the root filesystem
178-
pub rootfs_hash: String,
179177
/// The value of RTMR0 (Runtime Measurement Register 0)
180178
pub rtmr0: String,
181179
/// The value of RTMR1 (Runtime Measurement Register 1)

0 commit comments

Comments
 (0)