Skip to content

Commit 0a9aec4

Browse files
committed
fix to use string type for collateral's json values
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent 3a2874f commit 0a9aec4

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

Cargo.lock

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

app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ crypto = { path = "../modules/crypto" }
2727
keymanager = { path = "../modules/keymanager" }
2828
remote-attestation = { path = "../modules/remote-attestation" }
2929
attestation-report = { path = "../modules/attestation-report" }
30-
zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
30+
zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
3131

3232
[build-dependencies]
3333
git2 = { version = "0.20", default-features = false }

modules/attestation-report/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pem = { version = "2.0", default-features = false }
1818
webpki = { version = "0.22", features = ["alloc"] }
1919
anyhow = { version = "1", default-features = false }
2020

21-
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f", optional = true }
21+
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137", optional = true }
2222

2323
[dev-dependencies]
2424
tokio = { version = "1.0", default-features = false, features = ["macros"] }

modules/lcp-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ flex-error = { version = "0.4.4", default-features = false }
1111
tiny-keccak = { version = "2.0" }
1212
hex-literal = { version = "0.4.1" }
1313
alloy-sol-types = { version = "0.8", default-features = false }
14-
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
14+
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
1515

1616
attestation-report = { path = "../attestation-report", default-features = false }
1717
remote-attestation = { path = "../remote-attestation", default-features = false }

modules/remote-attestation/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ serde_json = { version = "1.0", features = ["preserve_order"] }
2727
rsa = { version = "0.9.2", features = ["pem"], optional = true }
2828
chrono = { version = "0.4.38", features = ["now"], optional = true }
2929

30-
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
31-
dcap-pcs = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
32-
dcap-collaterals = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
30+
dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
31+
dcap-pcs = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
32+
dcap-collaterals = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
3333

3434
lcp-types = { path = "../types" }
3535
crypto = { path = "../crypto", default-features = false }

modules/remote-attestation/src/dcap_simulation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ pub(crate) fn simulate_gen_quote_and_collaterals(
271271
.unwrap();
272272

273273
let collateral = QvCollateral {
274-
tcb_info_json: serde_json::to_vec(&tcb_info).unwrap(),
275-
qe_identity_json: serde_json::to_vec(&qe_identity).unwrap(),
274+
tcb_info_json: serde_json::to_string(&tcb_info).unwrap(),
275+
qe_identity_json: serde_json::to_string(&qe_identity).unwrap(),
276276
sgx_intel_root_ca_der: root_ca.cert.to_der().unwrap(),
277277
sgx_tcb_signing_der: tcb_certchain.cert.to_der().unwrap(),
278278
sgx_intel_root_ca_crl_der: root_ca.crl.to_der().unwrap(),

proto/src/descriptor.bin

0 Bytes
Binary file not shown.

proto/src/prost/lcp.service.enclave.v1.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ pub struct Risc0ZkvmProof {
127127
#[allow(clippy::derive_partial_eq_without_eq)]
128128
#[derive(Clone, PartialEq, ::prost::Message)]
129129
pub struct QvCollateral {
130-
#[prost(bytes = "vec", tag = "1")]
131-
pub tcb_info_json: ::prost::alloc::vec::Vec<u8>,
132-
#[prost(bytes = "vec", tag = "2")]
133-
pub qe_identity_json: ::prost::alloc::vec::Vec<u8>,
130+
#[prost(string, tag = "1")]
131+
pub tcb_info_json: ::prost::alloc::string::String,
132+
#[prost(string, tag = "2")]
133+
pub qe_identity_json: ::prost::alloc::string::String,
134134
#[prost(bytes = "vec", tag = "3")]
135135
pub sgx_intel_root_ca_der: ::prost::alloc::vec::Vec<u8>,
136136
#[prost(bytes = "vec", tag = "4")]

tests/integration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ attestation-report = { path = "../../modules/attestation-report" }
3535
keymanager = { path = "../../modules/keymanager" }
3636
remote-attestation = { path = "../../modules/remote-attestation" }
3737

38-
zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "1c52677de65c389d95d93359c9740cca9b3ec03f" }
38+
zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "9616d7976a84e97a128fa02175ec994b95e3c137" }
3939

4040
[features]
4141
default = []

0 commit comments

Comments
 (0)