Add keccak-512 to host functions. (#7531)

This commit is contained in:
Tomasz Drwięga
2020-12-11 16:41:18 +01:00
committed by GitHub
parent 36a684a14b
commit abe119abba
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -16,6 +16,11 @@
// limitations under the License.
//! Hashing functions.
//!
//! This module is gated by `full-crypto` feature. If you intend to use any of the functions
//! defined here within your runtime, you should most likely rather use [sp_io::hashing] instead,
//! unless you know what you're doing. Using `sp_io` will be more performant, since instead of
//! computing the hash in WASM it delegates that computation to the host client.
use blake2_rfc;
use sha2::{Digest, Sha256};