Skip to content

Commit

Permalink
refactor: allow non snake case for snarkjs keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zkfriendly committed Jul 15, 2024
1 parent aa04c2d commit 2f37198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rust-verifier/src/verifier_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct SnarkJsProof {
}

#[derive(Debug, Deserialize)]
#[allow(non_snake_case)]
struct SnarkJsVkey {
vk_alpha_1: [String; 3],
vk_beta_2: [[String; 2]; 3],
Expand All @@ -45,6 +46,7 @@ pub struct PublicInputs<const N: usize> {

// helper struct for deserializing public inputs count
#[derive(Deserialize)]
#[allow(non_snake_case)]
pub struct PublicInputsCount {
pub nPublic: usize,
}
Expand Down

0 comments on commit 2f37198

Please sign in to comment.