verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

unable to use revocation #94

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

version 0.0.4 Because "vsw list -cs" does not list any credentials, a user will not be able to discover any of the parameters required in the "vsw revoke" command, and therefore can't revoke any credential. See also #89

Currently the vsw revoke names 3 options to specify the credential to be revoked, we need to make sure that this identifier is saved in wallet so that the number is still available after exiting vsw.

root@a178189822b0:/# vsw revoke Either the Credential Exchange ID, or Credential Registry ID and Credential Revocation ID are required. Usage: vsw revoke [options] -cei, --credential-exchange-id The Credential Exchange Id -reg, --credential-registry-id The Credential Registry ID -cei, --credential-revocation-id The Credential Revocation ID root@a178189822b0:/# vsw list Usage: vsw list -c: list all the connections -w: list all wallet dids -sc: list all the schema -s: see agent status -i: list all the issue credential records -p: list all present proof records -cs: list all the credentials -cd: list all the credential definitions root@a178189822b0:/# root@a178189822b0:/# vsw list -cs [20:39:04] {'results': []}

wenjing commented 3 years ago

Yes - the debug info prints out CEI so I can continue, but not to a real user once we remove INFO printing.

wenjing commented 3 years ago

Verified that by using Rev_Reg_Id and credential rev id together, revoke command works. Still open question where to get CEI other than the printout of "vsw publish".

felixchen1023 commented 3 years ago

already removed -cei parameter, and change name for -reg and rev

wenjing commented 3 years ago

verified in 0.0.20