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 to handle native calls in the omni-executor (WIP) #3233

Draft
wants to merge 64 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
64 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
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
47 changes: 39 additions & 8 deletions common/primitives/core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 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 = { package = "rustls-webpki", version = "0.102.8", default-features = false, features = ["alloc", "ring"] }
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 Down
4 changes: 3 additions & 1 deletion common/primitives/core/src/teebag/sgx_verify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ pub fn verify_certificate_chain<'a>(
time,
webpki::KeyUsage::client_auth(),
None,
None,
)
.map_err(|_| "Invalid certificate chain")?;
Ok(())
Expand Down Expand Up @@ -808,8 +809,9 @@ pub fn verify_server_cert(
timestamp_valid_until,
webpki::KeyUsage::server_auth(),
None,
None,
) {
Ok(()) => Ok(()),
Ok(_) => Ok(()),
Err(_e) => Err("CA verification failed"),
}
}
Expand Down
103 changes: 96 additions & 7 deletions tee-worker/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading