Java
The Java integration is delivered via the DIF Universal Resolver and Universal Registrar drivers maintained by Danube Tech.
Status — Driver-only. There is no standalone Java SDK at this time; JVM consumers should drive the operations via the Universal Resolver / Registrar HTTP APIs.
Install
Section titled “Install”Both drivers are distributed as Docker images. Pull and run via
docker compose; see the per-driver READMEs for compose snippets.
Create
Section titled “Create”POST https://uniregistrar.io/1.0/create?method=btcr2Content-Type: application/json
{ "didDocument": { ... }, "options": { "network": "mutinynet" }}See uni-registrar-driver-did-btcr2
for the supported request shape.
Resolve
Section titled “Resolve”GET https://uniresolver.io/1.0/identifiers/did:btcr2:k1qypcylxwhf8sykn2dztm6z8lxm43kwkyzf07qmp9jafv3zfntmpwtks9hmnrwAccept: application/didOr via UI (open in browser):
https://uniresolver.io/#did:btcr2:k1qypcylxwhf8sykn2dztm6z8lxm43kwkyzf07qmp9jafv3zfntmpwtks9hmnrw
Update
Section titled “Update”POST https://uniregistrar.io/1.0/update?method=btcr2Content-Type: application/json
{ "did": "did:btcr2:k1...", "didDocumentOperation": ["addToDidDocument"], "didDocument": [ { ... } ], "options": { "didSourceDocument": { ... }, "targetVersionId": 2 }}options.didSourceDocument (the current DID document) and options.targetVersionId
are required. beaconServiceId, beaconServiceType and publishToIpfs are optional.
See the registrar driver README
for the options.
Deactivate
Section titled “Deactivate”POST https://uniregistrar.io/1.0/deactivate?method=btcr2Content-Type: application/json
{ "did": "did:btcr2:k1...", "options": { "didSourceDocument": { ... }, "targetVersionId": 3 }}Contributing
Section titled “Contributing”File issues and PRs against the appropriate driver repo.