work on peer encryption
This commit is contained in:
parent
a0dc95c291
commit
297cac81ae
@ -133,9 +133,9 @@ class API:
|
||||
elif action == 'ping':
|
||||
resp = Response("pong!")
|
||||
elif action == 'getHMAC':
|
||||
resp = Response(self._crypto.generateHMAC())
|
||||
resp = Response(self._crypto.generateSymmetric())
|
||||
elif action == 'getSymmetric':
|
||||
pass
|
||||
resp = Response(self._crypto.generateSymmetric())
|
||||
elif action == 'getDBHash':
|
||||
resp = Response(self._utils.getBlockDBHash())
|
||||
elif action == 'getBlockHashes':
|
||||
|
@ -161,6 +161,7 @@ class Onionr:
|
||||
logger.error('Invalid peer ID')
|
||||
message = logger.readline("Enter a message: ")
|
||||
logger.info("Sending message to " + peer)
|
||||
self.onionrUtils.sendPM(peer, message)
|
||||
|
||||
|
||||
def openGUI(self):
|
||||
|
@ -36,4 +36,8 @@ class OnionrCrypto:
|
||||
def verifyPGP(self, peer, signature):
|
||||
'''Verify PGP signed data'''
|
||||
gpg = gnupg.GPG(homedir=self._core.gpgHome)
|
||||
|
||||
|
||||
def generateSymmetric():
|
||||
return
|
||||
def generateHMAC():
|
||||
return
|
Loading…
Reference in New Issue
Block a user