aria-bsv-hasher — Canonical JSON serialization and SHA-256 hashing.
Implements the ARIA BRC-121 canonical JSON format, which is identical
to the Python SDK's canonical_json(): object keys are sorted
lexicographically, arrays preserve order, and output is UTF-8 bytes
with no whitespace.
Example
use ;
use json;
let h = hash_object.unwrap;
assert_eq!; // lowercase hex SHA-256
// Same result as: hash_bytes(b"{\"a\":1,\"b\":2}")
let direct = hash_bytes;
assert_eq!;
assert_eq!;