mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-10 12:47:06 +00:00
Add keccak-512 to host functions. (#7531)
This commit is contained in:
1 parent
36a684a14b
commit
abe119abba
2 files changed
+10
No files matched your search
@@ -735,6 +735,11 @@ pub trait Hashing {
|
||||
sp_core::hashing::keccak_256(data)
|
||||
}
|
||||
|
||||
/// Conduct a 512-bit Keccak hash.
|
||||
fn keccak_512(data: &[u8]) -> [u8; 64] {
|
||||
sp_core::hashing::keccak_512(data)
|
||||
}
|
||||
|
||||
/// Conduct a 256-bit Sha2 hash.
|
||||
fn sha2_256(data: &[u8]) -> [u8; 32] {
|
||||
sp_core::hashing::sha2_256(data)
|
||||
|
||||
Reference in new issue
Block a user