Skip to content

Commit

Permalink
Moved code relative to openid4vp in the relative package
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalDR committed Nov 2, 2023
1 parent 6faf81b commit 98d494d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 1 addition & 11 deletions pyeudiw/federation/schemas/wallet_relying_party.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from enum import Enum
from typing import Any, List
from pyeudiw.jwk.schema import JwksSchema
from pydantic import BaseModel, HttpUrl
from pydantic import BaseModel, HttpUrl, PositiveInt
from pyeudiw.openid4vp.schemas.wallet_relying_party import VPFormat

class AcrValuesSupported(str, Enum):
spid_l1 = "https://www.spid.gov.it/SpidL1"
Expand Down Expand Up @@ -37,16 +37,6 @@ class AuthorizationSignedResponseAlg(str, Enum):
rs256 = "RS256"
es256 = "ES256"

class VPSigningAlgResponseSupported(str, Enum):
eddsa = "EdDSA"
es256k = "ES256K"

class VPAlgorithmSchema(BaseModel):
alg: List[VPSigningAlgResponseSupported]

class VPFormat(BaseModel):
jwt_vp_json: VPAlgorithmSchema

class WalletRelyingParty(BaseModel):
application_type: str
client_id: HttpUrl
Expand Down
14 changes: 14 additions & 0 deletions pyeudiw/openid4vp/schemas/wallet_relying_party.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from enum import Enum
from typing import List
from pydantic import BaseModel


class VPSigningAlgResponseSupported(str, Enum):
eddsa = "EdDSA"
es256k = "ES256K"

class VPAlgorithmSchema(BaseModel):
alg: List[VPSigningAlgResponseSupported]

class VPFormat(BaseModel):
jwt_vp_json: VPAlgorithmSchema

0 comments on commit 98d494d

Please sign in to comment.