@@ -137,7 +137,7 @@ pub fn sign_proof(
137137 ark_pubin : PublicInputs ,
138138 wots_sec : & WotsSecretKeys ,
139139) -> Groth16WotsSignatures {
140- generate_signatures_lit ( ark_proof, ark_pubin, & ark_vkey, wots_sec. 1 . to_vec ( ) ) . unwrap ( )
140+ generate_signatures_lit ( ark_proof, ark_pubin, ark_vkey, wots_sec. 1 . to_vec ( ) ) . unwrap ( )
141141}
142142
143143pub fn generate_bitvm_graph (
@@ -264,7 +264,7 @@ pub fn generate_bitvm_graph(
264264 let assert_wots_pubkeys = & params. operator_wots_pubkeys . 1 ;
265265 let connector_d = ConnectorD :: new ( network, & committee_taproot_pubkey) ;
266266 let all_assert_commit_connectors_e =
267- AllCommitConnectorsE :: new ( network, & operator_pubkey, & assert_wots_pubkeys) ;
267+ AllCommitConnectorsE :: new ( network, & operator_pubkey, assert_wots_pubkeys) ;
268268 let assert_init_input_0_vout: usize = 2 ;
269269 let assert_init_input_0 = Input {
270270 outpoint : OutPoint { txid : kickoff_txid, vout : assert_init_input_0_vout as u32 } ,
@@ -424,7 +424,7 @@ pub fn push_operator_pre_signature(
424424 graph : & mut Bitvm2Graph ,
425425 signed_witness : & Witness ,
426426) -> Result < ( ) > {
427- if graph. operator_pre_signed == true {
427+ if graph. operator_pre_signed {
428428 bail ! ( "already pre-signed by operator" . to_string( ) )
429429 } ;
430430 graph. challenge . tx_mut ( ) . input [ 0 ] . witness = signed_witness. clone ( ) ;
@@ -442,7 +442,7 @@ pub fn operator_sign_kickoff(
442442 let kickoff_wots_commitment_keys =
443443 CommitmentMessageId :: pubkey_map_for_kickoff ( & operator_wots_pubkeys. 0 ) ;
444444 let evm_txid_inputs = WinternitzSigningInputs {
445- message : & withdraw_evm_txid. to_vec ( ) ,
445+ message : withdraw_evm_txid. as_ref ( ) ,
446446 signing_key : & operator_wots_seckeys. 0 [ 0 ] ,
447447 } ;
448448 let connector_6 = Connector6 :: new (
@@ -508,7 +508,7 @@ pub fn operator_sign_assert(
508508 let all_assert_commit_connectors_e = AllCommitConnectorsE :: new (
509509 operator_context. network ,
510510 & operator_context. operator_public_key ,
511- & assert_wots_pubkeys,
511+ assert_wots_pubkeys,
512512 ) ;
513513 graph. assert_commit . sign ( & all_assert_commit_connectors_e, assert_commit_witness) ;
514514
0 commit comments