Skip to content

scroll-tech/sgx-prover

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 72.9%
  • Solidity 25.8%
  • Shell 1.3%