Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitacross init #2419

Merged
merged 14 commits into from
Jan 30, 2024
Merged

bitacross init #2419

merged 14 commits into from
Jan 30, 2024

Conversation

kziemianek
Copy link
Member

@kziemianek kziemianek commented Jan 24, 2024

Starting point for BitAcross.
Code is taken from tee-worker. I've removed unnecessary stuff like identity related trusted calls/getters.

Below is the list that contains changed files compared to tee-worker. I used diff -qr tee-worker/ bitacross-worker/ to prepare it.

bitacross-worker/app-libs/parentchain-interface/Cargo.toml
bitacross-worker/app-libs/parentchain-interface/src/indirect_calls/litentry/args_executor.rs
bitacross-worker/app-libs/parentchain-interface/src/indirect_calls/litentry/mod.rs
bitacross-worker/app-libs/parentchain-interface/src/indirect_calls/litentry/scheduled_enclave.rs
bitacross-worker/app-libs/parentchain-interface/src/indirect_calls/mod.rs
bitacross-worker/app-libs/parentchain-interface/src/integritee/event_handler.rs
bitacross-worker/app-libs/parentchain-interface/src/integritee/mod.rs
bitacross-worker/app-libs/parentchain-interface/src/target_a/event_handler.rs
bitacross-worker/app-libs/sgx-runtime/Cargo.toml
bitacross-worker/app-libs/sgx-runtime/src/lib.rs
bitacross-worker/app-libs/stf/Cargo.toml differ
bitacross-worker/app-libs/stf/src/getter.rs differ
bitacross-worker/app-libs/stf/src/lib.rs differ
bitacross-worker/app-libs/stf/src/trusted_call_result.rs
bitacross-worker/app-libs/stf/src/trusted_call.rs
bitacross-worker/bin/aes_key_and_iv_sealed_data.bin
bitacross-worker/bin/ed25519_key_sealed.bin
bitacross-worker/bin/enclave.signed.so
bitacross-worker/bin/rsa3072_key_sealed.bin
bitacross-worker/build.Dockerfile
bitacross-worker/Cargo.lock
bitacross-worker/Cargo.toml
bitacross-worker/cli/benchmark.sh
bitacross-worker/cli/Cargo.toml
bitacross-worker/cli/demo_direct_call_2_workers.sh
bitacross-worker/cli/demo_direct_call.sh
bitacross-worker/cli/demo_shielding_unshielding.sh
bitacross-worker/cli/demo_sidechain.sh
bitacross-worker/cli/demo_smart_contract.sh
bitacross-worker/cli/demo_teeracle_generic.sh
bitacross-worker/cli/demo_teeracle_whitelist.sh
bitacross-worker/cli/lit_parentchain_nonce.sh
bitacross-worker/cli/lit_set_heartbeat_timeout.sh
bitacross-worker/cli/README.md
bitacross-worker/cli/src/base_cli/commands/litentry/mod.rs
bitacross-worker/cli/src/base_cli/commands/litentry/set_heartbeat_timeout.rs
bitacross-worker/cli/src/base_cli/mod.rs
bitacross-worker/cli/src/command_utils.rs
bitacross-worker/cli/src/lib.rs
bitacross-worker/cli/src/main.rs
bitacross-worker/cli/src/trusted_base_cli/commands/mod.rs
bitacross-worker/cli/src/trusted_base_cli/mod.rs
bitacross-worker/cli/src/trusted_operation.rs
bitacross-worker/cli/tests/basic_tests.rs
bitacross-worker/cli/test_shield_on_target_nodes_with_transfer_to_alice.sh
bitacross-worker/core/direct-rpc-client/src/lib.rs
bitacross-worker/core/peer-top-broadcaster/src/lib.rs
bitacross-worker/core/rpc-client/src/direct_client.rs
bitacross-worker/core/rpc-client/src/mock.rs
bitacross-worker/core-primitives/enclave-metrics/Cargo.toml
bitacross-worker/core-primitives/enclave-metrics/src/lib.rs
bitacross-worker/core-primitives/node-api/metadata/src/pallet_imp.rs
bitacross-worker/core-primitives/node-api/metadata/src/pallet_utility.rs
bitacross-worker/core-primitives/node-api/metadata/src/pallet_vcmp.rs
bitacross-worker/core-primitives/node-api/metadata/src/runtime_call.rs
bitacross-worker/core-primitives/stf-executor/src/executor.rs
bitacross-worker/core-primitives/stf-interface/src/runtime_upgrade.rs
bitacross-worker/core-primitives/stf-primitives/src/traits.rs
bitacross-worker/core-primitives/test/src/mock/stf_mock.rs
bitacross-worker/core-primitives/utils/Cargo.toml
bitacross-worker/core-primitives/utils/src/hex.rs
bitacross-worker/core-primitives/utils/src/lib.rs
bitacross-worker/docker/demo-direct-call.yml
bitacross-worker/docker/demo-shielding-unshielding-multiworker.yml
bitacross-worker/docker/demo-sidechain.yml
bitacross-worker/docker/demo-smart-contract.yml
bitacross-worker/docker/demo-teeracle-generic.yml
bitacross-worker/docker/demo-teeracle.yml
bitacross-worker/docker/docker-compose.yml
bitacross-worker/docker/entrypoint.sh
bitacross-worker/docker/fork-inducer.yml
bitacross-worker/docker/lit-ii-batch-test.yml
bitacross-worker/docker/lit-parentchain-nonce.yml 
bitacross-worker/docker/lit-set-heartbeat-timeout.yml
bitacross-worker/docker/multiworker-docker-compose.yml
bitacross-worker/docker/sidechain-benchmark.yml
bitacross-worker/enclave-runtime/Cargo.lock
bitacross-worker/enclave-runtime/Cargo.toml
bitacross-worker/enclave-runtime/enclave.so
bitacross-worker/enclave-runtime/Enclave_t.c
bitacross-worker/enclave-runtime/Enclave_t.h
bitacross-worker/enclave-runtime/Enclave_t.o
bitacross-worker/enclave-runtime/src/error.rs
bitacross-worker/enclave-runtime/src/initialization/global_components.rs
bitacross-worker/enclave-runtime/src/initialization/mod.rs
bitacross-worker/enclave-runtime/src/lib.rs
bitacross-worker/enclave-runtime/src/rpc/worker_api_direct.rs
bitacross-worker/enclave-runtime/src/test/mocks/peer_updater_mock.rs
bitacross-worker/enclave-runtime/src/test/tests_main.rs
bitacross-worker/enclave-runtime/src/top_pool_execution.rs
bitacross-worker/.gitignore
bitacross-worker/lib/libenclave.abitacross-worker/lib/libEnclave_u.a
bitacross-worker/litentry/core/scheduled-enclave/src/error.rs
bitacross-worker/litentry/core/scheduled-enclave/src/io.rs
bitacross-worker/litentry/core/scheduled-enclave/src/lib.rs
bitacross-worker/litentry/primitives/Cargo.toml
bitacross-worker/litentry/primitives/src/aes_request.rs
bitacross-worker/litentry/primitives/src/aes.rs
bitacross-worker/litentry/primitives/src/bitcoin_signature.rs
bitacross-worker/litentry/primitives/src/ethereum_signature.rs
bitacross-worker/litentry/primitives/src/lib.rs
bitacross-worker/litentry/primitives/src/validation_data.rs
bitacross-worker/local-setup/config/one-worker.json
bitacross-worker/local-setup/config/three-workers.json
bitacross-worker/local-setup/config/two-workers.json
bitacross-worker/local-setup/development-worker.json
bitacross-worker/local-setup/launch.py
bitacross-worker/local-setup/py/helpers.py
bitacross-worker/local-setup/py/worker.py
bitacross-worker/local-setup/rococo_one_worker.json
bitacross-worker/local-setup/worker-log-level-config.toml
bitacross-worker/Makefile
bitacross-worker/README.md
bitacross-worker/scripts/benchmark_local-setup.sh
bitacross-worker/scripts/launch_local_worker.sh
bitacross-worker/scripts/litentry/identity_test.sh
bitacross-worker/scripts/litentry/release/ReadMe.md
bitacross-worker/scripts/m6.sh
bitacross-worker/scripts/m8.sh
bitacross-worker/scripts/sidechain.sh
bitacross-worker/service/Cargo.toml
bitacross-worker/service/Enclave_u.c
bitacross-worker/service/Enclave_u.h
bitacross-worker/service/Enclave_u.o
bitacross-worker/service/libEnclave_u.a
bitacross-worker/service/src/cli.yml
bitacross-worker/service/src/config.rs
bitacross-worker/service/src/main_impl.rs
bitacross-worker/service/src/prometheus_metrics.rs
bitacross-worker/service/src/teeracle/mod.rs
bitacross-worker/service/src/tests/commons.rs
bitacross-worker/sidechain/consensus/aura/Cargo.toml
bitacross-worker/sidechain/consensus/aura/src/lib.rs
bitacross-worker/sidechain/rpc-handler/Cargo.toml
bitacross-worker/sidechain/rpc-handler/src/direct_top_pool_api.rs
bitacross-worker/ts-tests/pnpm-lock.yaml
bitacross-worker/ts-tests/pnpm-workspace.yaml
bitacross-worker/ts-tests/README.md

@kziemianek kziemianek marked this pull request as ready for review January 24, 2024 00:40
@kziemianek kziemianek force-pushed the bitacross-init branch 5 times, most recently from 5e82070 to d39923e Compare January 24, 2024 09:41
@kziemianek kziemianek requested a review from a team January 29, 2024 12:51
@Kailai-Wang
Copy link
Collaborator

Thanks!

We can either accept it now, or wait a bit until P-443 is finished, which would affect the worker registration and mngt, like I'm thinking both identity and bitacross worker will be registered within the same pallet

@kziemianek
Copy link
Member Author

Let's merge it, it's already huge commit.

@felixfaisal
Copy link
Member

I think we should merge it, It will be easier to test P-443 with both workers when they are merged in dev and also continue working on bitacross poc.

@felixfaisal
Copy link
Member

Or we can treat this as the staging branch for all bitacross commits

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge it first

Copy link
Member

@felixfaisal felixfaisal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Kailai-Wang Kailai-Wang merged commit 28167f6 into dev Jan 30, 2024
33 checks passed
@Kailai-Wang Kailai-Wang deleted the bitacross-init branch January 30, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants