Skip to content

Commit 4f76e64

Browse files
authored
dev: optimize executing Aleo program in aleo-rust (#6)
1 parent 1d35c15 commit 4f76e64

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed
21.8 KB
Binary file not shown.
11.7 KB
Binary file not shown.
124 KB
Binary file not shown.
79 KB
Binary file not shown.

ios/debug/libcore.a

-239 KB
Binary file not shown.

ios/release/libcore.a

-165 KB
Binary file not shown.

rust/src/aleo/transaction.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export! {
444444
println!("start prove_execution");
445445

446446
let execution = trace
447-
.prove_execution::<CurrentAleo, _>(&locator,VarunaVersion::V1, &mut StdRng::from_entropy())
447+
.prove_execution::<CurrentAleo, _>(&locator,VarunaVersion::V2, &mut StdRng::from_entropy())
448448
.map_err(|e| e.to_string());
449449
if let Err(error) = execution {
450450
return serialize_aleo_error(&error);
@@ -563,18 +563,18 @@ export! {
563563
return serialize_aleo_error(&error);
564564
}
565565
println!("start prove_fee");
566-
let final_fee = trace.prove_fee::<CurrentAleo, _>(VarunaVersion::V1,&mut StdRng::from_entropy()).map_err(|e|e.to_string());
566+
let final_fee = trace.prove_fee::<CurrentAleo, _>(VarunaVersion::V2,&mut StdRng::from_entropy()).map_err(|e|e.to_string());
567567
if let Err(error) = final_fee {
568568
return serialize_aleo_error(&error);
569569
}
570570
let final_fee = final_fee.unwrap();
571571
println!("start verify_fee");
572-
let res = process.verify_fee(VarunaVersion::V1,&final_fee, execution_id).map_err(|e| e.to_string());
572+
let res = process.verify_fee(VarunaVersion::V2,&final_fee, execution_id).map_err(|e| e.to_string());
573573
if let Err(error) = res {
574574
return serialize_aleo_error(&error);
575575
}
576576
println!("start verify_execution");
577-
let res = process.verify_execution(VarunaVersion::V1,&execution).map_err(|err| err.to_string());
577+
let res = process.verify_execution(VarunaVersion::V2,&execution).map_err(|err| err.to_string());
578578
if let Err(error) = res {
579579
return serialize_aleo_error(&error);
580580
}
@@ -594,7 +594,7 @@ export! {
594594
}).to_string()
595595
} else {
596596
println!("start verify_execution");
597-
let res = process.verify_execution(VarunaVersion::V1,&execution).map_err(|err| err.to_string());
597+
let res = process.verify_execution(VarunaVersion::V2,&execution).map_err(|err| err.to_string());
598598
if let Err(error) = res {
599599
return serialize_aleo_error(&error);
600600
}

0 commit comments

Comments
 (0)