from typing import Literal
from pydantic import BaseModel, HttpUrl, field_validator
from pydantic_core.core_schema import ValidationInfo
from pyeudiw.tools.schema_utils import check_algorithm
from pyeudiw.wallet_attestations.models.cnf import CNFSchema
# todo add claims validators
[docs]
class WalletInstanceAttestationRequestPayload(BaseModel):
iss: str
aud: HttpUrl
exp: int
iat: int
nonce: str
hardware_signature: str
integrity_assertion: str
attested_key: str
hardware_key_tag: str
cnf: CNFSchema
# todo add claims validators