1- use std:: { io:: Cursor , str:: FromStr , sync:: Arc } ;
2-
3- use ark_ff:: { BigInteger256 , One , UniformRand , Zero } ;
4- use mina_core:: constants:: PROTOCOL_VERSION ;
5- use mina_curves:: pasta:: Fp ;
6- use mina_p2p_messages:: {
7- binprot:: { BinProtRead , BinProtWrite } ,
8- v2,
9- } ;
10- use mina_signer:: CompressedPubKey ;
11- use once_cell:: sync:: { Lazy , OnceCell } ;
12- use rand:: { prelude:: ThreadRng , seq:: SliceRandom , Rng } ;
13- use serde:: { Deserialize , Serialize } ;
14-
151use crate :: {
162 gen_compressed,
173 proofs:: {
@@ -31,6 +17,15 @@ use crate::{
3117 zkapps:: snark:: FlaggedOption ,
3218 AppendToInputs as _, MerklePath , MyCow , ToInputs ,
3319} ;
20+ use ark_ff:: { BigInteger256 , One , UniformRand , Zero } ;
21+ use mina_core:: constants:: PROTOCOL_VERSION ;
22+ use mina_curves:: pasta:: Fp ;
23+ use mina_p2p_messages:: {
24+ binprot:: { BinProtRead , BinProtWrite } ,
25+ v2,
26+ } ;
27+ use mina_signer:: CompressedPubKey ;
28+ use once_cell:: sync:: { Lazy , OnceCell } ;
3429use poseidon:: hash:: {
3530 hash_noinputs, hash_with_kimchi,
3631 params:: {
@@ -39,6 +34,9 @@ use poseidon::hash::{
3934 } ,
4035 Inputs ,
4136} ;
37+ use rand:: { prelude:: ThreadRng , seq:: SliceRandom , Rng } ;
38+ use serde:: { Deserialize , Serialize } ;
39+ use std:: { io:: Cursor , str:: FromStr , sync:: Arc } ;
4240
4341use super :: common:: * ;
4442
@@ -424,12 +422,6 @@ pub struct VerificationKey {
424422 pub wrap_vk : Option < ( ) > ,
425423}
426424
427- // impl From<VerificationKey> for MinaBaseVerificationKeyWireStableV1Base64 {
428- // fn from(value: VerificationKey) -> Self {
429- // MinaBaseVerificationKeyWireStableV1Base64((&value).into())
430- // }
431- // }
432-
433425impl Check < Fp > for VerificationKey {
434426 fn check ( & self , w : & mut Witness < Fp > ) {
435427 let Self {
0 commit comments