Skip to content

Commit a4cbef1

Browse files
committed
add registry to indy wallet
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
1 parent 4065c78 commit a4cbef1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aries_cloudagent/wallet/indy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,12 @@ async def __get_keypair_signing_key(self, verkey: str) -> KeyInfo:
192192
try:
193193
key_pair_mgr = KeyPairStorageManager(IndySdkStorage(self.opened))
194194
key_pair = await key_pair_mgr.get_key_pair(verkey)
195+
# TODO: inject context to support more keytypes
196+
key_types = KeyTypes()
195197
return KeyInfo(
196198
verkey=verkey,
197199
metadata=key_pair["metadata"],
198-
key_type=KeyType.from_key_type(key_pair["key_type"]),
200+
key_type=key_types.from_key_type(key_pair["key_type"]) or BLS12381G2,
199201
)
200202
except (StorageNotFoundError):
201203
raise WalletNotFoundError(f"Unknown key: {verkey}")

0 commit comments

Comments
 (0)