Removed both redundant inheritance of CryptoHash enum and assigned values to cases