Skip to content

Commit d8d66cd

Browse files
committed
Split prpc to a seprate repo
1 parent efe384b commit d8d66cd

File tree

16 files changed

+211
-1884
lines changed

16 files changed

+211
-1884
lines changed

Cargo.lock

Lines changed: 202 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ members = [
5353
"crates/phala-node-rpc-ext",
5454
"crates/phala-types",
5555
"crates/phala-git-revision",
56-
"crates/prpc",
57-
"crates/prpc-build",
5856
"crates/phactory",
5957
"crates/phactory/api",
6058
"crates/phactory/pal",

crates/phactory/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ phala-mq = { path = "../phala-mq" }
2626
phala-serde-more = { path = "../phala-serde-more" }
2727

2828
phala-crypto = { path = "../phala-crypto", features = ["getrandom", "stream"] }
29-
prpc = { path = "../prpc" }
29+
prpc = "0.1"
3030
pink-loader = { path = "../pink/loader" }
3131
pink-chain-extension = { path = "../pink/chain-extension" }
3232
pink = { path = "../pink/pink" }

crates/phactory/api/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ scale-info = { version = "2.10.0", default-features = false, features = ["derive
1010
serde = { version = "1", features = ["derive"], default-features = false }
1111
base64 = { version = "0.13" }
1212
derive_more = { version = "0.99.17" }
13-
prost = "0.11.8"
13+
prost = "0.12.4"
1414

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

@@ -42,7 +42,7 @@ hex = "0.4.3"
4242
type-info-stringify = { path = "../../type-info-stringify" }
4343

4444
[build-dependencies]
45-
prpc-build = { path = "../../../crates/prpc-build" }
45+
prpc-build = "0.1"
4646
tera = { version = "1.12.1" }
4747
tempdir = { version = "0.3.7" }
4848

crates/phactory/api/src/crypto.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ impl Signature {
7878
if max_depth == 0 {
7979
return Err(SignatureVerifyError::TooLongCertificateChain);
8080
}
81-
let sig_type = match SignatureType::from_i32(self.signature_type) {
82-
Some(val) => val,
83-
None => {
81+
let sig_type = match SignatureType::try_from(self.signature_type) {
82+
Ok(val) => val,
83+
Err(_) => {
8484
return Err(SignatureVerifyError::InvalidSignatureType);
8585
}
8686
};

crates/phala-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ scale-info = { version = "2.10.0", default-features = false, features = ["derive
1212
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0", default-features = false }
1313

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

crates/prpc-build/Cargo.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

crates/prpc-build/src/client.rs

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)