Compare commits

..

No commits in common. "95e9ab01f00eaec32182237b5391291185659aaa" and "aeac3b6e596e58464ab613b371d0825978a5612d" have entirely different histories.

14 changed files with 26 additions and 29 deletions

View File

@ -10,7 +10,7 @@ from jwcrypto import jwk
from urllib.parse import urlparse
from nacl.signing import SigningKey
from nacl.encoding import RawEncoder
from pyvckit.templates import did_document_tmpl
from templates import did_document_tmpl
def key_to_did(public_key_bytes, url):

View File

@ -1,3 +0,0 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

View File

@ -9,8 +9,8 @@ test_requires = [
setup(
name="pyvckit",
version="0.0.4",
packages=['pyvckit'],
version="0.0.1",
packages=find_packages(),
install_requires=[
"jsonref",
"PyLD",

View File

@ -1,9 +1,9 @@
import json
import argparse
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
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
# source: https://github.com/mmlab-aueb/PyEd25519Signature2018/blob/master/signer.py

View File

@ -1,10 +1,10 @@
import json
import argparse
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
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
def sign_vp(signing_key, holder_did, vc):

View File

@ -3,12 +3,12 @@ import multicodec
import multiformats
import nacl.encoding
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
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
def test_generated_did_key():

View File

@ -6,12 +6,12 @@ import didkit
# import nacl.encoding
from ast import literal_eval
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
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
def verify_credential(vc):

View File

@ -6,7 +6,7 @@ import multiformats
from nacl.signing import VerifyKey
from pyvckit.sign import to_jws_payload
from sign import to_jws_payload
def get_signing_input(payload):

View File

@ -1,5 +1,5 @@
import argparse
from pyvckit.verify import verify_vc
from verify import verify_vc
def get_credential(path_credential):

View File

@ -1,6 +1,6 @@
import json
import argparse
from pyvckit.verify import verify_vc
from verify import verify_vc
def get_presentation(path_presentation):