https://github.com/docknetwork/dock-did-driver
https://github.com/docknetwork/dock-did-driver
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/docknetwork/dock-did-driver
- Owner: docknetwork
- License: mit
- Created: 2020-03-12T13:47:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T21:44:05.000Z (over 2 years ago)
- Last Synced: 2026-01-02T07:21:05.230Z (6 months ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dock DID resolver driver
A [Universal Resolver](https://github.com/decentralized-identity/universal-resolver/) driver for the Dock network.
## Example DIDs
```
did:dock:5CDsD8HZa6TeSfgmMcxAkbSXYWeob4jFQmtU6sxr4XWTZzUA
did:dock:5CxUdCGtopZEJhdv6kfLBZ22PMZX7UK8mdcHbTVw2nw6MVZH
```
## Development
Install NPM dependencies using yarn in the root directory: `yarn install`
Start development server: `yarn start`
By default it will be running on port `8080` - it should connect to the blockchain node and be ready to serve DIDs at that endpoint. Example:
```
curl http://localhost:8080/1.0/identifiers/did:dock:5CDsD8HZa6TeSfgmMcxAkbSXYWeob4jFQmtU6sxr4XWTZzUA
```
## Build and usage
1. To build the docker image
```
docker image build -t docknetwork/dock-did-driver:1.0.0 -f ./docker/Dockerfile .
```
The above will build the image with name `dock-did-driver` and version `1.0.0`.
1. To run the docker container
```
docker container run --publish 8000:8080 --detach --name dd docknetwork/dock-did-driver:1.0.0
```
The server will run at 8080 port in the docker container and the host’s port 8000 is mapped to the container's port 8080
1. To ssh into the docker container
```
docker exec -it /bin/sh
```
1. The server responds at `/1.0/identifiers/`
## Specification
Following https://github.com/decentralized-identity/universal-resolver/blob/main/docs/driver-development.md