Skip to content

Implement Proof By Query Holder

If you intend to store your own verifiable credentials, generate, and submit proof. The following guide will help you implement the holder module for your solution.

Clone holder repo

Our example holder repository might be a useful reference as your work through the implementation.

Environment variables

You will need these values to run holder on the various Redbelly environments.

  • Create .env file.
  • Copy values from .env.example to .env

.env

  • RHS_URL = 'https://rhs.testnet.redbelly.network'
  • CIRCUITS_PATH = {Add path to Iden3 Circuits}
  • RPC_URL = 'https://rbn-aws-eu-north-1a-0-b.devnet.redbelly.network:8545'
  • WALLET_KEY = {Add your Private Key}
  • STATE_CONTRACT_ADDRESS = 0x73Fdb30a0A01aEB6d2A6fc8cdAc6d88D891898F9
  • BSC_ADDRESS = 0x403e0043a2D1016a4D8765965843441444e0fc13
  • PORT = {Optional: Add port for Holder Server}
  • RHS_URL = 'https://rhs.redbelly.network'
  • CIRCUITS_PATH = {Add path to Iden3 Circuits}
  • RPC_URL = 'https://rbn-aws-eu-north-1a-0-b.devnet.redbelly.network:8545'
  • WALLET_KEY = {Add your Private Key}
  • STATE_CONTRACT_ADDRESS = Coming Soon
  • BSC_ADDRESS = Coming Soon
  • PORT = {Optional: Add port for Holder Server}

Circuits

Set up a local folder for your Holder, download the latest Iden3 circuits using the following curl command and unzip the folder.

  • Download Circuits
    curl -LO https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/latest.zip
    
  • Unzip the downloaded folder
    unzip -d ./circuits latest.zip
    

Next Up: Initialise holder →