Try   HackMD

Prerequisites

  • you have an sgxmachine set up which can run your worker build in HW mode (can be debug mode, no production license required)
  • assuming your *sgxmachine runs ubuntu 22.04

setup integritee testnet collator

Check which version of the collator is currently running on Rococo:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo.api.integritee.network#/explorer

In the top right corner, it says: Integritee Collator v1.5.40

On the sgxmachine, do the following:

wget https://github.com/integritee-network/parachain/releases/download/1.5.40/integritee-collator
chmod +x integritee-collator
./integritee-collator --chain=integritee-rococo --name=testing --pruning=archive --ws-max-connections=2000 --execution=wasm --bootnodes /ip4/167.172.185.142/tcp/30333/p2p/12D3KooWBhBzjfGHZ4vaNwUE4vojwyxCzh4ncE6er4aZoKyCLhgX --telemetry-url 'wss://shard.telemetry.integritee.io/submit/ 1' -- --chain=rococo --sync warp

You may want to run this as a service constantly, but for single testing, we omit these steps

This will sync for several hours probably. You know when it is done if both relaychain and parachain

run worker against testnet

On the same sgxmachine, run:

RUST_LOG=warn,ws=warn,sp_io=error,substrate_api_client=warn,json_rpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,ingegritee_service=warn,ita_stf=debug 
./integritee-service init-shard
./integritee-service shielding-key
./integritee-service signing-key
./integritee-service run 

the first attempt will fail (maybe only after synching), because the freshly generated wallet of the enclave has no funds to pay fees on the testnet. Check the logs for this line:

Enclave account 5DKjYNByLJK9ZM9CBjjtNtP3W7yGSWJ11AAiNkHZeXtScd2x

You can request test-TEER from us if you provide your wallet address.
In the best case you create a wallet you control yourself here (so you can fund more than this enclave for subsequent tests):
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo.api.integritee.network#/accounts
We recommend to use the browser extension for creating wallets.

Once your enclave wallet has funds, restart the service and it should

  1. sync light client with the testnet (this may take a while)
  2. register remote attestation for self
  3. start operation