Skip to content

HowHsu/rust_verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment

  • first install node and npm, please refer to the official documentation
  • npm install ethers to install the ethers package.

Compile

  • cargo build --release

Install

  • you can move the binary ('./target/release/aizel_verifier') to a directory in $PATH

Preparation

  • 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=100 This 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=300 Don'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.sh to apply the environment variables

Run

  • simply run ./target/release/aizel_verifier

About

an offfchain program, verify tee reports and vote to a smart contract.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages