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
| Resource | Location |
|---|---|
| Crate | alx-protocol |
| Registry | crates.io |
| Install | cargo add alx-protocol |
| Binaries | alx validate and alx trace |
Capabilities
| Capability | Status |
|---|---|
| Canonicalization | Supported |
| Block creation and validation | Supported |
| Content hash and Block hash derivation | Supported |
| Parent lineage validation | Supported |
| Canonical Graph verification | Supported |
| Trace generation | Supported |
| Verification context | Supported |
| Merkle extension helpers | Supported |
| Ed25519 and P-256 signing | Supported |
| EIP-712 signing | Not 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.