Skip to content

Commit

Permalink
add tags while injecting key during did creation
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Sep 26, 2024
1 parent dcd6294 commit 4d8805f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions aries_cloudagent/wallet/askar.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ async def get_signing_key(self, verkey: str) -> KeyInfo:
raise WalletNotFoundError("Unknown key: {}".format(verkey))
metadata = json.loads(key.metadata or "{}")

try:
kid = key.tags.get("kid")
except:
kid = None
kid = key.tags.get("kid")

# FIXME implement key types
return KeyInfo(verkey=verkey, metadata=metadata, key_type=ED25519, kid=kid)
Expand Down Expand Up @@ -264,7 +261,7 @@ async def create_local_did(

try:
await self._session.handle.insert_key(
verkey, keypair, metadata=json.dumps(metadata)
verkey, keypair, metadata=json.dumps(metadata), tags={}
)
except AskarError as err:
if err.code == AskarErrorCode.DUPLICATE:
Expand Down

0 comments on commit 4d8805f

Please sign in to comment.