- first install node and npm, please refer to the official documentation
npm install ethersto install the ethers package.
cargo build --release
- you can move the binary ('./target/release/aizel_verifier') to a directory in $PATH
-
fill all the variables in env.sh
-
AIZEL_VERIFIER_ID="0"This is the unique id of your verifier node. If it's empty(""), the node automatically registers itself after it boots and show you the id in log, otherwise the node checks if the delivered id is valid. more detail please refer to: -
AIZEL_PRIVATE_KEY=""This is the private key to interact with aizel blockchain, e.g. register itself, vote for requests, make sure the account has some tokens for gas fee. -
AIZEL_VERIFIER_NAME=""This is the name of your verifier node. -
AIZEL_VERIFIER_BIO=""This is a simple bio of your verifier node. -
AIZEL_VERIFIER_URL=""This is a url of your verifier node. -
AIZEL_VERIFIER_STAKING_AMOUNT=100This is the staking mount which will be used when the node registers itself to the verifier node contract. Make sure it is greater than the minStake(refer to: ). The above four fields show here: -
AIZEL_VERIFY_CONTRACT_ADDR=""Don't modify this variable unless you know what you are doing. -
AIZEL_DATA_NODE_CONTRACT_ADDR=""Don't modify this variable unless you know what you are doing. -
AIZEL_VERIFIER_NODE_CONTRACT_ADDR=""Don't modify this variable unless you know what you are doing. -
AIZEL_DATA_NODE_USER=""Don't modify this variable unless you know what you are doing. -
AIZEL_DATA_NODE_PWD=""Don't modify this variable unless you know what you are doing. -
AIZEL_SERVICE_TIMEOUT=300Don't modify this variable unless you know what you are doing. -
AIZEL_CHAIN_HTTP_API_END=""This is the rpc end point, you can choose your own's. -
AIZEL_CHAIN_WS_API_END=""This is the rpc end point, you can choose your own's.
-
-
run
source env.shto apply the environment variables
- simply run
./target/release/aizel_verifier