in cvm-attestation/AttestationClient.py [0:0]
def __init__(self, endpoint: str, verifier: Verifier, isolation_type: IsolationType, claims = None, api_key = None):
# Validate the isolation type
if not isinstance(isolation_type, IsolationType):
raise ValueError(f"Unsupported isolation type: {isolation_type}. Supported types: {list(IsolationType)}")
# Validate the verifier
if not isinstance(verifier, Verifier):
raise ValueError(f"Unsupported isolation type: {verifier}. Supported types: {list(Verifier)}")
self.endpoint = endpoint
self.verifier = verifier
self.api_key = api_key
self.isolation_type = isolation_type
self.user_claims = claims