Skip to main content

Rust Reference

The Rust implementation is alx-protocol, published on crates.io. The crate implements the core protocol as a peer of the JavaScript and Python packages and serves as the verifier-grade anchor for the family: it creates, validates, and traces Blocks from the same rules as the JavaScript and Python packages and is checked against the same conformance vectors.

Implementation

ResourceLocation
Cratealx-protocol
Registrycrates.io
Installcargo add alx-protocol
Binariesalx validate and alx trace

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 Rust

Choose this crate for verifiers, services, and tooling where a compiled, dependency-light implementation matters. Identities it computes match those from the JavaScript and Python packages for the same content and parent set.