Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

medibloc/vc-java

Repository files navigation

Verifiable Credential SDK in Java

This SDK is for creating/verifying W3C Verifiable Credentials and Presentations. The behavior is compatible with the Typescript SDK written by DIF.

Features

  • Creating/Verifying W3C Verifiable Credentials using JWT
  • Creating/Verifying W3C Verifiable Presentation using JWT

Currently, only external proof using JWT is supported. The embedded proof, such as a Linked Data Signature, would be supported in the future.

For more details, please see Usages.

Installation

For Gradle:

repositories {
    maven {
        url = "https://maven.pkg.github.com/medibloc/vc-java"
        // GitHub Packages credentials
        credentials {
            username = System.getenv("GPR_USER")
            password = System.getenv("GPR_API_KEY")
        }
    }
    mavenCentral()
}

dependencies {
    implementation 'org.medibloc:vc-java:0.0.4'
}

Usage

Creating/Verifying a Verifiable Credential

Sample

Creating/Verifying a Verifiable Presentation

Sample