olisystems / BEST-Energy

Integritee off-chain worker and sidechain validateer
Apache License 2.0
2 stars 0 forks source link

logo

BEST Hybrid Blockchain Platform

Hybrid blockchain-based energy market verification platform

👋 Introducing BESTEnergy Hybrid Blockchain Platform

Implements trusted execution environment (TEE) for matching bids and offers, creating Merkle root of bids/offers and results, and store the root hash in the Integritee network

📗 API Documentation

Read the API documentation here.

🔥 Features

🛠️ Development Setup for Docker

These instructions will get you a copy of the project up and running inside a Docker container for development and testing purposes.

📌 Prerequisites

Before you start, make sure you have completed the following prerequisites:

📝 Note: Both of these repositories must be in the same directory.

🏗️ Develop Inside a Docker Container

Follow the steps below to have the development environment running:

  1. Mount the current directory containing the integritee-worker and integritee node into the Docker container and start a bash session inside:
$ docker run -it --mount "type=bind,src=$(pwd),dst=/opt/shared" --workdir /opt/shared -p 9944:9944 -p 2000:2000 -p 3443:3443 integritee/integritee-dev:0.1.12 /bin/bash
  1. Build the integritee-node

Inside the shell in the Docker container:

$ cd integritee-node
$ cargo build release --features "skip-extrinsic-filtering skip-ias-check"
  1. Build the worker node
$ cd ../
$ cd BEST-Energy
$ SGX_MODE=SW WORKER_MODE=offchain-worker make
  1. Run the integritee-node

Execute the following command inside the integritee-node directory:

$ ./target/release/integritee-node --tmp --dev -lruntime=info --ws-port 9944 --port 30390 --rpc-port 9933 --ws-external --rpc-external
  1. Run the worker

Execute the following command inside the BEST-Energy/bin directory:

$ 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 --clean-reset run --skip-ra --dev

🍔 Built With

🛡️ License

🤝 Contributing

Pull requests are welcome.

  1. Fork the repository.
  2. Create your new feature branch: git checkout -b new-feature-branch
  3. Stage your changes: git add .
  4. Commit the changes: git commit -m "add commit message"
  5. push to the branch: git push origin new-feature-branch
  6. Submit a pull request.