Skip to main content

Composite JWS signer/verifier for Swarmauri

Project description

Swamauri Logo

Swarmauri Signing JWS

Composite JSON Web Signature (JWS) signer and verifier combining multiple Swarmauri signing providers.

Features:

  • Supports compact and general JWS serialization
  • Routes algorithms to existing HMAC, RSA, ECDSA, Ed25519, and optional secp256k1 signers
  • Optional CBOR canonicalization via cbor2

Installation

pip install swarmauri_signing_jws

Usage

from swarmauri_signing_jws import JwsSignerVerifier

verifier = JwsSignerVerifier()
compact = await verifier.sign_compact(payload={"msg": "hi"}, alg="HS256", key={"kind": "raw", "key": "secret"})
result = await verifier.verify_compact(compact, hmac_keys=[{"kind": "raw", "key": "secret"}])

Entry Point

The signer registers under the swarmauri.signings entry point as JwsSignerVerifier.

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_signing_jws-0.3.0.dev4.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_signing_jws-0.3.0.dev4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_signing_jws-0.3.0.dev4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_signing_jws-0.3.0.dev4.tar.gz
Algorithm Hash digest
SHA256 47288a9603c722ddc46b5fbd8562e9b4459197402574464158fb79a144021513
MD5 87235d8b03cf6f420bead3b2f38949fc
BLAKE2b-256 0efe2d78deac0e5af58c066b3b472094197a83d1947b88da08d3a3771054e2cc

See more details on using hashes here.

File details

Details for the file swarmauri_signing_jws-0.3.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_signing_jws-0.3.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff1f852406cd086461c6c516bbb2a8e0214896386da3faf7ea9b2fba682cee52
MD5 2f9bc377051e694b770150c16e761e86
BLAKE2b-256 60f00adec4817abbde95b1b8cbe2c8a9c49daf4f115d73bee5df7b8ac43e93ba

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