Skip to content

About

Binary Confidential Attestation Protocol (BCAP1) schemas, vectors, portable cores, and provider adapters

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Binary confidential attestation

Binary Confidential Attestation Protocol v1 (BCAP1) is a provider-neutral challenge, evidence, verification, policy, and authorization contract for confidential workloads.

The relying party owns freshness and authorization. A carrier such as Atlas MessageBox delivers opaque authenticated messages but does not verify evidence or cache a trust verdict. Provider evidence authenticates the complete BCAP1 transcript digest: subject, audience, operation context, policy, security epoch, fresh nonce, and expiry.

This repository owns:

  • spec/ — versioned JSON Schemas and the normative contract snapshot;
  • vectors/ — immutable cross-language known-answer and rejection vectors;
  • typescript/ — browser-safe @binary/attestation portable core;
  • rust/core/ — provider-neutral binary-attestation-core;
  • rust/providers/dstack/ — binary-attestation-dstack, the dstack 0.5.x dstack-attest-v0 TDX/DCAP provider, the frozen-v0 GetKey subject-key relation and a BRC-100 identity policy (optional in-TEE producer);
  • later provider/runtime packages for dstack 0.6+, DCAP, and NVIDIA evidence.

binary-attestation-dstack's policy artifact (DstackPolicyArtifactV1, media type application/vnd.binary.dstack-policy+json;version=1) pins boot tuples in allowedBootMeasurements: mrtd, rtmr0, rtmr1, rtmr2 (48-byte lowercase hex, required) and xfam, tdAttributes (8-byte lowercase hex, optional). A tuple admits a quote only if every field it carries equals the authenticated value; a tuple without the two TD fields constrains the registers alone, so older policy JSON keeps parsing and verifying.

It does not own Atlas Relay behavior, MPC ceremonies, provider-native host runtimes in browser packages, or capability/key release policy.

Development

Prerequisites: current stable Rust, Node.js 22+, and pnpm 10+.

pnpm install --frozen-lockfile
bash scripts/baseline.sh

The first delivery gate is Atlas issue #605: A0 schemas/vectors followed by the hardware-free A1 state and policy core.

About

Binary Confidential Attestation Protocol (BCAP1) schemas, vectors, portable cores, and provider adapters

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages