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.dev3.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.dev3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_signing_jws-0.3.0.dev3.tar.gz
Algorithm Hash digest
SHA256 f6c48346d8a8d8de31016fba5951034cab28ceaeb78c7bf6a9c5145bb436982c
MD5 cb95869b02e4f7395c0a0ba6c8068b66
BLAKE2b-256 4a35bc66e6aef1f57406e2f80e3a1dbcaefa88dc7f3e9e042d24e30bba80e745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_signing_jws-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3f67a03f50e06811cf7be1b74ed215d760e5b1f21c30af12e4cc72e8af93a01
MD5 bf281cda1b3c410d7114954bc175a6e7
BLAKE2b-256 8420fb45176935bd9829825e4aff1224926ccd3d478ecfe3b629767f0706c52f

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