Skip to main content

@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

NameType
credentialVerifiableCredential
privateKeyBuffer
optionsClientOptions

Returns

Promise<VerifiableCredential>

Defined in

klayr-verifiable-credentials/src/credentials/credentials.ts:8


issuePresentation

issuePresentation(verifiableCredentialsList, holderDid, privateKey, challenge, options): Promise<VerifiablePresentation>

Parameters

NameType
verifiableCredentialsListVerifiableCredential[]
holderDidstring
privateKeyBuffer
challengestring
optionsClientOptions

Returns

Promise<VerifiablePresentation>

Defined in

klayr-verifiable-credentials/src/credentials/presentation.ts:8


verifyCredential

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

Parameters

NameType
credentialVerifiableCredential
publicKeyBuffer
optionsClientOptions

Returns

Promise<VCVerificationResult>

Defined in

klayr-verifiable-credentials/src/credentials/credentials.ts:47


verifyPresentation

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

Parameters

NameType
presentationVerifiablePresentation
publicKeyBuffer
optionsClientOptions

Returns

Promise<VPVerificationResult>

Defined in

klayr-verifiable-credentials/src/credentials/presentation.ts:52