Skip to main content

algovoi-revocation-ref

Content-addressed revocation references for the AlgoVoi substrate: revoke a delegation (or other authority) before it expires, tamper-evidently. The revocation_ref is the content hash of the revocation envelope, so any change to the target, time, reason or revoker changes the ref and is detectable offline. Revocations chain via prev_revocation_ref.

revocation_ref = "sha256:" + SHA-256(JCS(RFC 8785)({
    prev_revocation_ref, reason, revoked_at_ms, revoked_ref, revoker_id }))

revoked_at_ms is an integer-millisecond timestamp; reason is one of COMPROMISE, SUPERSEDED, POLICY, EXPIRY, MANUAL. Construction, tamper-detection and chain verification only, fully offline.

Install

pip install algovoi-revocation-ref

Use

from algovoi_revocation_ref import revocation_ref, verify_chain

ref = revocation_ref({
    "revoker_id": "did:web:example.com",
    "revoked_ref": "sha256:" + "a" * 64,
    "reason": "COMPROMISE",
    "revoked_at_ms": 1737000000000,
    "prev_revocation_ref": "",
})

Wiring into Keystone

A revocation binds a Keystone grant by reference. revoked_ref is the content-addressed reference of the delegation (or other authority) being pulled back, and revocations chain through prev_revocation_ref into a tamper-evident sequence you check with verify_chain. A decision or journey compares its references against the revocation chain so nothing acts under a revoked grant.

This package is construction, tamper-detection and chain verification only. The revocation cascade proof (that an action at or after revoked_at_ms acted under revoked authority, even across several hops) is a separate AlgoVoi component, the commercial Orchestrator.

Apache-2.0. Byte-identical to the TypeScript twin.

Metadata

Release files for algovoi-revocation-ref 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algovoi-revocation-ref 0.4.2
File Size Uploaded Provenance Actions
algovoi_revocation_ref-0.4.2.tar.gz 8.2 kB Without provenance Details for algovoi_revocation_ref-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algovoi-revocation-ref 0.4.2
File Interpreter ABI Platform Actions
algovoi_revocation_ref-0.4.2-py3-none-any.whl Python 3 none any Details for algovoi_revocation_ref-0.4.2-py3-none-any.whl

Total release size: 18.2 kB

Release files / algovoi_revocation_ref-0.4.2.tar.gz

Download URL algovoi_revocation_ref-0.4.2.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ae6116efc44926496f2f54070bbdd145aa79dea244d52db429ed42d1a98f7f0b
BLAKE2b-256 checksum
How to use checksums
ee99a091031e54dcae6eca9d4368817e14a31c2697d6ca6bff9a2a56828a2aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / algovoi_revocation_ref-0.4.2-py3-none-any.whl

Download URL algovoi_revocation_ref-0.4.2-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f825f3c00793e65cbe713d9d4808335619235d676145e482fcf80d35523f167
BLAKE2b-256 checksum
How to use checksums
16d81958a2845117866e2a8ba6dc3f4241167e7be04f63687216a67d19ccce33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for algovoi-revocation-ref 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page