Skip to content

Commit 40d5412

Browse files
committed
Minor improvements
1 parent 53bce13 commit 40d5412

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ var dictionary = DocumentDictionaryBuilder
8787
.set("ecdsa-sd-2023", 2)
8888
.set("eddsa-rdfc-2022", 3)
8989
.set("ecdsa-xi-2023", 4))
90-
.uri("did:key:zDnaeWjKfs1ob9QcgasjYSPEMkwq31hmvSAWPVAgnrt1e9GKj", 1)
91-
.uri("did:key:zDnaeWjKfs1ob9QcgasjYSPEMkwq31hmvSAWPVAgnrt1e9GKj#zDnaeWjKfs1ob9QcgasjYSPEMkwq31hmvSAWPVAgnrt1e9GKj", 2)
92-
.uri("https://sandbox.platform.veres.dev/statuses/z19rJ4oGrbFCqf3cNTVDHSbNd/status-lists", 3)
93-
.uri("did:key:zDnaeZSD9XcuULaS8qmgDUa6TMg2QjF9xABnZK42awDH3BEzj", 4)
90+
.uri("did:key:zD...", 1)
91+
.uri("did:key:zD...", 2)
92+
.uri("https://example.../status-lists", 3)
9493
.build();
9594

9695
// use with encoder
@@ -167,8 +166,6 @@ Java 17+
167166

168167
```
169168

170-
Iridium CBOR-LD for Android is distributed under a commercial license. [Contact](mailto:filip26@gmail.com)
171-
172169
#### JSON-P Provider
173170

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

src/main/java/com/apicatalog/cborld/decoder/DecoderV1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public JsonValue decode(CborLdVersion version, byte[] encoded) throws ContextErr
3535
if (dataItems.isEmpty()) {
3636
return null;
3737
}
38-
38+
3939
if (dataItems.size() == 1) {
4040
return decode(version, dataItems.iterator().next());
4141
}
@@ -71,7 +71,7 @@ public JsonValue decode(CborLdVersion version, DataItem dataItem) throws Context
7171
}
7272

7373
var code = ((UnsignedInteger) registryId).getValue().intValueExact();
74-
74+
7575
var dictionary = config.registry().get(code);
7676

7777
if (code > 0 && dictionary == null) {

0 commit comments

Comments
 (0)