Functions
isEncryptedVerifiableCredential
isEncryptedVerifiableCredential(
credential
):credential is EncryptedVerifiableCredential
Checks if an object is an EncryptedVerifiableCredential
.
Parameters
Parameter | Type | Description |
---|---|---|
credential | VerifiableCredentialType | The 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.