mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 23:18:01 +00:00
Forward port blake2 storage support (#2360)
* move storage maps to blake2_128 (#2268) * remove default hash, introduce twox_128 and blake2 * use blake2_128 & create ext_blake2_128 * refactor code * add benchmark * factorize generator * fix * parameterizable hasher * some fix * fix * fix * fix * metadata * fix * remove debug print * map -> blake2_256 * fix test * fix test * Apply suggestions from code review Co-Authored-By: thiolliere <gui.thiolliere@gmail.com> * impl twox 128 concat (#2353) * impl twox_128_concat * comment addressed * fix * impl twox_128->64_concat * fix test * Fix compilation and cleanup some docs * Apply suggestions from code review Co-Authored-By: bkchr <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
Gavin Wood
parent
21d1ee4e99
commit
f0862606b7
@@ -7,7 +7,7 @@ use alloc::vec::Vec;
|
||||
use alloc::slice;
|
||||
|
||||
use runtime_io::{
|
||||
set_storage, storage, clear_prefix, print, blake2_256,
|
||||
set_storage, storage, clear_prefix, print, blake2_128, blake2_256,
|
||||
twox_128, twox_256, ed25519_verify, sr25519_verify, enumerated_trie_root
|
||||
};
|
||||
|
||||
@@ -68,6 +68,7 @@ impl_stubs!(
|
||||
input.to_vec()
|
||||
},
|
||||
test_blake2_256 => |input| blake2_256(input).to_vec(),
|
||||
test_blake2_128 => |input| blake2_128(input).to_vec(),
|
||||
test_twox_256 => |input| twox_256(input).to_vec(),
|
||||
test_twox_128 => |input| twox_128(input).to_vec(),
|
||||
test_ed25519_verify => |input: &[u8]| {
|
||||
|
||||
Reference in New Issue
Block a user