Module: modules/verifiable-credentials
Table of contents
Classes
Interfaces
- CreatePresentationParams
- CredentialRevocationDetailsResult
- InitiateExchangeResults
- IssuerFields
- ProofOptions
- RoleCredentialSubject
- RoleCredentialSubjectParams
- StatusList2021CredentialSubject
- StatusList2021UnsignedCredential
- VerifyVerifiableCredentialResults
Type Aliases
Variables
- statusList2021CredentialEIP712Types
- verifiableCredentialEIP712Types
- verifiablePresentationEIP712Types
- verifiablePresentationWithCredentialEIP712Types
Functions
Type Aliases
StatusList2021Credential
Ƭ StatusList2021Credential: VerifiableCredential
<StatusList2021CredentialSubject
>
Variables
statusList2021CredentialEIP712Types
• Const
statusList2021CredentialEIP712Types: Object
Type declaration
Name | Type |
---|---|
EIP712Domain |
never [] |
Proof |
{ name : string = '@context'; type : string = 'string' }[] |
StatusList2021 |
{ name : string = 'id'; type : string = 'string' }[] |
VerifiableCredential |
{ name : string = '@context'; type : string = 'string[]' }[] |
verifiableCredentialEIP712Types
• Const
verifiableCredentialEIP712Types: Object
Type declaration
Name | Type |
---|---|
CredentialSubject |
{ name : string = 'id'; type : string = 'string' }[] |
EIP712Domain |
never [] |
EWFRole |
{ name : string = 'namespace'; type : string = 'string' }[] |
IssuerFields |
{ name : string = 'key'; type : string = 'string' }[] |
Proof |
{ name : string = '@context'; type : string = 'string' }[] |
StatusList2021Entry |
{ name : string = 'id'; type : string = 'string' }[] |
VerifiableCredential |
{ name : string = '@context'; type : string = 'string[]' }[] |
verifiablePresentationEIP712Types
• Const
verifiablePresentationEIP712Types: Object
Type declaration
Name | Type |
---|---|
EIP712Domain |
never [] |
Proof |
{ name : string = '@context'; type : string = 'string' }[] |
VerifiablePresentation |
{ name : string = '@context'; type : string = 'string[]' }[] |
verifiablePresentationWithCredentialEIP712Types
• Const
verifiablePresentationWithCredentialEIP712Types: Object
Type declaration
Name | Type |
---|---|
CredentialSubject |
{ name : string = 'id'; type : string = 'string' }[] |
EIP712Domain |
never [] |
EWFRole |
{ name : string = 'namespace'; type : string = 'string' }[] |
IssuerFields |
{ name : string = 'key'; type : string = 'string' }[] |
Proof |
{ name : string = '@context'; type : string = 'string' }[] |
StatusList2021Entry |
{ name : string = 'id'; type : string = 'string' }[] |
VC712Domain |
{ name : string = 'domain'; type : string = 'VC712DomainData' }[] |
VC712DomainData |
never [] |
VC712DomainSchema |
{ name : string = 'StatusList2021Entry'; type : string = 'VC712DomainTypedDataField[]' }[] |
VC712DomainTypedDataField |
{ name : string = 'name'; type : string = 'string' }[] |
VCProof |
{ name : string = '@context'; type : string = 'string' }[] |
VerifiableCredential |
{ name : string = '@context'; type : string = 'string[]' }[] |
VerifiablePresentation |
{ name : string = '@context'; type : string = 'string[]' }[] |
Functions
getVerifiableCredentialsService
▸ getVerifiableCredentialsService(signerService
, cacheClient
): Promise
<VerifiableCredentialsServiceBase
>
Parameters
Name | Type |
---|---|
signerService |
SignerService |
cacheClient |
CacheClient |
Returns
Promise
<VerifiableCredentialsServiceBase
>
isRoleCredential
▸ isRoleCredential(credential
): credential is VerifiableCredential<RoleCredentialSubject>
Parameters
Name | Type |
---|---|
credential |
VerifiableCredential <ICredentialSubject > |
Returns
credential is VerifiableCredential<RoleCredentialSubject>
validateRoleCredentialSubject
▸ validateRoleCredentialSubject(subject
): void
Parameters
Name | Type |
---|---|
subject |
RoleCredentialSubjectParams |
Returns
void