sigstore / model-transparency

Supply chain security for ML
Apache License 2.0
113 stars 31 forks source link

Add binary digests as signing payloads. #262

Closed mihaimaruseac closed 3 months ago

mihaimaruseac commented 3 months ago

Summary

This converts DigestManifests to signing payloads in the style used by the existing serialize_v0/serialize_v1 implementations: just the digest as a bytes string.

For Sigstore signing, this payload can be signed via sign_artifact (and BytesIO to convert the bytes to the expected input type) to produce just a Sigstore bundle with the signature.

CC @susperius (showing how we can convert manifests to signing payload that is not in-toto).

Release Note

NONE

Documentation

NONE