Issuer SDK
revokeVC
The revokeVC
function is an asynchronous method designed to revoke a Verifiable Credential (VC) using blockchain technology. It interacts with a smart contract on a blockchain to mark a credential as revoked.
Function Signature
TypeScript
Parameters
vcId
(string): The identifier of the Verifiable Credential to be revoked. This is typically a hash of the credential.privateKey
(string): The private key of the entity that is authorized to revoke the credential. This key must correspond to a wallet that has permission to interact with the revocation registry contract.options
(VerificationOptions): Configuration options necessary for the revocation process,
Examples
TypeScript