A HTTP service that wraps vc-sdk
- Sign credentials
- Verify credentials
- Sign presentations
- Verify presentations
go build ./...
PORT=8888 \
go run cmd/main.godocker build -t vc-service .
docker run -e PORT=8888 -p 8888:8888 vc-service| Env Var | Desc | Default |
|---|---|---|
| DEBUG | Turn on debug logs | false |
| PORT | HTTP port | |
| READ_TIMEOUT | HTTP read timeout | 10s |
| WRITE_TIMEOUT | HTTP write timeout | 10s |
| IDLE_TIMEOUT | HTTP idle timeout | 60s |
curl -X POST localhost:8888/credentials/issue -d @samples/issue-credential.jsonThe sample JSON file is in the samples/ directory.
| Status Code | Description |
|---|---|
| 201 | Credential successfully issued |
| 400 | Invalid input |
| 500 | Internal error |