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.8.3.tar.gz (12.7 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.8.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.3.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.4","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.8.3.tar.gz
Algorithm Hash digest
SHA256 24cf834d63e05f3fae6a64fa07ad59a860e64d73a270dc217f444ffb2a7e22d4
MD5 551f75a0afd259bff8ce6f35c224d9ec
BLAKE2b-256 496ec54efed66f449735bb1549fd21ce93e83d8757589bd1a2562ceff951dd06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.3-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.4","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.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 89d357c7f23177c3d1ebcd44b18f8775e2b3df0eaff00913d38e7d1692721429
MD5 2e706c453d1c0861126f04dffa4f212a
BLAKE2b-256 3a43174cee8bdbb4f246b61ef9cfc9363b4fb2765b6308d392b529b9af6cd830

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