- Install forge: https://book.getfoundry.sh/getting-started/installation
- cd contracts && forge install
$ anvil --fork-url ${SEPOLIA_RPC_URL}
$ ENV=local_sepolia ./scripts/deploy_contract.sh
{
"AttestationVerifier": "0x2bB4d51B747558CD9AA07aA6819D6b1a1590a595",
"ProxyRegistry": "0x02D6f953722A085cC8325D442d931aD6c12a7210",
"remark": "Deployment"
}
$ cargo sgx gen-key bin/sgx-scroll-enclave/sgx/private.pem
$ cargo install cargo-sgx
$ cargo sgx run --release
# run in non-SGX simulation mode
$ SGX_MODE=SW cargo sgx run --release
# run in Apple Silicon Chips, the on-chain functionality will be turned off
$ STD_MODE=true cargo sgx run --release
$ cargo run --release --bin sgx-scroll-host