mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00
Merge pull request #161 from matter-labs/patrick/simplify-dependencies
fix(verify-attestation): simplify dependencies
This commit is contained in:
commit
1397e3c2dd
4 changed files with 254 additions and 496 deletions
742
Cargo.lock
generated
742
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,6 @@ homepage = "https://github.com/matter-labs/teepot"
|
|||
actix-http = "3"
|
||||
actix-tls = "3"
|
||||
actix-web = { version = "4.5", features = ["rustls-0_22"] }
|
||||
alloy-primitives = "0.7.7"
|
||||
anyhow = "1.0.82"
|
||||
awc = { version = "3.4", features = ["rustls-0_22-webpki-roots"] }
|
||||
base64 = "0.22.0"
|
||||
|
@ -64,3 +63,4 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|||
x509-cert = { version = "0.2", features = ["builder", "signature"] }
|
||||
zeroize = { version = "1.7.0", features = ["serde"] }
|
||||
webpki-roots = "0.26.1"
|
||||
zksync_basic_types = "=0.1.0"
|
||||
|
|
|
@ -7,9 +7,9 @@ license.workspace = true
|
|||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
alloy-primitives.workspace = true
|
||||
anyhow.workspace = true
|
||||
clap.workspace = true
|
||||
hex.workspace = true
|
||||
secp256k1.workspace = true
|
||||
teepot.workspace = true
|
||||
zksync_basic_types.workspace = true
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
//! Tool for SGX attestation and batch signature verification
|
||||
|
||||
use alloy_primitives::B256;
|
||||
use anyhow::{Context, Result};
|
||||
use clap::{Args, Parser, Subcommand};
|
||||
use secp256k1::{ecdsa::Signature, Message, PublicKey};
|
||||
|
@ -12,6 +11,7 @@ use teepot::{
|
|||
client::TcbLevel,
|
||||
sgx::{tee_qv_get_collateral, verify_quote_with_collateral, QuoteVerificationResult},
|
||||
};
|
||||
use zksync_basic_types::H256;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(author = "Matter Labs", version, about = "SGX attestation and batch signature verifier", long_about = None)]
|
||||
|
@ -48,7 +48,7 @@ struct SignatureArgs {
|
|||
signature_file: PathBuf,
|
||||
/// Batch root hash for signature verification.
|
||||
#[arg(long)]
|
||||
root_hash: B256,
|
||||
root_hash: H256,
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue