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.10.0.tar.gz (14.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.10.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.10.0.tar.gz
  • Upload date:
  • Size: 14.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.10.0.tar.gz
Algorithm Hash digest
SHA256 33e148a5942287d21e53986470ca9f9e8ae285a1c07f7482834c507b7ebae510
MD5 dd9367fcee83b6cf0c4518914ce617b6
BLAKE2b-256 a85727ac041c0da5f2c74fcb9817ec141f1ccb5c1e75f18d88385e767d3bac69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a5917599c4497659a152acea39b199927194c17bae353490ab48bbd4f1826a5
MD5 5db2d7301b2809cf0c0d1fd4b48e57db
BLAKE2b-256 8b0dd5c11e0fcd7fc944528d1a6b9ce7e497053480acce3c0223cf8eb317a2fd

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