Skip to content

Commit b5bf3fd

Browse files
authored
Merge pull request #98 from didx-xyz/fix/verkey-validation
Remove verkey validation as it only support ed25519
2 parents fde3277 + dd65f78 commit b5bf3fd

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_requirements(filename: str):
1919
if __name__ == "__main__":
2020
setup(
2121
name=PACKAGE_NAME,
22-
version="0.9.1-beta0",
22+
version="0.9.1-beta1",
2323
description="A simple python package for controlling an aries agent through the admin-api interface",
2424
long_description=long_description,
2525
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)