Skip to content

Commit

Permalink
1.2.lts patch (#3477)
Browse files Browse the repository at this point in the history
* fix: ensure profile names are unique

Signed-off-by: Daniel Bluhm <[email protected]>

* fix: same fix for anon profile

Signed-off-by: Daniel Bluhm <[email protected]>

* Upgrade askar and did_webvh

Signed-off-by: jamshale <[email protected]>

* Update aries-askar to 0.4.3

Signed-off-by: jamshale <[email protected]>

---------

Signed-off-by: Daniel Bluhm <[email protected]>
Signed-off-by: jamshale <[email protected]>
Co-authored-by: Daniel Bluhm <[email protected]>
  • Loading branch information
jamshale and dbluhm authored Jan 30, 2025
1 parent c849183 commit 2bf5c71
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 45 deletions.
6 changes: 4 additions & 2 deletions acapy_agent/askar/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def __init__(
profile_id: Optional[str] = None,
):
"""Create a new AskarProfile instance."""
super().__init__(context=context, name=opened.name, created=opened.created)
super().__init__(
context=context, name=profile_id or opened.name, created=opened.created
)
self.opened = opened
self.ledger_pool: Optional[IndyVdrLedgerPool] = None
self.profile_id = profile_id
Expand All @@ -52,7 +54,7 @@ def __init__(
@property
def name(self) -> str:
"""Accessor for the profile name."""
return self.opened.name
return self.profile_id or self.opened.name

@property
def store(self) -> Store:
Expand Down
6 changes: 4 additions & 2 deletions acapy_agent/askar/profile_anon.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def __init__(
profile_id: Optional[str] = None,
):
"""Create a new AskarProfile instance."""
super().__init__(context=context, name=opened.name, created=opened.created)
super().__init__(
context=context, name=profile_id or opened.name, created=opened.created
)
self.opened = opened
self.ledger_pool: Optional[IndyVdrLedgerPool] = None
self.profile_id = profile_id
Expand All @@ -54,7 +56,7 @@ def __init__(
@property
def name(self) -> str:
"""Accessor for the profile name."""
return self.opened.name
return self.profile_id or self.opened.name

@property
def store(self) -> Store:
Expand Down
50 changes: 11 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ uuid_utils = "^0.10.0"
# did libraries
did-peer-2 = "^0.1.2"
did-peer-4 = "^0.1.4"
did-webvh = "^0.2.1"
did-webvh = ">=0.3.0"

# Verifiable Credentials
indy-credx = "~1.1.1"
anoncreds = "0.2.0"

# askar
aries-askar = "~0.3.2"
aries-askar = ">=0.4.3"

# indy
indy-vdr = "~0.4.0"
Expand Down

0 comments on commit 2bf5c71

Please sign in to comment.