Exemplo n.º 1
0
 def __init__(self):
     self.private_key = None
     self.public_key = None
     self.param_pool = [
         "requesterNonce", "workOrderId", "workerId", "requesterId",
         "inData"
     ]
     self.tcs_worker = utility.read_toml_file("tcs_config.toml",
                                              "WorkerConfig")
Exemplo n.º 2
0
 def __init__(self):
     """
     Function to set the member variables of this class with default value as per TCf Spec
     """
     tcs_worker = utility.read_toml_file("tcs_config.toml", "WorkerConfig")
     self.hashing_algorithm = tcs_worker['HashingAlgorithm']
     self.signing_algorithm = tcs_worker['SigningAlgorithm']
     self.keyEncryptionAlgorithm = tcs_worker['KeyEncryptionAlgorithm']
     self.data_encryption_algorithm = tcs_worker['DataEncryptionAlgorithm']
     self.worker_typedata_verification_key = ""
     self.worker_encryption_key = ""
     self.worker_id = ""
Exemplo n.º 3
0
 def __init__(self):
     """
     Function to set the member variables of this class with default value as per TCf Spec
     """
     tcs_worker = utility.read_toml_file("tcs_config.toml", "WorkerConfig")
     self.work_order_sync_uri = ""
     self.work_order_async_uri = ""
     self.work_order_pull_uri = ""
     self.work_order_notify_ri = ""
     self.receipt_invocation_uri = ""
     self.work_oder_invocation_address = ""
     self.receipt_invocation_address = ""
     self.from_address = ""
     self.hashing_algorithm = tcs_worker['HashingAlgorithm']
     self.signing_algorithm = tcs_worker['SigningAlgorithm']
     self.key_encryption_algorithm = tcs_worker['KeyEncryptionAlgorithm']
     self.data_encryption_algorithm = tcs_worker['DataEncryptionAlgorithm']
     self.work_order_payload_formats = []