Skip to content

Commit e9b5581

Browse files
committed
🎨 remove verkey validation - ACA-Py regex pattern only matches ed25519 key types. Validation for BBS signature type remains to be added.
1 parent fde3277 commit e9b5581

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

aries_cloudcontroller/model/did.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,6 @@ def did_pattern(cls, value):
4040
raise ValueError(f"Value of did does not match regex pattern ('{pattern}')")
4141
return value
4242

43-
@validator("verkey")
44-
def verkey_pattern(cls, value):
45-
# Property is optional
46-
if value is None:
47-
return
48-
49-
pattern = (
50-
r"^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$"
51-
)
52-
if not re.match(pattern, value):
53-
raise ValueError(
54-
f"Value of verkey does not match regex pattern ('{pattern}')"
55-
)
56-
return value
57-
5843
class Config:
5944
allow_population_by_field_name = True
6045

aries_cloudcontroller/model/get_did_verkey_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ class GetDIDVerkeyResponse(BaseModel):
2121

2222
verkey: Optional[str] = None
2323

24-
@validator("verkey")
25-
def verkey_pattern(cls, value):
26-
# Property is optional
27-
if value is None:
28-
return
29-
30-
pattern = (
31-
r"^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{43,44}$"
32-
)
33-
if not re.match(pattern, value):
34-
raise ValueError(
35-
f"Value of verkey does not match regex pattern ('{pattern}')"
36-
)
37-
return value
38-
3924
class Config:
4025
allow_population_by_field_name = True
4126

0 commit comments

Comments
 (0)