pyeudiw.sd_jwt package
Submodules
pyeudiw.sd_jwt.common module
pyeudiw.sd_jwt.disclosure module
pyeudiw.sd_jwt.exceptions module
- exception pyeudiw.sd_jwt.exceptions.MissingConfirmationKey[source]
Bases:
ExceptionRaised when a given VP not contain a confirmation key
pyeudiw.sd_jwt.holder module
pyeudiw.sd_jwt.issuer module
pyeudiw.sd_jwt.schema module
- class pyeudiw.sd_jwt.schema.KeyBindingJwtHeader(*, typ: str, alg: str)[source]
Bases:
BaseModel- alg: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- typ: str
- class pyeudiw.sd_jwt.schema.KeyBindingJwtPayload(*, iat: int, aud: str, nonce: str, sd_hash: str)[source]
Bases:
BaseModel- aud: str
- iat: int
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- nonce: str
- sd_hash: str
- class pyeudiw.sd_jwt.schema.VcSdJwtHeaderSchema(*, typ: str, alg: str, kid: str | None = None, trust_chain: list[str] | None = None, x5c: str | None = None, vctm: list[str] | None = None)[source]
Bases:
BaseModel- alg: str
- kid: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- trust_chain: list[str] | None
- typ: str
- vctm: list[str] | None
- x5c: str | None
- class pyeudiw.sd_jwt.schema.VcSdJwtPayloadSchema(*, iss: HttpUrl, sub: str, iat: int, exp: int, status: dict, cnf: Dict[Literal['jwk'], JwkSchema], vct: str, verification: dict)[source]
Bases:
BaseModel- exp: int
- iat: int
- iss: HttpUrl
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context: Any, /) None
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Args:
self: The BaseModel instance. context: The context.
- status: dict
- sub: str
- vct: str
- verification: dict