DICE Developer Docs
  • Developer Docs
    • DICE Test Drive
      • Sign-up for Issuer Portal
      • Issue Credentials
      • Verify Credentials
    • Key Concepts
      • DID & Verifiable Credentials
      • DICE ID Architecture
    • Platform Console
      • Dashboard
      • Customers
        • Onboard Customer
      • Credentials
        • Issue Credentials to New Customer
      • Schema
      • Batch Issuance
        • Batch Issuance - Useful Tips
      • Verifications
        • Verification Template
      • Templates
        • Certificate Template
          • Create Template
          • Manage Template
        • Email Template
          • Create Template
          • Manage Template
      • Organization
      • Departments
      • Organization Users
      • API Access
      • Callback Configuration
      • Tutorials
        • Credential Issuance from DICE ID Console
        • Credential Issuance using DICE ID APIs
        • Credential Verification using QR code
        • Credential Verification from DICE ID console
        • Batch Credential Issuance from DICE ID Console
    • Integrations
      • Auth0 Integration
        • Login using OIDC (First Factor Authentication)
        • Custom MFA Rule (For 2FA)
    • DICE ID SDK
      • DICE ID
        • DID & Verifiable Credentials
        • DICE ID Architecture
      • SDK Functionalities
      • Create Wallet
      • Create Connection
      • Creating a Schema
      • Issue a Credential
      • Send Presentation Request
      • Get Verification State
      • Configuration and Customization
      • Error Handling & Troubleshooting
      • Conclusion
      • Additional Resources
  • Getting Started with DICE ID Skill Credentials
    • Building Trust Ecosystems Powered by Credentials
    • DICE ID Integration for Issuers
    • DICE ID Integration for Verifiers
    • DICE ID Brand Usage Guidelines
    • DICE ID Onboarding Confirmation
    • Helpful Q&A
    • Troubleshooting Guide
Powered by GitBook
On this page
  • Dependencies for the SDK
  • List of functionalities
  1. Developer Docs
  2. DICE ID SDK

SDK Functionalities

Step-by-step guide on usage of cloud wallet SDK

PreviousDICE IDNextCreate Wallet

Last updated 1 year ago

The DICE ID SDK provides a range of functionalities, including wallet creation, issuer functionalities, and verifier functionalities, allowing developers to easily integrate and leverage the capabilities of the DICE ID system in their applications.

In the following sections, we will demonstrate the usage of these functionalities, providing step-by-step instructions on how to utilize the wallet creation, issuer functionalities, and verifier functionalities offered by the DICE ID SDK.

The flowchart illustrating the DICE ID SDK is presented in the accompanying figure.

Flowchart: DICE ID Credential Issuance and Verification

Dependencies for the SDK

Step 1: Install Node.js

Step 2: Clone the following repository to install DICE ID SDK:

git clone https://github.com/Lab45-Platform-Blockchain/DICE_SDK.git

Step 3: Go to DICE SDK Project folder and run the below command:

npm install

Step 4: Deploy diceidsdk

To use the DICE ID SDK in your project, you need to install the diceidsdk package from NPM. Run the following command in your samples project directory:

npm install diceidsdk-1.0.0.tgz

Step 5: Importing the SDK

To use the DICE ID SDK in your JavaScript code, you need to import the diceidsdk module:

const diceidsdk = require('diceidsdk');

List of functionalities

DICE ID SDK provides functionality related to Cloud wallet, Issuer and the Verifier.

  1. DICE ID Cloud wallet: To utilize the cloud wallet functionality, include diceidsdk.cloudwallet in your code, as the end user is the owner of the cloud wallet.

Different functions provided by the cloud wallet SDK are:

  • createWallet

  • receiveInvitation

  • getConnectionState

  • getConnections

  • getCredentials

  1. DICE ID issuer: The Issuer functionality within the SDK is primarily designed to facilitate the issuance of credentials to end users. To utilize DICE ID Issuer functionality, include diceidsdk.issuer in your code.

Different functions provided by the Issuer SDK are:

  • createConnectionInvitation

  • sendCredOffer

  • createSchema

  • getCredDefs

  1. DICE ID Verifier: The Verifier functionality within the SDK is primarily utilized to verify the credentials of end users. To utilize DICE ID Verifier functionality, include diceidsdk.verifier in your code.

Different functions provided bu the Verifier SDK are:

  • createConnectionInvitation

  • createVerificationTemplate

  • sendPresentationRequest

  • getPresentationState

The DICE ID sequence diagram illustrates the various SDK functionalities, capturing the flow of actions and interactions between different components involved, as depicted in the accompanying figure.

Visit the official Node.js website () and download the appropriate version for your operating system.

DICE ID SDK Functionalities
Sequence diagram to illustrate various SDK functionalities
https://nodejs.org