You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under the (sigstore) API introduced in #323, there's sign and verify. The defaults work well together assuming the entity signing is the same entity verifying, and that the defaults haven't changed between sign/verify:
However, verification of the underlying signature requires knowledge of the HashingConfig used during signing. Again, if everyone uses the default, or the signing/verifying entities are the same that's fine. But defaults can change over time, and one model you download might be signed differently than another.
For the most flexible verification, API users need to inspect the signature before verifying it and:
Determine signature type (currently only sigstore DSSE envelope).
Determine manifest type, (all 4 combinations of { file, shard} x {manifest, digest of digests} )
If using file shards, confirm shard size
Confirm hashing algorithm (sha or blake)
I don't believe any of these have any trust implications, so the default verify function could do a lot of this transparently to the user.
The text was updated successfully, but these errors were encountered:
Description
Under the (sigstore) API introduced in #323, there's
sign
andverify
. The defaults work well together assuming the entity signing is the same entity verifying, and that the defaults haven't changed betweensign
/verify
:However, verification of the underlying signature requires knowledge of the
HashingConfig
used during signing. Again, if everyone uses the default, or the signing/verifying entities are the same that's fine. But defaults can change over time, and one model you download might be signed differently than another.For the most flexible verification, API users need to inspect the signature before verifying it and:
I don't believe any of these have any trust implications, so the default
verify
function could do a lot of this transparently to the user.The text was updated successfully, but these errors were encountered: