Skip to content

Commit

Permalink
use key type class
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick <[email protected]>
  • Loading branch information
PatStLouis committed Sep 15, 2024
1 parent 43643db commit 022063c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aries_cloudagent/did/tests/test_did_key_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ...core.in_memory import InMemoryProfile
from ...core.in_memory import InMemoryProfile
from ...wallet.did_method import DIDMethods
from ...wallet.key_type import ED25519


class TestDIDKeyOperations(IsolatedAsyncioTestCase):
Expand All @@ -15,15 +16,15 @@ class TestDIDKeyOperations(IsolatedAsyncioTestCase):

async def test_create_ed25519_did_key(self):
results = await DIDKey().create(
key_type="ed25519", profile=self.profile, seed=self.test_seed
key_type=ED25519, profile=self.profile, seed=self.test_seed
)
assert results["did"] == self.did
assert results["kid"] == self.kid
assert results["multikey"] == self.multikey

async def test_bind_did_key(self):
results = await DIDKey().create(
key_type="ed25519", profile=self.profile, seed=self.test_seed
key_type=ED25519, profile=self.profile, seed=self.test_seed
)
results = await DIDKey().bind(did=results["did"], kid=self.new_kid)
assert results["did"] == self.did
Expand Down

0 comments on commit 022063c

Please sign in to comment.