Blinded Tokens Microservice
This is a fork of the Challenge Bypass Server, that implements the HTTP REST interface, persistence in Postgresql, multiple issuers, etc.
It also uses cgo bindings to a rust library to implement the cryptographic protocol.
Dependencies
Install Docker.
Run/build using docker
docker-compose up
Linting
This project uses golangci-lint for linting, this is run by CI and should be run before raising a PR.
To run locally use make lint
which runs linting using docker however if you want to run it locally using a binary release (which can be faster) follow the installation instructions for your platform and then run golangci-lint run -v ./...
Testing
make docker-test
Deployment
For testing purposes this repo can be deployed to Heroku. The settings set in environment variables DBCONFIG
and DATABASE_URL
override other options.