DeTEE Hacker Challenge for everybody who wants to break the DeTEE technology
Go to file
Valentyn Faychuk 2a87efacc1
metrics and refactoring
Signed-off-by: Valentyn Faychuk <valy@detee.ltd>
2024-12-02 03:48:09 +02:00
.cargo write metrics to the /host/logs 2024-12-02 03:42:38 +02:00
docker lightweight docker container and docker volumes 2024-12-02 01:42:06 +00:00
mint_sol rewrite (#2) 2024-11-08 14:33:42 +00:00
proto write metrics to the /host/logs 2024-12-02 03:42:38 +02:00
scripts lightweight docker container and docker volumes 2024-12-02 01:42:06 +00:00
src metrics and refactoring 2024-12-02 03:48:09 +02:00
.gitignore fix compilation and runtime 2024-10-06 15:34:02 +03:00
build.rs rewrite (#2) 2024-11-08 14:33:42 +00:00
Cargo.lock metrics and refactoring 2024-12-02 03:48:09 +02:00
Cargo.toml metrics and refactoring 2024-12-02 03:48:09 +02:00
deploy_ed25519 rewrite (#2) 2024-11-08 14:33:42 +00:00
README.md lightweight docker container and docker volumes 2024-12-02 01:42:06 +00:00
rustfmt.toml rewrite (#2) 2024-11-08 14:33:42 +00:00

Welcome to the HACKER CHALLENGE

Building and packaging the challenge

The host can be without SGX support. To build and package the challenge you will need the docker environment. Do the following steps to build the challenge:

# Notice that there is no SGX device mounted, run inside rewrite directory
docker run --rm --name packager -it -v .:/root/rewrite occlum/occlum:latest-ubuntu20.04
# Inside the docker container run package.sh and follow its instructions
cd /root/rewrite && ./scripts/package.sh --prep
exit # Feel free to exit the container

Testing the challenge

To test the challenge you will need the SGX support.

# this will boot few containers containing servers that will replicate the private key generated by one of the nodes
./scripts/testnet.sh
# to interact with the servers list the ports
docker container list
# pick some node and
curl localhost:your-port
# node will respond with a homepage with more information

The node homepage source is also here.

Production build

./scripts/build-container.sh

Contributing to the challenge

Don't forget to run cargo clippy and cargo fmt before submitting a PR.