Add proper keccak-256 (maxcoin)

Cleaned from djm34 repo