Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1000 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 1000 Bytes

Scroll Prover

Automata SGX SDK

Compile Contract

  1. Install forge: https://book.getfoundry.sh/getting-started/installation
  2. cd contracts && forge install

Deploy Contract

$ anvil --fork-url ${SEPOLIA_RPC_URL}
$ ENV=local_sepolia ./scripts/deploy_contract.sh
{
  "AttestationVerifier": "0x2bB4d51B747558CD9AA07aA6819D6b1a1590a595",
  "ProxyRegistry": "0x02D6f953722A085cC8325D442d931aD6c12a7210",
  "remark": "Deployment"
}

Generate Signing Key

$ cargo sgx gen-key bin/sgx-scroll-enclave/sgx/private.pem

Run Enclave

$ 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

Run Host

$ cargo run --release --bin sgx-scroll-host