allocating public private key pair

parent 3f7afffa
from SystemEntity import SystemEntity
import logging
import Utility
class Node(SystemEntity):
def __init__(self,id,network):
......@@ -9,6 +10,10 @@ class Node(SystemEntity):
self.id = id
self.adjacentNodes = []
self.messageQueue = []
self.sk, self.pk = Utility.genratePublicPrivateKey()
'''make sure methods included here are not overriddenn'''
self.commands={"sendMessage":self.sendMessage,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment