Web2 FDC Setup
This guide explains how data providers can set up support for the Web2 FDC attestation type. The setup involves configuring a Web2 verifier server and updating the FDC Client.
Prerequisites
- Access to the FDC Suite Deployment repository.
- Access to the FSP Deployment repository.
- API key for the Ignite Web2Json source (see Obtaining an Ignite API Key)
Set Up Web2 Verifier
-
Pull the FDC Suite Deployment repository version v1.2.0:
git clone --branch v1.2.0 https://github.com/flare-foundation/fdc-suite-deployment.git
cd fdc-suite-deployment -
Configure environment variables in
.env(see.env.examplefor reference):WEB2_IGNITE_API_KEY=your_ignite_api_key_here
WEB2_SOURCE_IDS=Ignite
VERIFIER_API_KEYS=key1,key2 -
Run the configuration generator:
./generate-config.sh -
Start the Web2 verifier server:
cd web2-verifier/
docker compose up -d -
(Optional) Specify memory and CPU restrictions in
docker-compose.yamlif needed.
Update FDC Client
-
Update your Flare Systems Protocol Deployment to version v1.2.0:
cd flare-systems-deployment
git fetch origin
git checkout v1.2.0 -
Set the verifier address and API key in
.env(see.env.examplefor reference):IGNITE_WEB2JSON_URL=http://<host>:9801/verifier/web2/Web2Json/verifyFDC
IGNITE_WEB2JSON_API_KEY=key1Replace
<host>with the hostname or IP address where your Web2 verifier is running. -
Regenerate the FDC Client configuration:
./populate-config.sh -
Restart the FDC Client to apply the changes:
docker compose up -dThis pulls the latest version and recreates the container.
Obtaining an Ignite API Key
API keys for the Ignite proxy are encrypted with each provider's signing policy public key. For detailed instructions on how to obtain and decrypt your API key, see the FDC Attestation Verifier repository.
Once your Web2 FDC setup is complete, explore the FDC developer guides to learn how to use the attestation types:
- FDC Guides - Tutorials for using FDC with Hardhat and Foundry.
- Web2 JSON Attestation Type - Learn about the Web2 JSON attestation type.