Currently crypto utilities in @iroha/core
are relying on a WebAssembly port of iroha_crypto
crate. While it works fine, it is hard to make it work in all environments uniformly (e.g. browser vs server-side).
Maybe, Web Crypto API could handle all of the cases?
API |
Support |
Hash |
Nope. Web Crypto doesn't support Blake2b. However, hash-wasm provides a tiny 6kb wasm with its implementation. |
todo |
todo |