Commit 76cfac8
authored
Add a higher level API. (#323)
* Add a higher level API.
Currently, this only supports Sigstore (and only DSSE on verification).
I want to push this now so that people can start playing with it while I
update the Colab demo and try to make the API more uniform and add
support for the missing cases.
With this, the default signing should be as simple as
```
from model_signing import api as model_signing_api
model_signing_api.sign(model_path, signature_path)
```
And verification would be as simple as:
```
from model_signing import api as model_signing_api
model_signing_api.verify(
model_path, signature_path,
expected_identity, expected_oidc_provider
)
```
Will think on how to simplify this even further..
Signed-off-by: Mihai Maruseac <[email protected]>
* Handle review comments
Signed-off-by: Mihai Maruseac <[email protected]>
---------
Signed-off-by: Mihai Maruseac <[email protected]>1 parent 4bf6566 commit 76cfac8
2 files changed
+584
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
0 commit comments