Skip to main content

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

NameType
credentialVerifiableCredential
privateKeyBuffer
optionsClientOptions

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

NameType
verifiableCredentialsListVerifiableCredential[]
holderDidstring
privateKeyBuffer
challengestring
optionsClientOptions

Returns

Promise<VerifiablePresentation>

Defined in

packages/klayr-verifiable-credentials/dist/credentials/presentation.d.ts:4


verifyCredential

verifyCredential(credential, publicKey, options): Promise<VCVerificationResult>

Parameters

NameType
credentialVerifiableCredential
publicKeyBuffer
optionsClientOptions

Returns

Promise<VCVerificationResult>

Defined in

packages/klayr-verifiable-credentials/dist/credentials/credentials.d.ts:5


verifyPresentation

verifyPresentation(presentation, publicKey, options): Promise<VPVerificationResult>

Parameters

NameType
presentationVerifiablePresentation
publicKeyBuffer
optionsClientOptions

Returns

Promise<VPVerificationResult>

Defined in

packages/klayr-verifiable-credentials/dist/credentials/presentation.d.ts:5