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