Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

kvinwang/dstack-mr

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dstack-mr

This repository is archived and no longer maintained.

Please use the official tools from the Dstack-TEE/dstack repository:

  • For measurement calculation: dstack-mr
  • For attestation verification (recommended): verifier

Original README

A CLI tool for calculating TDX (Intel Trust Domain Extensions) measurements for Dstack images.

This project is based on oasis-cli and modified for Dstack-specific TDX measurement requirements.

Installation

go install github.com/kvinwang/dstack-mr@latest

Usage

You can either specify files directly using command line options:

dstack-mr -fw firmware.bin -kernel vmlinuz [options]

Or use a Dstack metadata.json file:

dstack-mr -metadata metadata.json [options]

Output Format

The tool outputs the following measurements:

# Text output (default)
MRTD: 1234567890abcdef...
RTMR0: abcdef1234567890...
RTMR1: 9876543210fedcba...
RTMR2: fedcba0987654321...
mr_aggregated: 0123456789abcdef...
mr_image: fedcba9876543210...

JSON output (with -json flag)

{
  "mrtd": "1234567890abcdef...",
  "rtmr0": "abcdef1234567890...",
  "rtmr1": "9876543210fedcba...",
  "rtmr2": "fedcba0987654321...",
  "mr_aggregated": "0123456789abcdef...",
  "mr_image": "fedcba9876543210..."
}

Measurement Details

  • MRTD: Measured Root of Trust for Data
  • RTMR0: Runtime Measurement Register 0
  • RTMR1: Runtime Measurement Register 1
  • RTMR2: Runtime Measurement Register 2
  • mr_aggregated: SHA256(MRTD + RTMR0 + RTMR1 + RTMR2)
  • mr_image: SHA256(MRTD + RTMR1 + RTMR2)

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.