Namespace: vc
Namespaces
Interfaces
Type Aliases
DocumentLoader
Ƭ DocumentLoader: DocumentLoader
Defined in
packages/klayr-verifiable-credentials/dist/types.d.ts:4
VerifiableCredential
Ƭ VerifiableCredential: Partial
<VCDIVerifiableCredential
> & { @context
: VCDIVerifiableCredential
["@context"
] ; credentialSubject
: VCDIVerifiableCredential
["credentialSubject"
] ; type
: VCDIVerifiableCredential
["type"
] }
Defined in
packages/klayr-verifiable-credentials/dist/types.d.ts:9
VerifiablePresentation
Ƭ VerifiablePresentation: TVerifiablePresentation
& { verifiableCredential?
: VerifiableCredential
| VerifiableCredential
[] }
Defined in
packages/klayr-verifiable-credentials/dist/types.d.ts:14
Functions
issueCredential
▸ issueCredential(credential
, privateKey
, options
): Promise
<VerifiableCredential
>
Parameters
Name | Type |
---|---|
credential | VerifiableCredential |
privateKey | Buffer |
options | ClientOptions |
Returns
Promise
<VerifiableCredential
>
Defined in
packages/klayr-verifiable-credentials/dist/credentials/credentials.d.ts:4
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
packages/klayr-verifiable-credentials/dist/credentials/presentation.d.ts:4
verifyCredential
▸ verifyCredential(credential
, publicKey
, options
): Promise
<VCVerificationResult
>
Parameters
Name | Type |
---|---|
credential | VerifiableCredential |
publicKey | Buffer |
options | ClientOptions |
Returns
Promise
<VCVerificationResult
>
Defined in
packages/klayr-verifiable-credentials/dist/credentials/credentials.d.ts:5
verifyPresentation
▸ verifyPresentation(presentation
, publicKey
, options
): Promise
<VPVerificationResult
>
Parameters
Name | Type |
---|---|
presentation | VerifiablePresentation |
publicKey | Buffer |
options | ClientOptions |
Returns
Promise
<VPVerificationResult
>
Defined in
packages/klayr-verifiable-credentials/dist/credentials/presentation.d.ts:5