Skip to main content

Python Reference

The Python implementation is alx-protocol, published on PyPI. The package implements the core protocol as a peer of the JavaScript and Rust packages: it creates, validates, and traces Blocks from the same rules as the JavaScript and Rust packages and is checked against the same conformance vectors, so identities agree across languages.

Implementation

ResourceLocation
Packagealx-protocol
RegistryPyPI
Installpip install alx-protocol
RequirementsPython 3.11 or later

Capabilities

CapabilityStatus
CanonicalizationSupported
Block creation and validationSupported
Content hash and Block hash derivationSupported
Parent lineage validationSupported
Canonical Graph verificationSupported
Trace generationSupported
Verification contextSupported
Merkle extension helpersSupported
Ed25519 and P-256 signingSupported
EIP-712 signingNot bundled

When to Use Python

Choose this package for Python services, data pipelines, and AI workflows that create or verify Blocks. Identities it computes match those from the JavaScript and Rust packages for the same content and parent set.