Skip to content

Commit 07ecd04

Browse files
authored
Merge pull request #125 from filip26/feat/did-core
0.9.1
2 parents bbdf615 + 25924ea commit 07ecd04

43 files changed

Lines changed: 2412 additions & 1112 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/maven-central-settings.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# This workflow will build a Java project with Maven
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

4-
name: Java 11 CI
5-
permissions:
6-
contents: read
4+
name: Codacy Coverage
75

86
on:
97
push:
@@ -16,12 +14,13 @@ jobs:
1614

1715
steps:
1816
- uses: actions/checkout@v4
19-
- name: Set up JDK 11
20-
uses: actions/setup-java@v1
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v4
2119
with:
22-
java-version: 11
20+
java-version: 8
21+
distribution: 'temurin'
2322
- name: Build with Maven
24-
run: mvn -B package jacoco:report --file pom.xml
23+
run: mvn -B package jacoco:report
2524
- name: Run codacy-coverage-reporter
2625
uses: codacy/codacy-coverage-reporter-action@master
2726
with:

.github/workflows/java11-publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# This workflow will build a Java project with Maven
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

4-
name: Java 11 PR
5-
6-
permissions:
7-
contents: read
4+
name: Java 8 CI
85

96
on:
107
pull_request:
@@ -16,10 +13,11 @@ jobs:
1613
runs-on: ubuntu-latest
1714

1815
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up JDK 11
21-
uses: actions/setup-java@v1
16+
- uses: actions/checkout@v4
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v4
2219
with:
23-
java-version: 11
20+
java-version: 8
21+
distribution: 'temurin'
2422
- name: Build with Maven
25-
run: mvn -f pom.xml package
23+
run: mvn package
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish JRE8 to the Maven Central
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
environment: maven-central
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 8
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: 8
19+
distribution: 'temurin'
20+
cache: 'maven'
21+
server-id: central
22+
server-username: CENTRAL_TOKEN_ID
23+
server-password: CENTRAL_TOKEN_SECRET
24+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
25+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
26+
- name: Publish package
27+
run: mvn -B -Pmaven-central deploy
28+
env:
29+
CENTRAL_TOKEN_ID: ${{ secrets.CENTRAL_TOKEN_ID }}
30+
CENTRAL_TOKEN_SECRET: ${{ secrets.CENTRAL_TOKEN_SECRET }}
31+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
32+
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
33+

README.md

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,28 @@
1+
# Carbon Decentralized Identifiers
12

2-
> [!IMPORTANT]
3-
> Your feedback is essential to the improvement of this library. Please share any concerns, primary use cases, areas for enhancement, or challenges you have encountered. Your insights help refine and optimize the library to better meet user needs. Thank you for your time and contributions.
4-
5-
# Carbon DID
63
An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/) in Java.
74

8-
9-
[![Java 11 CI](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java11-push.yml/badge.svg)](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java11-push.yml)
10-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dd79aafc6eb14ed18f2217de62585ba7)](https://app.codacy.com/gh/filip26/carbon-decentralized-identifiers/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
11-
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/dd79aafc6eb14ed18f2217de62585ba7)](https://app.codacy.com/gh/filip26/carbon-decentralized-identifiers/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
5+
[![Java 8 CI](https://github.com/filip26/carbon-did-core/actions/workflows/java8-build.yml/badge.svg)](https://github.com/filip26/carbon-did-core/actions/workflows/java8-build.yml)
6+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dd79aafc6eb14ed18f2217de62585ba7)](https://app.codacy.com/gh/filip26/carbon-did-core/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
127
[![Maven Central](https://img.shields.io/maven-central/v/com.apicatalog/carbon-did.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:com.apicatalog%20AND%20a:carbon-did)
138
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
149

15-
1610
## Features
1711

18-
* DID, DID URL, DID Document
19-
* Methods
20-
* [did:key method v0.7](https://w3c-ccg.github.io/did-method-key/)
12+
* DID, DID URL primitives
13+
* DID Document API & primitives
14+
* DID Resolver API
15+
* [`did:key`](https://github.com/filip26/carbon-did-key) method
2116

2217
## Installation
2318

24-
### Carbon DID
25-
26-
#### Maven
19+
### Maven
2720

2821
```xml
2922
<dependency>
3023
<groupId>com.apicatalog</groupId>
3124
<artifactId>carbon-did</artifactId>
32-
<version>0.6.0</version>
33-
</dependency>
34-
<dependency>
35-
<groupId>com.apicatalog</groupId>
36-
<artifactId>copper-multibase</artifactId>
37-
<version>0.5.0</version>
38-
</dependency>
39-
```
40-
41-
### JSON-P Provider
42-
43-
Add JSON-P provider, if it is not on the classpath already.
44-
45-
#### Maven
46-
47-
```xml
48-
<dependency>
49-
<groupId>org.glassfish</groupId>
50-
<artifactId>jakarta.json</artifactId>
51-
<version>2.0.1</version>
25+
<version>0.9.1</version>
5226
</dependency>
5327
```
5428

@@ -66,17 +40,18 @@ All PR's welcome!
6640

6741
Fork and clone the project repository.
6842

69-
#### Java 11+
43+
#### Java 1.8
7044
```bash
71-
> cd carbon-decentralized-identifiers
45+
> cd carbon-did-core
7246
> mvn clean package
7347
```
7448

75-
## Resources-
76-
- [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/)
77-
- [The did:key Method v0.7](https://w3c-ccg.github.io/did-method-key/)
78-
- [Copper Multicodec](https://github.com/filip26/copper-multicodec)
79-
- [Copper Multibase](https://github.com/filip26/copper-multibase)
49+
## Resources
50+
51+
- [W3C Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/)
52+
- [W3C Controlled Identifiers v1.0](https://www.w3.org/TR/cid-1.0/)
53+
- [Carbon DID Key Method](https://github.com/filip26/carbon-did-key)
54+
- [Carbon Controlled Identifiers](https://github.com/filip26/carbon-cid)
8055

8156
## Sponsors
8257

@@ -86,4 +61,3 @@ Fork and clone the project repository.
8661

8762
## Commercial Support
8863
Commercial support is available at filip26@gmail.com
89-

SECURITY.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
## Supported Versions
44

5-
| Version | Supported |
6-
| ------- |:------------------:|
7-
| 0.x.x ||
5+
| Version | Supported |
6+
| ------- |:---------:|
7+
| 0.x.x | ✅ Supported |
8+
| 1.x.x | ❌ Not supported |
89

910
## Reporting a Vulnerability
1011

11-
Please report security vulnerabilities to [Filip Kolarik](mailto:filip26@gmail.com). Thank you!
12+
If you discover a security vulnerability, please report it responsibly by contacting:
13+
14+
**Filip Kolarik**
15+
📧 [filip26@gmail.com](mailto:filip26@gmail.com)
16+
17+
We will investigate promptly and work with you to address the issue. Thank you for helping keep the project secure!

0 commit comments

Comments
 (0)