From c051f4e9ea196341b92c64671f8e0d8f7af1b0e7 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Thu, 17 Jul 2025 09:43:44 -0300 Subject: [PATCH] rename --- risc0-selective-privacy-poc/examples/private_execution.rs | 3 ++- risc0-selective-privacy-poc/src/lib.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/risc0-selective-privacy-poc/examples/private_execution.rs b/risc0-selective-privacy-poc/examples/private_execution.rs index d77e700..86dd25f 100644 --- a/risc0-selective-privacy-poc/examples/private_execution.rs +++ b/risc0-selective-privacy-poc/examples/private_execution.rs @@ -46,7 +46,8 @@ fn main() { InputVisibiility::Private(Some((sender_private_key, auth_path))), InputVisibiility::Private(None), ]; - let receipt = nssa::prove_privacy_execution::( + + let receipt = nssa::execute_and_prove_privacy_execution::( &[sender, receiver], &balance_to_move, &visibilities, diff --git a/risc0-selective-privacy-poc/src/lib.rs b/risc0-selective-privacy-poc/src/lib.rs index f8e095e..d1f98dd 100644 --- a/risc0-selective-privacy-poc/src/lib.rs +++ b/risc0-selective-privacy-poc/src/lib.rs @@ -27,7 +27,7 @@ fn write_inputs( Ok(()) } -fn execute_and_prove( +fn execute_and_prove_inner( input_accounts: &[Account], instruction_data: &P::InstructionData, ) -> Result<(Receipt, Vec), ()> { @@ -66,7 +66,7 @@ pub fn execute( Ok(inputs_outputs) } -pub fn prove_privacy_execution( +pub fn execute_and_prove_privacy_execution( inputs: &[Account], instruction_data: &P::InstructionData, visibilities: &[InputVisibiility], @@ -74,7 +74,7 @@ pub fn prove_privacy_execution( ) -> Result { // Prove inner program and get post state of the accounts let num_inputs = inputs.len(); - let (inner_receipt, inputs_outputs) = execute_and_prove::

(inputs, instruction_data)?; + let (inner_receipt, inputs_outputs) = execute_and_prove_inner::

(inputs, instruction_data)?; // Sample fresh random nonces for the outputs of this execution let output_nonces: Vec<_> = (0..num_inputs).map(|_| new_random_nonce()).collect();