sigstore-types
Core types and data structures for sigstore-rust.
Overview
This crate provides the fundamental data types used throughout the sigstore-rust ecosystem. It defines serialization formats for bundles, transparency log entries, checkpoints, DSSE envelopes, and other Sigstore primitives.
This is the base crate with no dependencies on other sigstore crates. All other crates in the workspace depend on sigstore-types.
Features
- Bundle types:
Bundle,TransparencyLogEntry,VerificationMaterial,InclusionProof - Checkpoint parsing:
Checkpoint,CheckpointSignaturefor signed tree heads - DSSE support:
DsseEnvelope,DsseSignaturefor Dead Simple Signing Envelope format - in-toto types:
Statement,Subjectfor attestation predicates - Hash types:
Sha256Hash,HashAlgorithm,MessageImprint - Encoding helpers: Base64, hex, DER/PEM encoding newtypes with serde support
Usage
use ;
// Parse a Sigstore bundle
let bundle: Bundle = from_str?;
// Parse a checkpoint (signed tree head)
let checkpoint = from_text?;
Related Crates
This crate is typically used indirectly through the higher-level APIs:
sigstore-verify- Signature verificationsigstore-sign- Signature creation
License
BSD-3-Clause