code: def to_dict(self):
          
  
          return {
              'id': self.id,
              'type': str(self.type.ver_type),
              'controller': canon_ref(self.did, self.controller),
              **self.type.specification(self.value)
          }
docs: Return dict representation of public key to embed in DID document.