An open API service indexing awesome lists of open source software.

https://github.com/danubetech/didcomm-java

Java implementation of DIDComm v2.
https://github.com/danubetech/didcomm-java

shared-libraries

Last synced: 26 days ago
JSON representation

Java implementation of DIDComm v2.

Awesome Lists containing this project

README

          

# didcomm-java

## Information

This is a work-in-progress implementation of DIDComm v2.

Not ready for production use! Use at your own risk! Pull requests welcome.

## Maven

Build:

mvn clean install

Dependency:



danubetech-maven-public
https://repo.danubetech.com/repository/maven-public/


com.danubetech
didcomm-java
0.1-SNAPSHOT

## Example

Example code:

// create and print a DIDComm v2 message

DIDCommMessage didCommMessage = new DIDCommMessage();
didCommMessage.setId("1234567890");
didCommMessage.setFrom("did:example:alice");
didCommMessage.setTo("did:example:bob");
didCommMessage.setType("https://danubetech.com/example/1.0/hello");
didCommMessage.setCreated_time(1516269022L);
didCommMessage.setExpires_time(1516385931L);
didCommMessage.setBody(Map.of("message", "Hello World!"));

byte[] testEd25519PrivateKey = Hex.decodeHex("984b589e121040156838303f107e13150be4a80fc5088ccba0b0bdc9b1d89090de8777a28f8da1a74e7a13090ed974d879bf692d001cddee16e4cc9f84b60580".toCharArray());
didCommMessage.sign_Ed25519_EdDSA(testEd25519PrivateKey);

System.out.println(didCommMessage.getCompactSerialization());

## About

Danube Tech - https://danubetech.com/


This software library is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 871932