docs.rs failed to build epcis-hash-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
epcis-hash-0.1.1
epcis-hash
Deterministic SHA-256 Canonical Hashing implementation for GS1 EPCIS 2.0 events.
This crate implements the deterministic serialization and hashing procedure outlined by the GS1 and OpenEPCIS standards, allowing systems to produce matching, duplicate-preventing hash identifiers for identical events.
Features
- Field Exclusion: Automatically strips event metadata fields such as
recordTime,eventID, andeventIdthat are set downstream and do not belong in the canonical hash. - Normalization: Standardizes timestamps (e.g.
eventTime,declarationTime) to UTC with millisecond-precision formats prior to hashing. - Deterministic Ordering: Recursively sorts object keys and primitive arrays alphabetically to enforce ordering independence.
Quick Start
use ;
use compute_canonical_hash;
use Utc;
License
Licensed under either of Apache-2.0 or MIT.