in cvm-attestation/src/AttestationProvider.py [0:0]
def create_payload(self, evidence: str, runtimes_data: str):
# Check if evidence and runtimes_data are strings
if not isinstance(evidence, str):
raise ValueError("The 'evidence' argument must be an encoded string.")
if not isinstance(runtimes_data, str):
raise ValueError("The 'runtimes_data' argument must be an encoded string.")
payload = ''
if self.isolation == IsolationType.TDX:
payload = {
'quote': evidence
}
else:
raise ValueError(f"Invalid Isolation Type. Valid Types: {IsolationType.TDX}")
return payload