New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@algovoi/cloudevents

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@algovoi/cloudevents

Emit an AlgoVoi keystone decision as a CloudEvents 1.0 event with execution_ref as the content-addressed id (Apache-2.0). Byte-identical to algovoi-cloudevents (PyPI).

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

Keywords

cloudevents

FAQs

Package last updated on 27 Jun 2026

Related posts