decode method
Implementation
@override
StorageHasher decode(Input input) {
final index = input.read();
switch (index) {
case 0:
return StorageHasher.blake2_128;
case 1:
return StorageHasher.blake2_256;
case 2:
return StorageHasher.blake2_128Concat;
case 3:
return StorageHasher.twox128;
case 4:
return StorageHasher.twox256;
case 5:
return StorageHasher.twox64Concat;
case 6:
return StorageHasher.identity;
default:
throw Exception('Unknown StorageHasher variant index $index');
}
}