@@ -183,7 +183,7 @@ impl ZkappHandler for SnarkHandler {
183183 let account2 = account. clone ( ) ;
184184 let account = WithLazyHash :: new ( account, move |w : & mut Witness < Fp > | {
185185 let zkapp = MyCow :: borrow_or_default ( & account2. zkapp ) ;
186- zkapp. checked_hash_with_param ( & MINA_ZKAPP_ACCOUNT , w) ;
186+ zkapp. checked_hash_with_param ( MINA_ZKAPP_ACCOUNT , w) ;
187187 account2. checked_hash ( w)
188188 } ) ;
189189 account
@@ -306,8 +306,8 @@ impl CallForestInterface for SnarkCallForest {
306306 [ x, ..] => x. stack_hash . get ( ) . unwrap ( ) , // Never fail, it was already hashed
307307 } ) ;
308308 let tree_hash = [ account_update. hash , subforest. hash ]
309- . checked_hash_with_param ( & MINA_ACCOUNT_UPDATE_NODE , w) ;
310- let _hash_cons = [ tree_hash, tl_hash] . checked_hash_with_param ( & MINA_ACCOUNT_UPDATE_CONS , w) ;
309+ . checked_hash_with_param ( MINA_ACCOUNT_UPDATE_NODE , w) ;
310+ let _hash_cons = [ tree_hash, tl_hash] . checked_hash_with_param ( MINA_ACCOUNT_UPDATE_CONS , w) ;
311311 let account = Self :: AccountUpdate {
312312 body : account_update,
313313 authorization : auth. clone ( ) ,
@@ -417,7 +417,7 @@ impl StackFrameInterface for StackFrameChecked {
417417
418418/// Call_stack_digest.Checked.cons
419419fn call_stack_digest_checked_cons ( h : Fp , t : Fp , w : & mut Witness < Fp > ) -> Fp {
420- checked_hash ( & MINA_ACCOUNT_UPDATE_STACK_FRAME_CONS , & [ h, t] , w)
420+ checked_hash ( MINA_ACCOUNT_UPDATE_STACK_FRAME_CONS , & [ h, t] , w)
421421}
422422
423423impl StackInterface for WithHash < Vec < WithStackHash < WithHash < StackFrame > > > > {
@@ -881,7 +881,7 @@ impl AccountInterface for SnarkAccount {
881881 . as_ref ( )
882882 . unwrap ( ) ;
883883 let vk = w. exists ( vk. vk ( ) ) ;
884- vk. checked_hash_with_param ( & MINA_SIDELOADED_VK , w) ;
884+ vk. checked_hash_with_param ( MINA_SIDELOADED_VK , w) ;
885885 }
886886 Signature | NoneGiven => { }
887887 }
@@ -1029,7 +1029,7 @@ impl LedgerInterface for LedgerWithHash {
10291029 let account2 = account. 0 . clone ( ) ;
10301030 let account = WithLazyHash :: new ( account. 0 , move |w : & mut Witness < Fp > | {
10311031 let zkapp = MyCow :: borrow_or_default ( & account2. zkapp ) ;
1032- zkapp. checked_hash_with_param ( & MINA_ZKAPP_ACCOUNT , w) ;
1032+ zkapp. checked_hash_with_param ( MINA_ZKAPP_ACCOUNT , w) ;
10331033 account2. checked_hash ( w)
10341034 } ) ;
10351035 let inclusion = w. exists (
@@ -1112,7 +1112,7 @@ impl AccountIdInterface for SnarkAccountId {
11121112 type W = Witness < Fp > ;
11131113
11141114 fn derive_token_id ( account_id : & AccountId , w : & mut Self :: W ) -> TokenId {
1115- TokenId ( account_id. checked_hash_with_param ( & MINA_DERIVE_TOKEN_ID , w) )
1115+ TokenId ( account_id. checked_hash_with_param ( MINA_DERIVE_TOKEN_ID , w) )
11161116 }
11171117}
11181118
@@ -1220,8 +1220,7 @@ impl TransactionCommitmentInterface for SnarkTransactionCommitment {
12201220 ) -> Fp {
12211221 let fee_payer_hash = account_updates. body . hash ;
12221222
1223- [ memo_hash, fee_payer_hash, commitment]
1224- . checked_hash_with_param ( & MINA_ACCOUNT_UPDATE_CONS , w)
1223+ [ memo_hash, fee_payer_hash, commitment] . checked_hash_with_param ( MINA_ACCOUNT_UPDATE_CONS , w)
12251224 }
12261225}
12271226
@@ -1373,7 +1372,7 @@ impl ActionsInterface for SnarkActions {
13731372
13741373 fn push_events ( event : Fp , actions : & zkapp_command:: Actions , w : & mut Self :: W ) -> Fp {
13751374 let hash = zkapp_command:: events_to_field ( actions) ;
1376- checked_hash ( & MINA_ZKAPP_SEQ_EVENTS , & [ event, hash] , w)
1375+ checked_hash ( MINA_ZKAPP_SEQ_EVENTS , & [ event, hash] , w)
13771376 }
13781377}
13791378
@@ -1393,7 +1392,7 @@ impl ReceiptChainHashInterface for SnarkReceiptChainHash {
13931392 inputs. append_field ( element) ;
13941393 inputs. append ( & other) ;
13951394
1396- ReceiptChainHash ( checked_hash ( & CODA_RECEIPT_UC , & inputs. to_fields ( ) , w) )
1395+ ReceiptChainHash ( checked_hash ( CODA_RECEIPT_UC , & inputs. to_fields ( ) , w) )
13971396 }
13981397}
13991398
0 commit comments