added function definitions & doc strings
This commit is contained in:
parent
d3ef554df1
commit
ce921d211c
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user