SHA512 is overkill, SHA256 works fine here
Reverted parts of ac06c8e3, my mistake sorry