Skip to content

Commit

Permalink
Split prpc to a seprate repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Apr 18, 2024
1 parent efe384b commit d8d66cd
Show file tree
Hide file tree
Showing 16 changed files with 211 additions and 1,884 deletions.
315 changes: 202 additions & 113 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ members = [
"crates/phala-node-rpc-ext",
"crates/phala-types",
"crates/phala-git-revision",
"crates/prpc",
"crates/prpc-build",
"crates/phactory",
"crates/phactory/api",
"crates/phactory/pal",
Expand Down
2 changes: 1 addition & 1 deletion crates/phactory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ phala-mq = { path = "../phala-mq" }
phala-serde-more = { path = "../phala-serde-more" }

phala-crypto = { path = "../phala-crypto", features = ["getrandom", "stream"] }
prpc = { path = "../prpc" }
prpc = "0.1"
pink-loader = { path = "../pink/loader" }
pink-chain-extension = { path = "../pink/chain-extension" }
pink = { path = "../pink/pink" }
Expand Down
6 changes: 3 additions & 3 deletions crates/phactory/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ scale-info = { version = "2.10.0", default-features = false, features = ["derive
serde = { version = "1", features = ["derive"], default-features = false }
base64 = { version = "0.13" }
derive_more = { version = "0.99.17" }
prost = "0.11.8"
prost = "0.12.4"

phala-trie-storage = { path = "../../../crates/phala-trie-storage", default-features = false, features = ["serde"] }
phala-types = { path = "../../../crates/phala-types", default-features = false, features = ["enable_serde", "sgx"] }
prpc = { path = "../../../crates/prpc", default-features = false }
prpc = { version = "0.1", default-features = false }
phala-crypto = { path = "../../../crates/phala-crypto" }
chain = { path = "../../../standalone/runtime", default-features = false, package = "phala-node-runtime" }

Expand Down Expand Up @@ -42,7 +42,7 @@ hex = "0.4.3"
type-info-stringify = { path = "../../type-info-stringify" }

[build-dependencies]
prpc-build = { path = "../../../crates/prpc-build" }
prpc-build = "0.1"
tera = { version = "1.12.1" }
tempdir = { version = "0.3.7" }

Expand Down
6 changes: 3 additions & 3 deletions crates/phactory/api/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ impl Signature {
if max_depth == 0 {
return Err(SignatureVerifyError::TooLongCertificateChain);
}
let sig_type = match SignatureType::from_i32(self.signature_type) {
Some(val) => val,
None => {
let sig_type = match SignatureType::try_from(self.signature_type) {
Ok(val) => val,
Err(_) => {
return Err(SignatureVerifyError::InvalidSignatureType);
}
};
Expand Down
2 changes: 1 addition & 1 deletion crates/phala-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ scale-info = { version = "2.10.0", default-features = false, features = ["derive
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0", default-features = false }

phala-mq = { path = "../../crates/phala-mq", default-features = false }
prpc = { path = "../../crates/prpc", default-features = false }
prpc = { version = "0.1", default-features = false }
pink-types = { path = "../pink/pink-types", default-features = false }
sgx-attestation = { path = "../sgx-attestation", default-features = false, optional = true }

Expand Down
18 changes: 0 additions & 18 deletions crates/prpc-build/Cargo.toml

This file was deleted.

107 changes: 0 additions & 107 deletions crates/prpc-build/src/client.rs

This file was deleted.

Loading

0 comments on commit d8d66cd

Please sign in to comment.