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": "",
})

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algovoi_revocation_ref-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for algovoi_revocation_ref-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8dcc9ee2efb74078077840a3b644dae22ca1dff9adb3abe0d569de274f8c7107
MD5 234b97cc6dc2eec92ab8ac0475f62e29
BLAKE2b-256 98a3d612d7a3bd14ea6c3b79f4f61670eb6151ed2bfb91c04c98602ce7bcd549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for algovoi_revocation_ref-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66fcf2725dddde64263385c7d5858096cc83be310193f2380f060eacc18f2fe1
MD5 31f5c9bd6e31827e87e4988ad0f6d313
BLAKE2b-256 b856b441dc2d574704a8e1b7c9047bf036df5cd6094c4b52988848971743261e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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