Skip to main content

decode vc-jwt and vp-jwt from the command line

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[cli]" --index-url https://gitlab.com/api/v4/projects/81099593/packages/pypi/simple

vc-jwt-decoder can also be installed without the [cli] extra and used as a library (decoding, verification, RDF export) without pulling in rich.

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 Create the file .gitlab-ci-local-variables.yml with this content

---
SEMREL_DRY_RUN: true # avoid messing with production
GITLAB_TOKEN: XXX # create a token with those permissions: read_repository, write_repository, api

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.1.tar.gz
  • Upload date:
  • Size: 12.5 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.1.tar.gz
Algorithm Hash digest
SHA256 3c53feb76b42a3e92b7075f072d8d815ee436fe01400172f8e2b1d026d6d372b
MD5 efb7521de03fe93d4c6ec625a09542f7
BLAKE2b-256 c912d3f4e931377a2c93b183323ae849326809a5ed6febdc5248d3535a8ec40a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vc_jwt_decoder-1.8.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf7c86d6a337600b8495778cfe5e4abed7c89dfe7a68ac58e0632b030cca443
MD5 ded951f9d3b3ac7bcd335e40c7d5129b
BLAKE2b-256 90b7b0ee777bd42c78f2c06a499caf554e7d5c3cb5d1903556fe03bf77b2dbc4

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