Skip to main content

Decode, verify and inspect W3C Verifiable Credential / Presentation tokens (VC-JWT, VP-JWT, COSE) from the command line or as a library

Project description

VC JWT Decoder (CLI)

pipeline status coverage report Latest Release

Features:

  • decode VC JWT
  • decode VP JWT
  • decode VP JWT with encapsulated VC
  • decode COSE JWT
  • support did:web signature verification
  • support did:wba signature verification
  • support did:key signature verification. Supports ed25519-pub, secp256k1-pub, p256-pub, p384-pub
  • support did:jwk signature verification
  • support did:dns signature verification
  • support OpenID Connect signature verification
  • support reading attachement from PDFs
  • export data as RDF. Supports .json-ld, .xml, .trix, .ttl, .trig, .nt, .n3

Install

pip install vc-jwt-decoder      # as a library (no CLI)
pip install vc-jwt-decoder[cli] # as a command line tool

Usage

vc-jwt-decoder <token_file>

demo

Example:

wget -q https://gitlab.com/cde-public/credentials/-/raw/main/participants/participant_vc_cispe_vc_urn:cde:v5:c92e611f-e97e-40e9-8ee6-31e7c60e6892.jwt -O - | vc-jwt-decoder

Development

Local testing

uv build
uv run pytest -v

Local CI

For local CI with gitlab-ci-local

gitlab-ci-local

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

vc_jwt_decoder-1.9.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

vc_jwt_decoder-1.9.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file vc_jwt_decoder-1.9.0.tar.gz.

File metadata

  • Download URL: vc_jwt_decoder-1.9.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.24.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vc_jwt_decoder-1.9.0.tar.gz
Algorithm Hash digest
SHA256 0621e962fb8089d89ca8a35f0a30ca080a0c3741e567e520a6d6e218ee5a3c75
MD5 bfd92c7cfa0b61f6d32c295e319a06d7
BLAKE2b-256 13a249d600e60b1a22bf572fc03cff43f937f8c22ae4d38f7472f75717e614d3

See more details on using hashes here.

File details

Details for the file vc_jwt_decoder-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: vc_jwt_decoder-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.24.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vc_jwt_decoder-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1371046d99badcfc7d5dc3359c342915c7128293007e6c74cdd9b9aaf39f666b
MD5 32eac692dd679e4b15c89f531d59d3ff
BLAKE2b-256 234c66cda1248a60c6dd53806b0a2c6cdd3a4c10314371618179ca66441dca15

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