This is a Universal Resolver driver for did:btcr identifiers.
did:btcr:xz35-jznz-q9yu-ply
did:btcr:xkrn-xz7q-qsye-28p
did:btcr:x705-jznz-q3nl-srs
docker build -f ./docker/Dockerfile . -t universalresolver/driver-did-btcr
docker run -p 8080:8080 universalresolver/driver-did-btcr
curl -X GET http://localhost:8080/1.0/identifiers/did:btcr:xz35-jznz-q9yu-ply
mvn clean install
The driver recognizes the following environment variables:
- Specifies how the driver interacts with the Bitcoin blockchain.
- Possible values:
bitcoind
: Connects to a bitcoind instance via JSON-RPCbtcd
: Connects to a btcd instance via JSON-RPCbitcoinj
: Connects to Bitcoin using a local bitcoinj clientblockcypherapi
: Connects to BlockCypher's API
- Default value:
blockcypherapi
- Specifies the JSON-RPC URL of a bitcoind/btcd instance running on Mainnet.
- Default value:
http://user:pass@localhost:8332/
- Specifies the JSON-RPC URL of a bitcoind/btcd instance running on Testnet.
- Default value:
http://user:pass@localhost:18332/
- Specifies the server TLS certificate of the bitcoind/btcd instance running on Mainnet.
- Default value: ``
- Specifies the server TLS certificate of the bitcoind/btcd instance running on Testnet.
- Default value: ``
The driver returns the following metadata in addition to a DID document:
fragmentUri
: ...chain
: ...blockHeight
: ...blockIndex
: ...