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.
- Host: GitHub
- URL: https://github.com/danubetech/didcomm-java
- Owner: danubetech
- License: apache-2.0
- Created: 2022-01-11T15:42:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T08:38:43.000Z (12 months ago)
- Last Synced: 2025-02-25T09:19:45.366Z (12 months ago)
- Topics: shared-libraries
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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