Add docstring in helper_ackPayload

This commit is contained in:
Mahendra 2018-04-06 18:12:57 +05:30
parent a70b063004
commit ed26782114
No known key found for this signature in database
GPG Key ID: A672D8FAAEE398B3

View File

@ -1,3 +1,5 @@
"""This module is for generating ack payload."""
import highlevelcrypto
import helper_random
from binascii import hexlify
@ -13,6 +15,7 @@ from addresses import encodeVarint
def genAckPayload(streamNumber=1, stealthLevel=0):
"""Generate and return payload obj."""
if (stealthLevel == 2): # Generate privacy-enhanced payload
# Generate a dummy privkey and derive the pubkey
dummyPubKeyHex = highlevelcrypto.privToPub(