Command Line Interface
The command line interface (CLI) is made of three commands.
generate-group
generate-group
The generate-group
command is used to store a specific group of users in a JSON format in an off-chain database. You have to choose a valid Group Generator to run this command.
The mandatory argument is a valid generator-name
, i.e a valid Group Generator.
You then have the following options:
--timestamp
: Pass a custom timestamp for your group generation
--block-number
: Use a custom block number for your group generation
--additional-data
: Add additional addresses and data in the generated group. Multiple addresses must be separated by a coma while addresses and data are separated by an equality sign.
send-to-attester
send-to-attester
The send-to-attester
command aims at sending generated groups on-chain. This command updates the on-chain registry tree by sending a new root.
The two mandatory arguments for this command are:
attester-name
: the name of your attester
network
: the network where you attester is deployed
The following option is necessary to send the new registry root on-chain:
--send-on-chain
: send available groups on-chain
api
api
This command allows you to launch a local api at this url: http://127.0.0.1:8000/static/rapidoc/index.html This swagger api can give information about:
All the available data on the different chains, sorted by attesters
All the created badges on the different chains
The metadata of a specific badge
A list of all the flows
A list of all generated groups
The latest groups generated
The different group generators used
Last updated