@klayr-did/klayr-verifiable-credentials
Namespaces
Interfaces
Type Aliases
DocumentLoader
Ƭ DocumentLoader: IDocumentLoader
Defined in
klayr-verifiable-credentials/src/types.ts:13
VerifiableCredential
Ƭ VerifiableCredential: Partial
<VCDIVerifiableCredential
> & { @context
: VCDIVerifiableCredential
["@context"
] ; credentialSubject
: VCDIVerifiableCredential
["credentialSubject"
] ; type
: VCDIVerifiableCredential
["type"
] }
Defined in
klayr-verifiable-credentials/src/types.ts:20
VerifiablePresentation
Ƭ VerifiablePresentation: TVerifiablePresentation
& { verifiableCredential?
: VerifiableCredential
| VerifiableCredential
[] }
Defined in
klayr-verifiable-credentials/src/types.ts:26
Functions
issueCredential
▸ issueCredential(credential
, privateKey
, options
): Promise
<VerifiableCredential
>
Parameters
Name | Type |
---|---|
credential | VerifiableCredential |
privateKey | Buffer |
options | ClientOptions |
Returns
Promise
<VerifiableCredential
>
Defined in
klayr-verifiable-credentials/src/credentials/credentials.ts:8
issuePresentation
▸ issuePresentation(verifiableCredentialsList
, holderDid
, privateKey
, challenge
, options
): Promise
<VerifiablePresentation
>
Parameters
Name | Type |
---|---|
verifiableCredentialsList | VerifiableCredential [] |
holderDid | string |
privateKey | Buffer |
challenge | string |
options | ClientOptions |
Returns
Promise
<VerifiablePresentation
>
Defined in
klayr-verifiable-credentials/src/credentials/presentation.ts:8
verifyCredential
▸ verifyCredential(credential
, publicKey
, options
): Promise
<VCVerificationResult
>
Parameters
Name | Type |
---|---|
credential | VerifiableCredential |
publicKey | Buffer |
options | ClientOptions |
Returns
Promise
<VCVerificationResult
>
Defined in
klayr-verifiable-credentials/src/credentials/credentials.ts:47
verifyPresentation
▸ verifyPresentation(presentation
, publicKey
, options
): Promise
<VPVerificationResult
>
Parameters
Name | Type |
---|---|
presentation | VerifiablePresentation |
publicKey | Buffer |
options | ClientOptions |
Returns
Promise
<VPVerificationResult
>
Defined in
klayr-verifiable-credentials/src/credentials/presentation.ts:52