Skip to main content

Emit an AlgoVoi keystone decision as a W3C Verifiable Credential (Data Model 2.0) with a recomputable executionRef subject id (Apache-2.0)

Project description

algovoi-keystone-vc

Emit an AlgoVoi keystone decision as a W3C Verifiable Credential (Data Model 2.0). The credential uses our own KeystoneExecutionCredential type and @context, so it needs no registration. The content-addressed executionRef is the credentialSubject.id; a consumer recomputes it from the subject with only JCS (RFC 8785) + SHA-256, so the credential is content-bound before any signature suite is applied. Signing (a DataIntegrityProof such as eddsa-jcs-2022) is the issuer's step.

from algovoi_keystone_vc import to_verifiable_credential, verify_vc_execution_ref
vc = to_verifiable_credential(decision_ref=dr, action_type="payment", scope="payments/transfer",
                              outcome="COMMITTED", executed_at_ms=1716460800000,
                              issuer="did:web:api.algovoi.co.uk")
assert verify_vc_execution_ref(vc)   # recompute from credentialSubject, offline

Apache-2.0.

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

algovoi_keystone_vc-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

algovoi_keystone_vc-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_keystone_vc-0.1.0.tar.gz.

File metadata

  • Download URL: algovoi_keystone_vc-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_keystone_vc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b26668034af4de1db686c147e6cb634eba82dc500b86c18d1b168ac2148a8350
MD5 2804a63e757607ddee43310ff4ca7e6d
BLAKE2b-256 43b0544b106ed51cee12a6e284e36d999de25a8f4ef1d2fdecb02a11f16d93fa

See more details on using hashes here.

File details

Details for the file algovoi_keystone_vc-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_keystone_vc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3af163b52c7f0656fdbf1147a07a86366ad3c338b60bf0d57a7c726d5f39b3d6
MD5 32e68b29177f802b605f1f4c74505c97
BLAKE2b-256 a4e396b393ff9376c24b86dd1697146c3d8734c0e3ae4421618095e94020cf68

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