Start working on plugin manager
This commit is contained in:
parent
0ce3c7d940
commit
654703d902
5 changed files with 146 additions and 14 deletions
|
|
@ -228,6 +228,12 @@ class OnionrUtils:
|
|||
conn.close()
|
||||
return False
|
||||
|
||||
def hasKey(self, key):
|
||||
'''
|
||||
Check for key in list of public keys
|
||||
'''
|
||||
return key in self._core.listPeers()
|
||||
|
||||
def validateHash(self, data, length=64):
|
||||
'''
|
||||
Validate if a string is a valid hex formatted hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue