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

Creating RPC API and base structure to handle native calls in the omni-executor #3233

Merged
merged 100 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
9771c58
setting up rpc crate
silva-fj Jan 14, 2025
81c4f7e
adding dependencies
silva-fj Jan 14, 2025
a4a67cd
initial rpc server setup
silva-fj Jan 14, 2025
46447a1
running rpc server
silva-fj Jan 14, 2025
b8a5223
adding dependencies to the workspace
silva-fj Jan 15, 2025
7a4690a
adding dependencies to rpc crate
silva-fj Jan 15, 2025
3ff1e2f
adding shielding_key type
silva-fj Jan 15, 2025
3fc01c7
refactoring rpc and adding shielding_key init
silva-fj Jan 15, 2025
42e634e
adding get_shielding_key method
silva-fj Jan 15, 2025
d138d57
adding dependencies to the workspace
silva-fj Jan 15, 2025
990f8c2
adding utils
silva-fj Jan 15, 2025
f9a689e
adding dependencies to rpc-server
silva-fj Jan 15, 2025
afa8819
adding crypto module and refactoring shielding_key
silva-fj Jan 15, 2025
dae6d86
improving get_shielding_key
silva-fj Jan 15, 2025
a6940b1
fixing imports
silva-fj Jan 15, 2025
e36a2e1
adding aes256
silva-fj Jan 15, 2025
2cdc64b
updating server imports
silva-fj Jan 15, 2025
b0604c5
adding submit_native_request method (WIP)
silva-fj Jan 15, 2025
46bfed0
fixing rsa dependencies
silva-fj Jan 16, 2025
224650f
extracting out crypto
silva-fj Jan 16, 2025
395e34c
small refactoring, updating usage of crypto functions
silva-fj Jan 16, 2025
caa35ba
implementing Display for hex error
silva-fj Jan 16, 2025
c0ebfdc
native-call-executor initial setup
silva-fj Jan 16, 2025
20c334a
extending rpc context
silva-fj Jan 16, 2025
37aca5a
error_code initial setup
silva-fj Jan 16, 2025
16dd28f
adding submit_native_aes_request (WIP)
silva-fj Jan 16, 2025
204e86f
running native-call-executor and fixing context
silva-fj Jan 16, 2025
8c9fab9
updating get_shielding_key method, adding error code response
silva-fj Jan 16, 2025
867335a
updating deps
silva-fj Jan 16, 2025
4e7d833
updating rustls-webpki to the latest version to fix compatilibity issue
silva-fj Jan 16, 2025
3097a48
updating lock files
silva-fj Jan 16, 2025
402e4da
installing core primitives to the workspace
silva-fj Jan 16, 2025
f5df58b
adding sender_identity to native calls
silva-fj Jan 16, 2025
03c3fd6
small cleanup
silva-fj Jan 16, 2025
7ed2176
cleaning up dependencies
silva-fj Jan 16, 2025
890dbb3
fixing fmt issues
silva-fj Jan 16, 2025
be5d8ec
updating method name
silva-fj Jan 16, 2025
8301267
small refactoring
silva-fj Jan 16, 2025
594f15b
adding secp256k1 crypto module
silva-fj Jan 17, 2025
a38d31f
adding more dependencies to the workspace
silva-fj Jan 17, 2025
174b806
exposing sp-core crypto modules
silva-fj Jan 17, 2025
9b23402
setting up heima-primitives crate
silva-fj Jan 17, 2025
88b29ce
Merge remote-tracking branch 'origin/dev' into p-1252-create-an-rpc-a…
silva-fj Jan 17, 2025
d80578d
reverting commit
silva-fj Jan 17, 2025
908ea06
adding signature module to parentchain-primitives
silva-fj Jan 17, 2025
321ec8a
small improvement to submit_native_aes_request method
silva-fj Jan 17, 2025
d5541f7
adding heima-primitives to the workspace
silva-fj Jan 17, 2025
9d3df57
updating Cargo.lock file
silva-fj Jan 17, 2025
3403cba
importing real Identity type
silva-fj Jan 17, 2025
2ab33b9
adding heima prefix
silva-fj Jan 17, 2025
e3ac92f
adding more dependencies to the workspace
silva-fj Jan 17, 2025
8d0ff56
exposing more crypto primitives
silva-fj Jan 17, 2025
cbd19ce
implementing HeimaMultiSignature
silva-fj Jan 17, 2025
0ef58f6
exposing heima-primitives from parentchain-primitives
silva-fj Jan 17, 2025
05616e9
updating RpcContext
silva-fj Jan 17, 2025
27268d5
adding request module
silva-fj Jan 17, 2025
56277a7
adding parentchain-primitives dependency to rpc-server
silva-fj Jan 17, 2025
a7a2b4e
adding signature_message_prefix to NativeCall
silva-fj Jan 17, 2025
a8245a8
adding authentication module (WIP)
silva-fj Jan 17, 2025
0e41ce8
updating error_code
silva-fj Jan 17, 2025
3abc581
refining names
silva-fj Jan 17, 2025
6e0d59a
refactoring submit_aes_request method
silva-fj Jan 17, 2025
bf78743
fixing fmt issues
silva-fj Jan 17, 2025
d0bc276
updating comment
silva-fj Jan 17, 2025
eea1ce4
refactoring names
silva-fj Jan 20, 2025
886bcfb
removing unused method for now
silva-fj Jan 20, 2025
2d98960
moving storage to general local crates
silva-fj Jan 20, 2025
5a61ba5
adding skeleton for google oauth2 authentication
silva-fj Jan 20, 2025
ed5cd91
keeping control of what is exported from common core-primitives
silva-fj Jan 20, 2025
0812b7b
exposing more primitive types
silva-fj Jan 20, 2025
d724c08
refactoring native-task-executor into native-task-handler
silva-fj Jan 20, 2025
d1be7fc
fixing usages of the native-task-handler
silva-fj Jan 20, 2025
ce4e4fa
refactoring submit_aes_request
silva-fj Jan 20, 2025
10391d3
ordering imports
silva-fj Jan 20, 2025
4a2bfd6
moving native_call to executor-core
silva-fj Jan 20, 2025
6fc3320
moving GetEventId trait to parentchain primitives
silva-fj Jan 20, 2025
6e458f7
updating rpc-server
silva-fj Jan 20, 2025
5b1b583
updating native-task-handler
silva-fj Jan 20, 2025
2a474d8
updating Cargo.lock file
silva-fj Jan 20, 2025
40b6692
refactor(deps): alphabetize workspace dependencies
silva-fj Jan 20, 2025
3a6ab2a
fixing fmt issue
silva-fj Jan 20, 2025
cf48236
updating webpki on the parachain as well
silva-fj Jan 20, 2025
c3df80a
Revert "updating rustls-webpki to the latest version to fix compatili…
silva-fj Jan 20, 2025
cf69bd8
Revert "updating webpki on the parachain as well"
silva-fj Jan 20, 2025
beef34e
Revert "updating lock files"
silva-fj Jan 20, 2025
dea4057
fix compilation; hide webpki behind a feature
silva-fj Jan 20, 2025
7606c82
Merge branch 'dev' into p-1252-create-an-rpc-api-and-migrate-relevant…
silva-fj Jan 20, 2025
c46db70
removing unused code
silva-fj Jan 20, 2025
9c85561
fixing clippy issues
silva-fj Jan 20, 2025
262c77e
fixing tests
silva-fj Jan 20, 2025
6d548a1
updating docker build
silva-fj Jan 20, 2025
bd0f37c
fixing typo
silva-fj Jan 20, 2025
db015cb
updating docker context on CI
silva-fj Jan 21, 2025
119f8ba
Merge remote-tracking branch 'origin/dev' into p-1252-create-an-rpc-a…
silva-fj Jan 27, 2025
b787184
small refactoring
silva-fj Jan 27, 2025
1ebd6f4
renaming crypto to executor-crypto
silva-fj Jan 27, 2025
c0e9693
renaming storage to executor-storage
silva-fj Jan 27, 2025
f2315b9
fixing fmt issue
silva-fj Jan 27, 2025
325a4b7
Adding support for email authentication in the omni-executor (#3235)
silva-fj Jan 28, 2025
c904dda
Merge branch 'dev' into p-1252-create-an-rpc-api-and-migrate-relevant…
silva-fj Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ jobs:
if: needs.set-condition.outputs.rebuild_omni_executor == 'true'
uses: docker/build-push-action@v6
with:
context: tee-worker/omni-executor/
context: .
file: tee-worker/omni-executor/Dockerfile
tags: litentry/omni-executor:latest
target: executor-worker
Expand Down
7 changes: 4 additions & 3 deletions common/primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
serde_json = { version = "=1.0.133", default-features = false }
strum = { version = "0.26", default-features = false }
strum_macros = { version = "0.26", default-features = false }
webpki = { version = "=0.102.0-alpha.3", git = "https://github.com/rustls/webpki", rev = "da923ed", package = "rustls-webpki", default-features = false, features = ["alloc", "ring"] }
webpki = { version = "=0.102.0-alpha.3", git = "https://github.com/rustls/webpki", rev = "da923ed", package = "rustls-webpki", default-features = false, features = ["alloc", "ring"], optional = true }
silva-fj marked this conversation as resolved.
Show resolved Hide resolved
x509-cert = { version = "0.1.0", default-features = false, features = ["alloc"] }

frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2407", default-features = false }
Expand All @@ -34,13 +34,12 @@ litentry-macros = { path = "macros" }
litentry-proc-macros = { path = "proc-macros" }

[features]
default = ["std"]
default = ["std", "webpki"]
std = [
"chrono/std",
"der/std",
"hex/std",
"ring/std",
"webpki/std",
"x509-cert/std",
"serde/std",
"serde_json/std",
Expand All @@ -55,7 +54,9 @@ std = [
"sp-consensus-aura/std",
"pallet-evm/std",
"litentry-hex-utils/std",
"webpki?/std",
]
development = [
"litentry-macros/development",
]
webpki = ["dep:webpki"]
2 changes: 2 additions & 0 deletions common/primitives/core/src/teebag/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ pub use types::*;
mod tcb;
pub use tcb::*;

#[cfg(feature = "webpki")]
mod sgx_verify;
#[cfg(feature = "webpki")]
pub use sgx_verify::*;

mod quoting_enclave;
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/teebag/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

core-primitives = { workspace = true }
core-primitives = { workspace = true, features = ["webpki"] }

[dev-dependencies]
env_logger = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/common/litentry/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sgx_tstd = { workspace = true, features = ["net", "thread"], optional = true }

itp-sgx-crypto = { workspace = true }
itp-sgx-runtime-primitives = { workspace = true }
parentchain-primitives = { workspace = true }
parentchain-primitives = { workspace = true, features = ["webpki"] }

[dev-dependencies]
base64 = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions tee-worker/omni-executor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ omni-executor.manifest
omni-executor.manifest.sgx
omni-executor.sig
omni-executor-worker
storage_db
test_storage_db
Loading
Loading