Dstack-TEE / Dstack-TEE/dstack

DIP: Self-Describing Hash Format for Intel DCAP reportdata

Đang mở
#330 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
proposal
Ngôn ngữ chính
Rust
Star
544
Fork
96
Merge trung bình
17 giờ 57 phút
Pull request đã merge (30 ngày)
117

Mô tả

We propose a new standard format for encoding hashes in Intel DCAP attestation `reportdata`, which is limited to 64 bytes. The format is:

```
::
```

- Purpose: short human-readable identifier (≤10 chars).
- Algo: algorithm name (e.g., sha-256).
- Digest: Base64url-encoded hash, without padding.

This format is inspired by existing practices (ni://, SRI, Docker digests), but tailored for the strict 64-byte size constraint. It is primarily intended for SHA-256, since longer digests would overflow.

Advantages:
- Self-describing (algorithm embedded).
- Compact (Base64url shorter than hex).
- Domain separation via purpose prefix.
- Reusable tooling: can leverage existing ni:// and SRI libraries for serialization/parsing.

PR: #331

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.