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
{{ message }}
Repository navigation
Expose signature in SignedCertificateTimestamp interface #7198
Hey there. Firstly, thanks so much for building this excellent library. It's been a pleasure to use.
One thing I noticed is that the SCT interface doesn't expose the underlying signature. As part of sigstore-python, we'd like to verify the signature (assembling the digitally signed struct and using the signing certificate to check it against the supplied the signature). This would be a lot easier if we could access it via a member called signature or similar.
It seems that the signature even gets extracted in the Rust code here, so it seems like it should be possible to pass it into the SCT type and expose it.
Is there any reason that this might be a bad idea? If you're open to this, I'd be keen to follow up with a PR.
Activity
reaperhulk commentedon May 5, 2022
Adding a signature getter would definitely be useful. We'll be happy to review a PR. Do you also need signature algorithm?
tetsuo-cpp commentedon May 5, 2022
Yeah I think I may as well add a getter for the algorithm while I'm at it.
alex commentedon May 13, 2022
done in b9f4ca3