sudo apt-get install git-all
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/AleoHQ/leo cd leo cargo install --path .
git clone https://github.com/AleoHQ/snarkOS.git --depth 1 cd snarkOS cargo install --path .
https://sotertech.io/download/
leo new {$NAME}
├── .env # 环境变量
├── program.json # 配置文件
├── README.md
├── build/ #编译输出aleo的路径
├── inputs/
│ ├── hello.in # 程序输入
└── src/
└── main.leo # 程序文件
leo build
Leo ✅ Compiled 'main.leo' into Aleo instructions
snarkos developer deploy --private-key {$PRIVATE_KEY} --priority-fee 100 --query {$NODE_URL} --broadcast {$NODE_URL}/testnet3/transaction/broadcast ./build
snarkos developer execute {$PACKAGE_NAME} {$FUNCTION_NAME} \'{$PARAMETER}\' --private-key {$PRIVATE_KEY} --priority-fee 100 --query {$NODE_URL} --broadcast {$NODE_URL}/testnet3/transaction/broadcast