arajasek / verifier

A verifier node for granting verified data allowances to Filecoin addresses

Home Page:http://verify.glif.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth Faucet + Verifier backend

Docker build:

git submodule update --init
docker build -t openworklabs/verifier .
docker run -it \
    -e GITHUB_CLIENT_ID=... \
    -e GITHUB_CLIENT_SECRET=... \
    -e AWS_REGION=... \
    -e AWS_ACCESS_KEY=... \
    -e AWS_SECRET_KEY=... \
    -e LOTUS_API_DIAL_ADDR=... \
    -e LOTUS_API_TOKEN=... \
    -e LOTUS_VERIFIER_ADDR=... \
    -e MIN_ACCOUNT_AGE_DAYS=... \
    -e MAX_ALLOWANCE_BYTES=... \
    -e MAX_ALLOWANCE_FIL=... \
    -e FAUCET_ADDR=... \
    -e FAUCET_RATE_LIMIT=... \
    -p 8080:8080 \
    openworklabs/verifier

NOTE - please look at env.go for the most up to date environment variable configurations.

The PathToBlocklistTxtFile environment variable (PATH_TO_BLOCKLIST_TXT_FILE) should point to a .txt file, use absolute paths. The .txt file should contain valid Filecoin addresses, 1 per line like:

t0123
t15vmf65zmgphczybqlhc6dnfntve4c7sk7eflmly

Local dev:

Load environment variables (been using direnv) so: with a .envrc and then direnv allow

cd filecoin-ffi && make && cd ../
go run *.go

About

A verifier node for granting verified data allowances to Filecoin addresses

http://verify.glif.io/


Languages

Language:Go 96.6%Language:Dockerfile 2.6%Language:Makefile 0.8%