Node server that generates EDDSA signatures as attestations for specific credentials.
Visit this tutorial for Google Cloud installation
Visit this tutorial for Amazon AWS installation
Run the following cURL or Wget command to download and launch the attestor:
bash <(curl -o- https://raw.githubusercontent.com/BigWhaleLabs/attestor/main/scripts/install.sh)
bash <(wget -qO- https://raw.githubusercontent.com/BigWhaleLabs/attestor/main/scripts/install.sh)
Use --non-interactive
flag to skip the interactive mode and use the default values
bash <(curl -o- https://raw.githubusercontent.com/BigWhaleLabs/attestor/main/scripts/install.sh) --non-interactive
bash <(wget -qO- https://raw.githubusercontent.com/BigWhaleLabs/attestor/main/scripts/install.sh) --non-interactive
Note the attestor URL that will be displayed in the end
- Clone this repo:
git clone https://github.com/BigWhaleLabs/attestor
- Create
.env
with the environment variables listed below - Run
yarn docker-start-development
oryarn docker-start-production
- Clone this repo:
git clone https://github.com/BigWhaleLabs/attestor
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn start
And you should be good to go! Feel free to fork and submit pull requests.
Name | Description |
---|---|
SMTP_USER |
* SMTP username for email verification |
SMTP_PASS |
* SMTP password for email verification |
EDDSA_PRIVATE_KEY |
* EdDSA private key for signing the attestations |
ECDSA_PRIVATE_KEY |
* ECDSA private key for signing the attestations |
PORT |
Port to run server on (defaults to 1337) |
ETH_NETWORK |
Ethereum network (defaults to @bwl/constants) |
ETH_POLYGON_NETWORK |
Ethereum network (defaults to @bwl/constants) |
ETH_RPC |
Ethereum node RPC URI (defaults to @bwl/constants) |
ETH_RPC_MAINNET |
Ethereum mainnet node RPC URI (defaults to @bwl/constants) |
ETH_RPC_POLYGON |
Polygon node RPC URI (defaults to @bwl/constants) |
DOMAIN |
Domain name for caddy, DNS should point at the IP where the code is hosted |
ENVIRONMENT |
Environment name (defaults to development ) |
KETL_INVITES_BACKEND |
Link to merkle tree hashes for Ketl |
MAILGUN_API_KEY |
Mailgun API key |
MAILGUN_DOMAIN |
Mailgun Domain |
SECRET |
Bearer token |
Also, please, consider looking at .env.sample
.
Command | Description |
---|---|
yarn docker-start-development |
Starts the server in development mode with live reload |
yarn docker-start-production |
Starts the server in production mode (must have DNS pointing to this machine) |
docker-start-production-no-dns |
Starts the server in production mode (no DNS required) |