Skip to content

Commit 4b0172d

Browse files
authored
Merge pull request #8 from filip26/feat/did-key-split
`did:key` split
2 parents 61b726a + 4116049 commit 4b0172d

54 files changed

Lines changed: 735 additions & 3254 deletions

Some content is hidden

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

.github/workflows/codacy-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: Set up JDK 17
17+
- name: Set up JDK 8
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: 17
20+
java-version: 1.8
2121
distribution: 'temurin'
2222
- name: Build with Maven
2323
run: mvn -B package jacoco:report
2424
- name: Run codacy-coverage-reporter
2525
uses: codacy/codacy-coverage-reporter-action@master
2626
with:
27-
project-token: ${{secrets.CODACY_PROJECT_TOKEN}}
27+
project-token: ${{secrets.CODACY_API_TOKEN}}
2828
coverage-reports: ./target/site/jacoco/jacoco.xml

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
languages: ${{ matrix.language }}
3636
build-mode: ${{ matrix.build-mode }}
3737

38-
- name: Set up JDK 17
38+
- name: Set up JDK 8
3939
uses: actions/setup-java@v4
4040
with:
41-
java-version: 17
41+
java-version: 1.8
4242
distribution: 'temurin'
4343
- name: Build with Maven
4444
run: mvn -B package
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +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 17 CI
4+
name: Java 8 CI
55

66
on:
77
pull_request:
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: Set up JDK 17
17+
- name: Set up JDK 8
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: 17
20+
java-version: 1.8
2121
distribution: 'temurin'
2222
- name: Build with Maven
2323
run: mvn package
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish JRE17 to the Maven Central
1+
name: Publish JRE8 to the Maven Central
22
on:
33
release:
44
types: [created]

README.md

Lines changed: 1 addition & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1 @@
1-
# Carbon DID
2-
An implementation of the Decentralized Identifiers (DIDs) in Java.
3-
4-
5-
[![Java 17 CI](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java17-build.yml/badge.svg)](https://github.com/filip26/carbon-decentralized-identifiers/actions/workflows/java17-build.yml)
6-
[![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)
7-
[![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)
8-
[![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)
9-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
10-
11-
12-
## Features
13-
14-
* DID, DID URL, DID Document
15-
* DID Methods
16-
* did:key
17-
* did:web
18-
* Controller Document
19-
* Verification Methods
20-
* Multikey
21-
* JsonWebKey
22-
23-
## Installation
24-
25-
### Carbon DID
26-
27-
#### Maven
28-
29-
```xml
30-
<dependency>
31-
<groupId>com.apicatalog</groupId>
32-
<artifactId>carbon-did</artifactId>
33-
<version>0.9.0</version>
34-
</dependency>
35-
```
36-
37-
### JSON-P Provider
38-
39-
Add JSON-P provider, if it is not on the classpath already.
40-
41-
#### Maven
42-
43-
```xml
44-
<dependency>
45-
<groupId>org.glassfish</groupId>
46-
<artifactId>jakarta.json</artifactId>
47-
<version>2.0.1</version>
48-
</dependency>
49-
```
50-
51-
## Documentation
52-
53-
[![javadoc](https://javadoc.io/badge2/com.apicatalog/carbon-did/javadoc.svg)](https://javadoc.io/doc/com.apicatalog/carbon-did)
54-
55-
56-
## Contributing
57-
58-
All PR's welcome!
59-
60-
61-
### Building
62-
63-
Fork and clone the project repository.
64-
65-
#### Java 17
66-
```bash
67-
> cd carbon-decentralized-identifiers
68-
> mvn clean package
69-
```
70-
71-
## Resources
72-
73-
- [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/)
74-
- [Controller Documents 1.0](https://www.w3.org/TR/controller-document/)
75-
- [The did:key Method v0.7](https://w3c-ccg.github.io/did-method-key/)
76-
- [The did:web Method Draft](https://w3c-ccg.github.io/did-method-web/)
77-
- [Copper Multicodec](https://github.com/filip26/copper-multicodec)
78-
- [Copper Multibase](https://github.com/filip26/copper-multibase)
79-
80-
## Sponsors
81-
82-
<a href="https://github.com/digitalbazaar">
83-
<img src="https://avatars.githubusercontent.com/u/167436?s=200&v=4" width="40" />
84-
</a>
85-
86-
## Commercial Support
87-
Commercial support is available at filip26@gmail.com
1+
# Carbon DID Key Method

pom.xml

Lines changed: 17 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55

66
<modelVersion>4.0.0</modelVersion>
77
<groupId>com.apicatalog</groupId>
8-
<artifactId>carbon-did</artifactId>
8+
<artifactId>carbon-did-key</artifactId>
99

10-
<version>1.0.0</version>
10+
<version>0.9.1-SNAPSHOT</version>
1111
<packaging>jar</packaging>
1212

13-
<url>https://github.com/filip26/carbon-did</url>
13+
<url>https://github.com/filip26/carbon-did-key</url>
1414
<scm>
15-
<connection>scm:git:git://github.com/filip26/carbon-did.git</connection>
16-
<developerConnection>scm:git:git://github.com/filip26/carbon-did.git</developerConnection>
17-
<url>https://github.com/filip26/carbon-did/tree/main</url>
15+
<connection>scm:git:git://github.com/filip26/carbon-did-key.git</connection>
16+
<developerConnection>scm:git:git://github.com/filip26/carbon-did-key.git</developerConnection>
17+
<url>https://github.com/filip26/carbon-did-key/tree/main</url>
1818
</scm>
1919

20-
<name>Carbon DIDs</name>
20+
<name>Carbon DID Key Method</name>
2121

2222
<description>
23-
Decentralized Identifiers (DIDs) API, did:key, Multikey
23+
A DID Method for Static Cryptographic Keys. Multikey, JsonWebKey support.
2424
</description>
2525

2626
<licenses>
@@ -33,7 +33,7 @@
3333

3434
<issueManagement>
3535
<system>github</system>
36-
<url>https://github.com/filip26/carbon-did/issues</url>
36+
<url>https://github.com/filip26/carbon-did-key/issues</url>
3737
</issueManagement>
3838

3939
<developers>
@@ -47,39 +47,29 @@
4747
</developer>
4848
</developers>
4949

50-
<inceptionYear>
51-
2022</inceptionYear>
50+
<inceptionYear>2022</inceptionYear>
5251

5352
<properties>
5453
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5554
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5655
<argLine>-Dfile.encoding=UTF-8</argLine>
5756

58-
<maven.compiler.target>17</maven.compiler.target>
59-
<maven.compiler.source>17</maven.compiler.source>
57+
<maven.compiler.target>1.8</maven.compiler.target>
58+
<maven.compiler.source>1.8</maven.compiler.source>
6059

61-
<jakarta.json.version>2.0.1</jakarta.json.version>
60+
<carbon.did.version>0.9.1-SNAPSHOT</carbon.did.version>
6261

63-
<linked-tree.version>0.0.68-SNAPSHOT</linked-tree.version>
64-
<copper.multicodec.version>1.1.0</copper.multicodec.version>
65-
<copper.multibase.version>1.0.0</copper.multibase.version>
62+
<copper.multicodec.version>2.1.0</copper.multicodec.version>
63+
<copper.multibase.version>4.0.0</copper.multibase.version>
6664

6765
<!-- test resources -->
6866
<junit.version>5.11.3</junit.version>
69-
<titanium.version>1.4.1</titanium.version>
70-
7167
</properties>
7268
<dependencies>
73-
<dependency>
74-
<groupId>jakarta.json</groupId>
75-
<artifactId>jakarta.json-api</artifactId>
76-
<version>${jakarta.json.version}</version>
77-
<scope>provided</scope>
78-
</dependency>
7969
<dependency>
8070
<groupId>com.apicatalog</groupId>
81-
<artifactId>linked-tree</artifactId>
82-
<version>${linked-tree.version}</version>
71+
<artifactId>carbon-did</artifactId>
72+
<version>${carbon.did.version}</version>
8373
</dependency>
8474
<dependency>
8575
<groupId>com.apicatalog</groupId>
@@ -99,20 +89,6 @@
9989
<version>${junit.version}</version>
10090
<scope>test</scope>
10191
</dependency>
102-
<dependency>
103-
<groupId>org.glassfish</groupId>
104-
<artifactId>jakarta.json</artifactId>
105-
<version>${jakarta.json.version}</version>
106-
<scope>test</scope>
107-
</dependency>
108-
109-
<!-- REMOVE-->
110-
<dependency>
111-
<groupId>com.apicatalog</groupId>
112-
<artifactId>titanium-json-ld</artifactId>
113-
<version>${titanium.version}</version>
114-
</dependency>
115-
11692
</dependencies>
11793

11894
<build>

src/main/java/com/apicatalog/controller/ControllerDocument.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/main/java/com/apicatalog/controller/Service.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/java/com/apicatalog/controller/ServiceEndpoint.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/main/java/com/apicatalog/controller/key/KeyPair.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)