def __init__(self, name: str=None, supportedDidMethods: DidMethods=None): PWallet.__init__(self, name, supportedDidMethods or DefaultDidMethods) TrustAnchoring.__init__(self) self._attributes = {} # type: Dict[(str, Identifier, # Optional[Identifier]), Attribute] self.env = None # Helps to know associated environment self._nodes = {} self._upgrades = {} self._pconfigs = {} self._connections = OrderedDict() # type: Dict[str, Connection] # Note, ordered dict to make iteration deterministic self.knownIds = {} # type: Dict[str, Identifier] # transactions not yet submitted self._pending = deque() # type Tuple[Request, Tuple[str, Identifier, # Optional[Identifier]] # pending transactions that have been prepared (probably submitted) self._prepared = {} # type: Dict[(Identifier, int), Request] self.lastKnownSeqs = {} # type: Dict[str, int] self.replyHandler = { ATTRIB: self._attribReply, GET_ATTR: self._getAttrReply, NYM: self._nymReply, GET_NYM: self._getNymReply, GET_TXNS: self._getTxnsReply, NODE: self._nodeReply, POOL_UPGRADE: self._poolUpgradeReply, POOL_CONFIG: self._poolConfigReply }
def __init__(self, name: str, supportedDidMethods: DidMethods=None): PWallet.__init__(self, name, supportedDidMethods or DefaultDidMethods) TrustAnchoring.__init__(self) self._attributes = {} # type: Dict[(str, Identifier, # Optional[Identifier]), Attribute] self.env = None # Helps to know associated environment self._nodes = {} self._upgrades = {} self._links = OrderedDict() # type: Dict[str, Link] # Note, ordered dict to make iteration deterministic self.knownIds = {} # type: Dict[str, Identifier] # transactions not yet submitted self._pending = deque() # type Tuple[Request, Tuple[str, Identifier, # Optional[Identifier]] # pending transactions that have been prepared (probably submitted) self._prepared = {} # type: Dict[(Identifier, int), Request] self.lastKnownSeqs = {} # type: Dict[str, int] # dict for proof request schema Dict[str, Dict[str, any]] self._proofRequestsSchema = None self.replyHandler = { ATTRIB: self._attribReply, GET_ATTR: self._getAttrReply, NYM: self._nymReply, GET_NYM: self._getNymReply, GET_TXNS: self._getTxnsReply, NODE: self._nodeReply, POOL_UPGRADE: self._poolUpgradeReply }
def __init__(self, name: str, supportedDidMethods: DidMethods = None): PWallet.__init__(self, name, supportedDidMethods or DefaultDidMethods) Sponsoring.__init__(self) self._attributes = {} # type: Dict[(str, Identifier, # Optional[Identifier]), Attribute] self._links = {} # type: Dict[str, Link] self.knownIds = {} # type: Dict[str, Identifier] # transactions not yet submitted self._pending = deque() # type Tuple[Request, Tuple[str, Identifier, # Optional[Identifier]] # pending transactions that have been prepared (probably submitted) self._prepared = {} # type: Dict[(Identifier, int), Request] self.lastKnownSeqs = {} # type: Dict[str, int] self.replyHandler = { ATTRIB: self._attribReply, GET_ATTR: self._getAttrReply, NYM: self._nymReply, GET_NYM: self._getNymReply, GET_TXNS: self._getTxnsReply, }