code: def encoded(self):
          
  
          encoded = {}
          for i in range(len(self.credType.names)):
              self.credType.names[i]
              attr_types = self.credType.attrTypes[i]
  
              for at in attr_types:
                  attrName = at.name
                  if attrName in self._vals:
                      if at.encode:
                          encoded[attrName] = encodeAttr(self._vals[attrName])
                      else:
                          encoded[attrName] = self._vals[at.name]
          return encoded
docs: This function will encode all the attributes to 256 bit integers
  
          :return: