From 2f371986662b8d33eaf63321488f2ce67d00a3c2 Mon Sep 17 00:00:00 2001 From: zkFriendly Date: Mon, 15 Jul 2024 10:05:56 +0200 Subject: [PATCH] refactor: allow non snake case for snarkjs keys --- packages/rust-verifier/src/verifier_utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/rust-verifier/src/verifier_utils.rs b/packages/rust-verifier/src/verifier_utils.rs index b1c1b7fd..d43d0197 100644 --- a/packages/rust-verifier/src/verifier_utils.rs +++ b/packages/rust-verifier/src/verifier_utils.rs @@ -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], @@ -45,6 +46,7 @@ pub struct PublicInputs { // helper struct for deserializing public inputs count #[derive(Deserialize)] +#[allow(non_snake_case)] pub struct PublicInputsCount { pub nPublic: usize, }