Skip to main content

SSH signature token service for Swarmauri

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tokens_sshsig


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

pip install swarmauri_tokens_sshsig

Usage

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 that will help you get started.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_tokens_sshsig-0.3.0.dev47.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarmauri_tokens_sshsig-0.3.0.dev47-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_tokens_sshsig-0.3.0.dev47.tar.gz.

File metadata

  • Download URL: swarmauri_tokens_sshsig-0.3.0.dev47.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tokens_sshsig-0.3.0.dev47.tar.gz
Algorithm Hash digest
SHA256 cbbaa4d14962e8f8c548ab973765f01a9bef8f0d60729957ea51b2ca76c0a9e9
MD5 4f9f7a3a72884cc3006b9d26d1c85e08
BLAKE2b-256 0465862acff25d19c0fe0dae958ae744da12df5646fc4abbb2b467c50ef78db5

See more details on using hashes here.

File details

Details for the file swarmauri_tokens_sshsig-0.3.0.dev47-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_tokens_sshsig-0.3.0.dev47-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tokens_sshsig-0.3.0.dev47-py3-none-any.whl
Algorithm Hash digest
SHA256 10fd0fbf43f5ab81af2eae1124f67f2af2bb1c3cebd9ec11c8c9fb58b5897e8e
MD5 1a339040e33238b822a8818bb00618f6
BLAKE2b-256 3b11187467efad311d0c301ee187ccb26c64e9874e3c66913766c6d545dca671

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page