implemented hash on blockchain(core tests is stil broken)