added function definitions & doc strings

This commit is contained in:
Kevin Froman 2018-01-16 02:32:17 -06:00
parent d3ef554df1
commit ce921d211c
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
2 changed files with 16 additions and 0 deletions

View File

@ -46,6 +46,16 @@ class OnionrCommunicate:
r = requests.get(url, headers=headers) r = requests.get(url, headers=headers)
response = r.text response = r.text
return response 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 shouldRun = False
debug = False debug = False
developmentMode = False developmentMode = False

View File

@ -148,3 +148,9 @@ class Core:
conn.commit() conn.commit()
conn.close() conn.close()
return return
def generateHMAC(self):
'''
generate and return an HMAC key
'''
return