Skip to main content

Emit an AlgoVoi keystone decision as a CloudEvents 1.0 event, with execution_ref as the recomputable content-addressed event identity (Apache-2.0)

Project description

algovoi-cloudevents

Emit an AlgoVoi keystone decision as a CloudEvents 1.0 event. The content-addressed execution_ref is the event id; the keystone references live in data and the standard id / subject attributes (no invented context extension attributes, so the event stays spec-conformant). A consumer recomputes execution_ref from data with only JCS (RFC 8785) + SHA-256 and confirms it equals the event id.

from algovoi_cloudevents import to_cloudevent, verify_cloudevent_execution_ref
ev = to_cloudevent(decision_ref=dr, action_type="payment", scope="payments/transfer",
                   outcome="COMMITTED", executed_at_ms=1716460800000,
                   source="did:web:api.algovoi.co.uk", stage="execution")
assert verify_cloudevent_execution_ref(ev)   # recompute from data, 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_cloudevents-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

algovoi_cloudevents-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for algovoi_cloudevents-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fabce376596d14e6153bdc3cbc3d19425cf469fea86ebd9fa0b7b252bcc4f891
MD5 5e3314322f9e96a6728577478b6431af
BLAKE2b-256 81150e2c7774a3415d83916a02de38e8e5d9604d9adaf73f382a09681d582962

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for algovoi_cloudevents-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4ceb728ebaeb72e8e908adf3d7abc449b6cf07d2010513822394cad113cb08
MD5 43b8eea3ecff4337b6530c2048f0439f
BLAKE2b-256 85d8d381cb5cdb70c0d3a65b2faeb60f2fbc0bf316bfcb0ac2247b3961c04c61

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