Skip to content

Commit 76cfac8

Browse files
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

File tree

2 files changed

+584
-0
lines changed

2 files changed

+584
-0
lines changed

src/model_signing/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
"""For the stable high-level API, see model_signing.api."""
16+
1517
__version__ = "0.0.2-alpha"

0 commit comments

Comments
 (0)