Adding Hash, InvVector types and changing some ByteString fields to more precise Word fields