Skip to content

Expose signature in SignedCertificateTimestamp interface #7198

Closed

Description

@tetsuo-cpp

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

  1. reaperhulk commented on May 5, 2022

    @reaperhulk
    Member

    Adding a signature getter would definitely be useful. We'll be happy to review a PR. Do you also need signature algorithm?

  2. tetsuo-cpp commented on May 5, 2022

    @tetsuo-cpp
    ContributorAuthor

    Adding a signature getter would definitely be useful. We'll be happy to review a PR. Do you also need signature algorithm?

    Yeah I think I may as well add a getter for the algorithm while I'm at it.

  3. alex commented on May 13, 2022

    @alex
    Member

    done in b9f4ca3

  4. locked as resolved and limited conversation to collaborators on Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions