@@ -10,8 +10,8 @@ use miden_protocol::note::NoteType;
1010use miden_protocol:: testing:: account_id:: { ACCOUNT_ID_PUBLIC_FUNGIBLE_FAUCET , ACCOUNT_ID_SENDER } ;
1111use miden_protocol:: transaction:: { ExecutedTransaction , ProvenTransaction } ;
1212use miden_testing:: { Auth , MockChainBuilder } ;
13- use miden_tx:: LocalTransactionProver ;
1413use miden_tx:: utils:: { Deserializable , Serializable } ;
14+ use miden_tx:: { LocalTransactionProver , TransactionVerifier } ;
1515use miden_tx_batch_prover:: LocalBatchProver ;
1616
1717use crate :: generated:: api_client:: ApiClient ;
@@ -324,8 +324,7 @@ async fn unsupported_proof_kind_is_rejected() {
324324
325325/// Checks that the a transaction request results in a correct proof.
326326///
327- /// The proof is replicated locally, which ensures that the gRPC codec and server code do the
328- /// correct thing.
327+ /// The proof is verified and the transaction IDs of request and response must correspond.
329328#[ tokio:: test( flavor = "multi_thread" ) ]
330329async fn transaction_proof_is_correct ( ) {
331330 let ( server, port) = Server :: with_arbitrary_port ( ProofKind :: Transaction )
@@ -340,10 +339,8 @@ async fn transaction_proof_is_correct() {
340339 let response = client. submit_request ( request) . await . unwrap ( ) ;
341340 let response = ProvenTransaction :: read_from_bytes ( & response. payload ) . unwrap ( ) ;
342341
343- let expected = tokio:: task:: block_in_place ( || {
344- LocalTransactionProver :: default ( ) . prove ( tx. tx_inputs ( ) . clone ( ) ) . unwrap ( )
345- } ) ;
346- assert_eq ! ( response, expected) ;
342+ assert_eq ! ( response. id( ) , tx. id( ) ) ;
343+ TransactionVerifier :: new ( MIN_PROOF_SECURITY_LEVEL ) . verify ( & response) . unwrap ( ) ;
347344
348345 server. abort ( ) ;
349346}
0 commit comments