Metadata-Version: 2.4
Name: swarmauri_tokens_sshsig
Version: 0.11.0.dev1
Summary: SSH signature token service for Swarmauri
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: swarmauri,sdk,standards,tokens,sshsig
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.15
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Provides-Extra: ecdsa
Provides-Extra: ed25519
Requires-Dist: cryptography (>=41.0.3)
Requires-Dist: cryptography ; extra == "ecdsa"
Requires-Dist: cryptography ; extra == "ed25519"
Requires-Dist: swarmauri_base
Requires-Dist: swarmauri_core
Description-Content-Type: text/markdown

![Swarmauri Logo](https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri_sdk_brand.png)

<p align="center">
    <a href="https://pepy.tech/project/swarmauri_tokens_sshsig/">
        <img src="https://static.pepy.tech/badge/swarmauri_tokens_sshsig/month" alt="PyPI - Downloads"/></a>
    <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_tokens_sshsig/">
        <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_tokens_sshsig.svg"/></a>
    <a href="https://pypi.org/project/swarmauri_tokens_sshsig/">
        <img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
    <a href="https://pypi.org/project/swarmauri_tokens_sshsig/">
        <img src="https://img.shields.io/pypi/l/swarmauri_tokens_sshsig" alt="PyPI - License"/></a>
    <a href="https://pypi.org/project/swarmauri_tokens_sshsig/">
        <img src="https://img.shields.io/pypi/v/swarmauri_tokens_sshsig?label=swarmauri_tokens_sshsig&color=green" alt="PyPI - swarmauri_tokens_sshsig"/></a>
    <a href="https://discord.gg/N4UpBuQv8T">
        <img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>

# swarmauri_tokens_sshsig

An SSH signature token service for the Swarmauri framework. This service
implements minting and verifying tokens signed with SSH-compatible
algorithms such as Ed25519 and ECDSA P-256.

## Features

- Mint and verify compact `SSHSIG` tokens
- Supports `ssh-ed25519` and `ecdsa-sha2-nistp256`
- Integrates with the Swarmauri token management framework

## Installation

```bash
pip install swarmauri_tokens_sshsig
```

## Usage

```python
from swarmauri_tokens_sshsig import SshSigTokenService
from swarmauri_core.key_providers import IKeyProvider

key_provider: IKeyProvider = ...  # Provide an implementation of IKeyProvider
svc = SshSigTokenService(key_provider, default_issuer="example.com")

token = await svc.mint({"sub": "alice"}, alg="ssh-ed25519", kid="ed1")
claims = await svc.verify(token, issuer="example.com")
```

The token format uses a compact three-part structure similar to JWT but relies
on SSH signature algorithms. The payload is encoded as deterministic JSON and
bound to a namespace before signing, providing interoperability with existing
SSH key infrastructures.

## Want to help?

If you want to contribute to swarmauri-sdk, read up on our
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
that will help you get started.


