Skip to main content

Crate sigstore_rekor

Crate sigstore_rekor 

Source
Expand description

Rekor transparency log client for Sigstore

This crate provides a client for interacting with Rekor, the Sigstore transparency log service.

§Features

  • cache - Enable caching support for log info and public key responses. When enabled, use [RekorClientBuilder::with_cache] to configure a cache adapter.

§Example

use sigstore_rekor::RekorClient;

let client = RekorClient::public();
let log_info = client.get_log_info().await?;
println!("Tree size: {}", log_info.tree_size);

With caching enabled:

use sigstore_rekor::RekorClient;
use sigstore_cache::FileSystemCache;

let cache = FileSystemCache::default_location()?;
let client = RekorClient::builder("https://rekor.sigstore.dev")
    .with_cache(cache)
    .build();

Re-exports§

pub use body::RekorEntryBody;
pub use client::get_public_log_info;
pub use client::RekorClient;
pub use client::RekorClientBuilder;
pub use entry::DsseEntry;
pub use entry::DsseEntryV2;
pub use entry::HashedRekord;
pub use entry::HashedRekordV2;
pub use entry::LogEntry;
pub use entry::LogInfo;
pub use entry::RekorApiVersion;
pub use entry::SearchIndex;
pub use error::Error;
pub use error::Result;

Modules§

body
Strongly-typed Rekor entry body structures
client
Rekor client for transparency log operations
entry
Rekor log entry types
error
Error types for sigstore-rekor