Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed May 31, 2024
1 parent 8ee0ef1 commit c495c1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/src/network/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const DEFAULT_PROVER_NETWORK_RPC: &str = "https://rpc.succinct.xyz/";
/// The default SP1 Verifier address on all chains.
const DEFAULT_SP1_VERIFIER_ADDRESS: &str = "0xed2107448519345059eab9cddab42ddc78fbebe9";

/// The timeout for a request to the network.
/// The timeout for a proof request to be fulfilled.
const TIMEOUT: Duration = Duration::from_secs(60 * 60);

pub struct NetworkClient {
Expand Down
4 changes: 0 additions & 4 deletions sdk/src/proto/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ pub enum ProofMode {
Compressed = 2,
/// The proof mode for a PlonK proof.
Plonk = 3,
/// The proof mode for a Groth16 proof.
Groth16 = 4,
}
impl ProofMode {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -320,7 +318,6 @@ impl ProofMode {
ProofMode::Core => "PROOF_MODE_CORE",
ProofMode::Compressed => "PROOF_MODE_COMPRESSED",
ProofMode::Plonk => "PROOF_MODE_PLONK",
ProofMode::Groth16 => "PROOF_MODE_GROTH16",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -330,7 +327,6 @@ impl ProofMode {
"PROOF_MODE_CORE" => Some(Self::Core),
"PROOF_MODE_COMPRESSED" => Some(Self::Compressed),
"PROOF_MODE_PLONK" => Some(Self::Plonk),
"PROOF_MODE_GROTH16" => Some(Self::Groth16),
_ => None,
}
}
Expand Down

0 comments on commit c495c1e

Please sign in to comment.