From 05b29a6403e8285096fd382bf9edd5e2ca8f1640 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 27 May 2024 11:42:13 +0200 Subject: [PATCH] tests dids interoperability --- tests/test_interoperability.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/test_interoperability.py diff --git a/tests/test_interoperability.py b/tests/test_interoperability.py new file mode 100644 index 0000000..632cec8 --- /dev/null +++ b/tests/test_interoperability.py @@ -0,0 +1,23 @@ +import json +import didkit +import multicodec +import multiformats +import nacl.encoding + +from did import generate_keys, generate_did + + +def test_key_from_didkit(): + key = didkit.generate_ed25519_key() + did_didkit = didkit.key_to_did("key", key) + did_pyvckit = generate_did(key) + assert did_didkit == did_pyvckit + + +def test_key_from_pyvckit(): + key = generate_keys() + did_didkit = didkit.key_to_did("key", key) + did_pyvckit = generate_did(key) + assert did_didkit == did_pyvckit + +