2 releases
0.0.16 | Jun 30, 2022 |
---|---|
0.0.15 | Nov 9, 2021 |
#16 in #iop
Used in 2 crates
35KB
457 lines
WASM bindings for json-digest
This crate is to be reexported in other WASM crates, like we do it in sdk-wasm. It is not meant to be used on its own.
lib.rs
:
This library provides some algorithms to calculate cryptographically secure digests of JSON documents. Since JSON is an ambiguous serialization format, we also had to define a canonical deterministic subset of all allowed documents. Order of keys in an object and Unicode normalization are well-defined in this subset, making it suitable for hashing.
Dependencies
~3.5–5MB
~108K SLoC