|
|
|
@ -44,7 +44,7 @@ class GNUnetRest:
|
|
|
|
|
r = requests.get(self.identity_name + key_hash)
|
|
|
|
|
return r.json()['pubkey'] if r.ok else (False, r.reason)
|
|
|
|
|
|
|
|
|
|
def fetch_identity_namestore(self):
|
|
|
|
|
def fetch_namestore_default_identity(self):
|
|
|
|
|
"""Returns the default identity of subsystem 'namestore'."""
|
|
|
|
|
r = requests.get(self.identity_namestore)
|
|
|
|
|
return r.json()['name'] if r.ok else (False, r.reason)
|
|
|
|
@ -73,7 +73,7 @@ class GNUnetRest:
|
|
|
|
|
|
|
|
|
|
# Namestore Section
|
|
|
|
|
|
|
|
|
|
def set_namestore_identity(self, identity_name):
|
|
|
|
|
def set_namestore_default_identity(self, identity_name):
|
|
|
|
|
"""Sets the default Identity for subsystem 'namestore'.
|
|
|
|
|
|
|
|
|
|
Returns True if successful tuple if not.
|
|
|
|
|