From ce921d211cdf6798a62cac7d72d39cdca1b696c8 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 16 Jan 2018 02:32:17 -0600 Subject: [PATCH] added function definitions & doc strings --- onionr/communicator.py | 10 ++++++++++ onionr/core.py | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/onionr/communicator.py b/onionr/communicator.py index 87074ddb..41e1ff62 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -46,6 +46,16 @@ class OnionrCommunicate: r = requests.get(url, headers=headers) response = r.text return response + def shareHMAC(self, peerID, key): + '''This function shares an HMAC key to a peer + ''' + return + def getPeerProof(self, peerID): + '''This function gets the current peer proof requirement''' + return + def sendPeerProof(self, peerID, data): + '''This function sends the proof result to a peer previously fetched with getPeerProof''' + return shouldRun = False debug = False developmentMode = False diff --git a/onionr/core.py b/onionr/core.py index 04dc0b76..ee282721 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -148,3 +148,9 @@ class Core: conn.commit() conn.close() return + + def generateHMAC(self): + ''' + generate and return an HMAC key + ''' + return \ No newline at end of file