isEncryptedVerifiableCredential(credential): credential is EncryptedVerifiableCredential

Checks if an object is an EncryptedVerifiableCredential.

Parameters

ParameterTypeDescription
credentialVerifiableCredentialTypeThe credential object to check.

Returns

credential is EncryptedVerifiableCredential

true if the object is a valid EncryptedVerifiableCredential, otherwise false.

Throws

Will throw an error if the object does not have a valid structure for a verifiable credential.

Defined in

verifiableCredentialsSDK/types/utils.ts:93