1.2.0 • Published 5 years ago

@tangleid/credential v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@tangleid/credential

Utilities for generating credential.

Installation

Install using npm:

npm install @tangleid/credential

or using yarn:

yarn add @tangleid/credential

API Reference

credential~generateCredential(params)

ParamTypeDefaultDescription
paramsobjectParameters for generating the credential object.
params.subjectobjectSubject of the credential.
params.metadataobject{}Metadata of the credential.
params.contextobject'https://www.w3.org/2018/credentials/v1'Context URLs of the credential.
params.aliasobject{}Context alias of the credential.

Generate credential object.

Returns: object - Credential object in JSON-LD format.