Skip to content

Commit 71726ae

Browse files
committed
fixed verify credential
1 parent 338f900 commit 71726ae

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pyweidentity/weidentityService.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def create_credentialpojo(self, cptId, issuerWeId, expirationDate, claim,invoker
147147

148148
return self.post("/weid/api/invoke", data=data_dict)
149149

150-
def verify_credentialpojo(self, cptId, issuanceDate, context, claim, credential_pojo_id, proof, issuerWeId, expirationDate):
150+
def verify_credentialpojo(self, cptId, issuanceDate, context, claim, credential_pojo_id, proof, _type, issuerWeId, expirationDate):
151151
# 验证CredentialPojo
152152
data_dict = {
153153
"functionArg": {
@@ -157,10 +157,7 @@ def verify_credentialpojo(self, cptId, issuanceDate, context, claim, credential_
157157
"claim": claim,
158158
"id": credential_pojo_id,
159159
"proof": proof,
160-
"type": [
161-
"VerifiableCredential",
162-
"hashTree"
163-
],
160+
"type": _type,
164161
"issuer": issuerWeId,
165162
"expirationDate": expirationDate
166163
},

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='pyweidentity',
8-
version='1.0',
8+
version='1.1',
99
author="99Kies",
1010
author_email='[email protected]',
1111
url="https://github.com/SUIBE-Blockchain/Weidentity-Python-SDK",

0 commit comments

Comments
 (0)