Skip to content

feat: use enum-based artifact sources - #194

Closed
wolfv wants to merge 1 commit into
artifact/readersfrom
artifact/source-enum
Closed

wolfv wants to merge 1 commit into
artifact/readersfrom
artifact/source-enum

Conversation

@wolfv

@wolfv wolfv commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds enum-based artifact source inputs so the main sign/verify functions can accept either artifact bytes/digests or wrapped readers:

  • ArtifactSource / AsyncArtifactSource
  • reader(...) / async_reader(...) helpers for easy conversion without trait overlap
  • existing *_reader methods remain as forwarding compatibility wrappers

Example:

signer.sign(sigstore_sign::reader(file)).await?;
sigstore_verify::verify(sigstore_verify::reader(file), &bundle, &policy, &root)?;

Testing

  • git diff --check
  • Not run: cargo check (cargo/rustc unavailable in this environment)

@wolfv

wolfv commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

Folded this design into #185 while resolving its merge conflicts, so this stacked PR is no longer needed.

@wolfv wolfv closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant