Start working on plugin manager

This commit is contained in:
Arinerron 2018-04-22 20:42:37 -07:00
parent 0ce3c7d940
commit 654703d902
No known key found for this signature in database
GPG key ID: 99383627861C62F0
5 changed files with 146 additions and 14 deletions

View file

@ -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