def __init__(self): self.private_key = None self.public_key = None self.param_pool = ["requesterNonce", "workOrderId", "workerId", "requesterId", "inData"] self.tcs_worker = pconfig.read_config_from_toml("tcs_config.toml", "WorkerConfig")
def __init__(self): """ Function to set the member variables of this class with default value as per TCf Spec. """ tcs_worker = pconfig.read_config_from_toml("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 = []