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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.2.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.2.tar.gz
Algorithm Hash digest
SHA256 84ab3eb5281d80a079d08ae69ef84dd0e823d2eacb57aa19d74b2fd73f7d8d73
MD5 38025d7bdb8cdc769c7c322b6cb8b5ca
BLAKE2b-256 cfc3c2aa1fccf54e43c578edb9d53b1a7eacbaaa1176fe9a21bd73b0beef6910

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffbf82bdc7b6e4314841b7cac852ab9bafb44be55fc3abc18e4071103b859557
MD5 9da4ee67eb1b79c05fa0a422ce4e5021
BLAKE2b-256 fd0198fff80f405887a81c8ce8e6a1ce3dd29c943266b25cfdd31a7f121bd8b6

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