tests dids interoperability
This commit is contained in:
parent
37eca2005c
commit
05b29a6403
23
tests/test_interoperability.py
Normal file
23
tests/test_interoperability.py
Normal file
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue