reverse before hashing
test should be ok and need to fix impl