コード例 #1
0
ファイル: wallet.py プロジェクト: dhh1128/indy-client
 def requestAttribute(self, attrib: Attribute, sender):
     """
     Used to get a raw attribute from Sovrin
     :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())
コード例 #2
0
ファイル: wallet.py プロジェクト: mzk-vct/sovrin-client
 def requestAttribute(self, attrib: Attribute, sender):
     """
     Used to get a raw attribute from Sovrin
     :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())
コード例 #3
0
ファイル: wallet.py プロジェクト: mzk-vct/sovrin-client
 def addAttribute(self, attrib: Attribute):
     """
     Used to create a new attribute on Sovrin
     :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)
コード例 #4
0
ファイル: wallet.py プロジェクト: dhh1128/indy-client
 def addAttribute(self, attrib: Attribute):
     """
     Used to create a new attribute on Sovrin
     :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)