Skip to content
Merged

0.9.1 #125

Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
3e2a39d
Add DidMethodResolver + test
filip26 Sep 25, 2024
6c35833
Minor improvements
filip26 Sep 25, 2024
ee8b0f3
Add DidWeb + test
filip26 Sep 25, 2024
e5db360
Implement DidWeb::of method (no port yet)
filip26 Sep 25, 2024
76e6307
Finalize DidWeb prototype + test
filip26 Sep 25, 2024
8c6b95b
Update resources section
filip26 Sep 27, 2024
ce34111
Refactor static methods
filip26 Sep 27, 2024
6e34072
Bind codec to DidKey
filip26 Oct 1, 2024
79e1dbd
Merge remote-tracking branch 'origin/main' into feat/did-web
filip26 Oct 1, 2024
bcc0701
Improve MultiKey::of
filip26 Oct 1, 2024
4736aa8
Rename MulticodecKey to MultihashKey
filip26 Oct 1, 2024
3d9b4b0
Bump copper-multicodec to 1.1.0
filip26 Oct 2, 2024
316d032
Refactor
filip26 Oct 2, 2024
a591e84
Update actions
filip26 Oct 2, 2024
a34df54
Fix badge link
filip26 Oct 2, 2024
89be7f3
Fix typo
filip26 Oct 2, 2024
21c1ad2
Introduce Linked Tree ORM
filip26 Oct 5, 2024
ab4cb2a
Annotate VerificationMethod
filip26 Oct 6, 2024
995aedd
Annotate ControllerDocument and MultiKey
filip26 Oct 8, 2024
6109362
Fix DidKeyDocument
filip26 Oct 9, 2024
e4a4605
Add more did:key test vectors
filip26 Oct 10, 2024
742be11
Remove unused resources
filip26 Oct 10, 2024
91a3cb5
Add JsonWebKey interface
filip26 Oct 10, 2024
d334444
Improve model annotations
filip26 Oct 13, 2024
7e0768a
Add MultikeyTest
filip26 Oct 14, 2024
5d2c728
Add Multikey all properties test
filip26 Oct 14, 2024
34d3436
Add JsonWebKey.read test
filip26 Oct 14, 2024
13e6884
Add ControllerDocTest
filip26 Oct 14, 2024
c176e7c
Refactor
filip26 Oct 14, 2024
096f5b2
Add interlinked DID document test
filip26 Oct 14, 2024
91262ec
Adaptable VerificationMethodTest
filip26 Oct 14, 2024
fe91fa8
Add generic interface to tests
filip26 Oct 14, 2024
f843259
Add `@context` annotations
filip26 Oct 14, 2024
6ea0273
Add SignatureMethod, refactor keys
filip26 Oct 16, 2024
0957fac
Add more controller documents test cases
filip26 Oct 16, 2024
2fa0f06
Add Multikey read/write test
filip26 Oct 16, 2024
5ba81cf
Add MulticodecKeyLiteral
filip26 Oct 17, 2024
b5b3d23
Align `service` with latest spec
filip26 Oct 21, 2024
74b9fbe
Minor improvements
filip26 Oct 21, 2024
55b104b
Improve JSON-LD serialization
filip26 Nov 2, 2024
4b6c3eb
Improve MultikeyTest and implementation
filip26 Nov 2, 2024
f43abbe
Add JsonWebKey.compaction + test
filip26 Nov 2, 2024
339e7ea
Use context injection for JsonWebKey
filip26 Nov 2, 2024
38e80f1
Add ControllerDocumentLoader
filip26 Nov 3, 2024
97c47c5
Add did-v1.jsonld context
filip26 Nov 3, 2024
b41b5a2
Minor code improvements
filip26 Nov 3, 2024
4351aa1
Fix controller doc test cases
filip26 Nov 3, 2024
d1eedf0
Fix controller document compaction
filip26 Nov 3, 2024
540aa62
Improve ControllerDocTest
filip26 Nov 3, 2024
a879a58
Fix DidDocumentTest
filip26 Nov 3, 2024
ae8a448
Add Compaction.order attribute - NICE
filip26 Nov 3, 2024
0b18974
Add MulticodecKey.base() method and support
filip26 Nov 3, 2024
ec3ca12
Minor tests improvements
filip26 Nov 5, 2024
f8323b9
Merge remote-tracking branch 'origin/main' into feat/did-web
filip26 Nov 5, 2024
604e89c
Add ControllerResolver
filip26 Nov 13, 2024
5d3888d
Fix root package location
filip26 Nov 13, 2024
926de4d
Update README
filip26 Nov 13, 2024
3258a42
Bump LTs
filip26 Nov 15, 2024
02db988
Test fragments expansion
filip26 Nov 18, 2024
6a38dc8
Add VerificationMethodProvider
filip26 Nov 18, 2024
a8e6cea
Add isDidKeyUrl predicates
filip26 Nov 18, 2024
a79d181
Fix DidKeyResolver controller URI
filip26 Nov 18, 2024
64305f3
Add GenericMethodUri
filip26 Nov 19, 2024
31ee306
Bump version
filip26 Nov 25, 2024
58bf5cd
did:web experiments
filip26 Jul 29, 2025
e9a5685
Bump version to 1.0.0
filip26 Jul 29, 2025
61b726a
Merge remote-tracking branch 'origin/feat/did-web' into feat/v100
filip26 Jul 29, 2025
6e55295
Remove did:key and did:web
filip26 Aug 11, 2025
61c4be1
Strip components outside core scope
filip26 Aug 11, 2025
63e9e66
Fix DID pct-encoded validation
filip26 Aug 11, 2025
dde678d
DID: Improve Javadoc and error messages
filip26 Aug 11, 2025
d26a920
Improve DidUrl implementation
filip26 Aug 11, 2025
7979437
Strip unrelated resources
filip26 Aug 11, 2025
92ab5d9
Add more immutables and clean resources
filip26 Aug 11, 2025
5c50e43
Refactor
filip26 Aug 12, 2025
e609545
Add self-encoded types support
filip26 Aug 12, 2025
bdc7364
Improve DidPresenter API
filip26 Aug 12, 2025
bc235a0
Get rid off separated Options. Each instance it's configured at
filip26 Aug 13, 2025
403f7de
Remove unused resources
filip26 Aug 19, 2025
5a06482
Minor fixes
filip26 Aug 19, 2025
8d24c5f
Refactor primitives
filip26 Aug 19, 2025
adbe6a9
Refactor interfaces
filip26 Aug 19, 2025
0b09397
Update README
filip26 Aug 19, 2025
2f67039
Add Javadoc to DidUrl, DidDocument
filip26 Aug 19, 2025
21bb3f8
Improve Javadoc
filip26 Aug 19, 2025
e0d5dbc
Update README
filip26 Aug 19, 2025
2b26805
Add IO exceptions
filip26 Aug 19, 2025
74d34b5
Add Javadocs for resolver
filip26 Aug 19, 2025
69a05b9
Simplify DidDocument API
filip26 Aug 20, 2025
65ca2cc
Change DidResolutionException did param to String
filip26 Aug 20, 2025
bcacda5
Add javadoc to DidDocumentMetadata
filip26 Aug 21, 2025
3f8c92d
Bump version to 0.9.1
filip26 Aug 21, 2025
96b72ef
Merge remote-tracking branch 'origin/main' into feat/did-core
filip26 Aug 21, 2025
25924ea
Fix publish action
filip26 Aug 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/maven-central-settings.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java 11 CI
permissions:
contents: read
name: Codacy Coverage

on:
push:
Expand All @@ -16,12 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 8
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package jacoco:report --file pom.xml
run: mvn -B package jacoco:report
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '39 16 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
include:
- language: java
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
32 changes: 0 additions & 32 deletions .github/workflows/java11-publish.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java 11 PR

permissions:
contents: read
name: Java 8 CI

on:
pull_request:
Expand All @@ -16,10 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 8
distribution: 'temurin'
- name: Build with Maven
run: mvn -f pom.xml package
run: mvn package
30 changes: 30 additions & 0 deletions .github/workflows/java8-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish JRE17 to the Maven Central
on:
release:
types: [created]

workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: maven-central
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish package
run: mvn -B -Pmaven-central deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Comment thread Fixed
60 changes: 17 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,28 @@
# Carbon Decentralized Identifiers

> [!IMPORTANT]
> 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.

# Carbon DID
An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/) in Java.


[![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)
[![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)
[![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)
[![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)
[![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)
[![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)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)


## Features

* DID, DID URL, DID Document
* Methods
* [did:key method v0.7](https://w3c-ccg.github.io/did-method-key/)
* DID, DID URL primitives
* DID Document API & primitives
* DID Resolver API
* [`did:key`](https://github.com/filip26/carbon-did-key) method

## Installation

### Carbon DID

#### Maven
### Maven

```xml
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>carbon-did</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>copper-multibase</artifactId>
<version>0.5.0</version>
</dependency>
```

### JSON-P Provider

Add JSON-P provider, if it is not on the classpath already.

#### Maven

```xml
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<version>2.0.1</version>
<version>0.9.1</version>
</dependency>
```

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

Fork and clone the project repository.

#### Java 11+
#### Java 1.8
```bash
> cd carbon-decentralized-identifiers
> cd carbon-did-core
> mvn clean package
```

## Resources-
- [Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/)
- [The did:key Method v0.7](https://w3c-ccg.github.io/did-method-key/)
- [Copper Multicodec](https://github.com/filip26/copper-multicodec)
- [Copper Multibase](https://github.com/filip26/copper-multibase)
## Resources

- [W3C Decentralized Identifiers (DIDs) v1.0](https://www.w3.org/TR/did-core/)
- [W3C Controlled Identifiers v1.0](https://www.w3.org/TR/cid-1.0/)
- [Carbon DID Key Method](https://github.com/filip26/carbon-did-key)
- [Carbon Controlled Identifiers](https://github.com/filip26/carbon-cid)

## Sponsors

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

## Commercial Support
Commercial support is available at filip26@gmail.com

14 changes: 10 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

## Supported Versions

| Version | Supported |
| ------- |:------------------:|
| 0.x.x | ❌ |
| Version | Supported |
| ------- |:---------:|
| 0.x.x | ✅ Supported |
| 1.x.x | ❌ Not supported |

## Reporting a Vulnerability

Please report security vulnerabilities to [Filip Kolarik](mailto:filip26@gmail.com). Thank you!
If you discover a security vulnerability, please report it responsibly by contacting:

**Filip Kolarik**
📧 [filip26@gmail.com](mailto:filip26@gmail.com)

We will investigate promptly and work with you to address the issue. Thank you for helping keep the project secure!
Loading
Loading