Creating InvType type and making Hash a type alias for Tuple4
Refactoring put method for InvType
Crypto checksum now uses Hash type internally