fix path when import a module
This commit is contained in:
parent
0dbcc6b30d
commit
54ac9a5972
|
@ -10,7 +10,7 @@ from jwcrypto import jwk
|
|||
from urllib.parse import urlparse
|
||||
from nacl.signing import SigningKey
|
||||
from nacl.encoding import RawEncoder
|
||||
from templates import did_document_tmpl
|
||||
from pyvckit.templates import did_document_tmpl
|
||||
|
||||
|
||||
def key_to_did(public_key_bytes, url):
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import json
|
||||
import argparse
|
||||
from utils import now
|
||||
from did import generate_did, get_signing_key, key_read
|
||||
from templates import credential_tmpl, proof_tmpl
|
||||
from sign import sign_proof
|
||||
from pyvckit.utils import now
|
||||
from pyvckit.did import generate_did, get_signing_key, key_read
|
||||
from pyvckit.templates import credential_tmpl, proof_tmpl
|
||||
from pyvckit.sign import sign_proof
|
||||
|
||||
|
||||
# source: https://github.com/mmlab-aueb/PyEd25519Signature2018/blob/master/signer.py
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import json
|
||||
import argparse
|
||||
|
||||
from utils import now
|
||||
from templates import presentation_tmpl, proof_tmpl
|
||||
from did import key_read, generate_did, get_signing_key
|
||||
from sign import sign_proof
|
||||
from pyvckit.utils import now
|
||||
from pyvckit.templates import presentation_tmpl, proof_tmpl
|
||||
from pyvckit.did import key_read, generate_did, get_signing_key
|
||||
from pyvckit.sign import sign_proof
|
||||
|
||||
|
||||
def sign_vp(signing_key, holder_did, vc):
|
||||
|
|
|
@ -6,7 +6,7 @@ import multiformats
|
|||
|
||||
from nacl.signing import VerifyKey
|
||||
|
||||
from sign import to_jws_payload
|
||||
from pyvckit.sign import to_jws_payload
|
||||
|
||||
|
||||
def get_signing_input(payload):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import argparse
|
||||
from verify import verify_vc
|
||||
from pyvckit.verify import verify_vc
|
||||
|
||||
|
||||
def get_credential(path_credential):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import json
|
||||
import argparse
|
||||
from verify import verify_vc
|
||||
from pyvckit.verify import verify_vc
|
||||
|
||||
|
||||
def get_presentation(path_presentation):
|
||||
|
|
|
@ -3,12 +3,12 @@ import multicodec
|
|||
import multiformats
|
||||
import nacl.encoding
|
||||
|
||||
from did import generate_keys, generate_did, get_signing_key, gen_did_document
|
||||
from sign_vc import sign
|
||||
from sign_vp import sign_vp
|
||||
from verify import verify_vc
|
||||
from verify_vp import verify_vp
|
||||
from utils import now
|
||||
from pyvckit.did import generate_keys, generate_did, get_signing_key, gen_did_document
|
||||
from pyvckit.sign_vc import sign
|
||||
from pyvckit.sign_vp import sign_vp
|
||||
from pyvckit.verify import verify_vc
|
||||
from pyvckit.verify_vp import verify_vp
|
||||
from pyvckit.utils import now
|
||||
|
||||
|
||||
def test_generated_did_key():
|
||||
|
|
|
@ -6,12 +6,12 @@ import didkit
|
|||
# import nacl.encoding
|
||||
from ast import literal_eval
|
||||
|
||||
from sign_vc import sign
|
||||
from sign_vp import sign_vp
|
||||
from verify import verify_vc
|
||||
from verify_vp import verify_vp
|
||||
from utils import now
|
||||
from did import generate_keys, generate_did, get_signing_key
|
||||
from pyvckit.sign_vc import sign
|
||||
from pyvckit.sign_vp import sign_vp
|
||||
from pyvckit.verify import verify_vc
|
||||
from pyvckit.verify_vp import verify_vp
|
||||
from pyvckit.utils import now
|
||||
from pyvckit.did import generate_keys, generate_did, get_signing_key
|
||||
|
||||
|
||||
def verify_credential(vc):
|
||||
|
|
Loading…
Reference in New Issue