Skip to content

Move DstackAttestation / Collateral / QuoteBytes into attestation-types #3268

@pbeza

Description

@pbeza

Background

After #3245 the post-DCAP helpers live in attestation-types, but the bundle types mpc-contract actually holds in state (DstackAttestation, Collateral, QuoteBytes) still live in attestation. Without moving these, mpc-contract would still need to link attestation (and therefore dcap-qvl) to hold the attestation it received from the operator.

User Story

As an MPC contract maintainer, I want the on-state attestation types in a dcap-qvl-free crate so the MPC contract can hold and serialize them without linking the cryptographic library.

Acceptance Criteria

  • DstackAttestation moves to attestation-types.
  • Collateral and QuoteBytes are owned by tee-verifier-interface and re-exported from attestation-types (so consumers have one import path).
  • attestation-types gains a dep on tee-verifier-interface.
  • attestation re-exports the moved types for back-compat.
  • Workspace builds + all tests pass.

Resources & Additional Notes

PR: #3246. Depends on #3245. Tracked by #3264.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions