Ejemplo n.º 1
0
 def requestAttribute(self, attrib: Attribute, sender):
     """
     Used to get a raw attribute from Indy
     :param attrib: attribute to add
     :return: number of pending txns
     """
     self._attributes[attrib.key()] = attrib
     req = attrib.getRequest(sender)
     if req:
         return self.prepReq(req, key=attrib.key())
Ejemplo n.º 2
0
 def requestAttribute(self, attrib: Attribute, sender):
     """
     Used to get a raw attribute from Indy
     :param attrib: attribute to add
     :return: number of pending txns
     """
     self._attributes[attrib.key()] = attrib
     req = attrib.getRequest(sender)
     if req:
         return self.prepReq(req, key=attrib.key())
Ejemplo n.º 3
0
 def addAttribute(self, attrib: Attribute):
     """
     Used to create a new attribute on Indy
     :param attrib: attribute to add
     :return: number of pending txns
     """
     self._attributes[attrib.key()] = attrib
     req = attrib.ledgerRequest()
     if req:
         self.pendRequest(req, attrib.key())
     return len(self._pending)
Ejemplo n.º 4
0
 def addAttribute(self, attrib: Attribute):
     """
     Used to create a new attribute on Indy
     :param attrib: attribute to add
     :return: number of pending txns
     """
     self._attributes[attrib.key()] = attrib
     req = attrib.ledgerRequest()
     if req:
         self.pendRequest(req, attrib.key())
     return len(self._pending)