Skip to content

Commit 4c81b6f

Browse files
authored
Merge pull request #18 from iconloop/fix-vc-score-parameter
Fix vc score parameter not to include invalid payload fields
2 parents e642dc1 + 1a0d114 commit 4c81b6f

File tree

3 files changed

+204
-245
lines changed

3 files changed

+204
-245
lines changed

didsdk/score/vc_score_parameter.py

-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ def register_jwt(credential: str, private_key: PrivateKey) -> str:
1111
credential_payload: dict = payload.as_dict()
1212
payload = Payload(
1313
{
14-
"type": "REGIST",
1514
"issuerDid": credential_payload["iss"],
1615
"sig": credential_jwt.signature,
1716
"issueDate": credential_payload["iat"],
18-
"revokeDate": 0,
1917
"expiryDate": credential_payload["exp"],
2018
}
2119
)
@@ -27,7 +25,6 @@ def revoke_jwt(credential: str, did: str, private_key: PrivateKey) -> str:
2725
credential_jwt: Jwt = Jwt.decode(credential)
2826
payload = Payload(
2927
{
30-
"type": "REVOKE",
3128
"sig": credential_jwt.signature,
3229
"issuerDid": did,
3330
"revokeDate": int(time.time()),

0 commit comments

Comments
 (0)