Skip to content

Commit

Permalink
IO getters for RecursiveSnark (lurk-lang#312)
Browse files Browse the repository at this point in the history
* IO getters for `RecursiveSnark`

* Nova IO getters
  • Loading branch information
gabriel-barrett authored Feb 10, 2024
1 parent 42a9f16 commit e1783c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,16 @@ where
})
}

/// Inputs of the primary circuits
pub fn z0_primary(&self) -> &Vec<E1::Scalar> {
&self.z0_primary
}

/// Outputs of the primary circuits
pub fn zi_primary(&self) -> &Vec<E1::Scalar> {
&self.zi_primary
}

/// Create a new `RecursiveSNARK` (or updates the provided `RecursiveSNARK`)
/// by executing a step of the incremental computation
#[tracing::instrument(skip_all, name = "nova::RecursiveSNARK::prove_step")]
Expand Down
10 changes: 10 additions & 0 deletions src/supernova/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,16 @@ where
})
}

/// Inputs of the primary circuits
pub fn z0_primary(&self) -> &Vec<E1::Scalar> {
&self.z0_primary
}

/// Outputs of the primary circuits
pub fn zi_primary(&self) -> &Vec<E1::Scalar> {
&self.zi_primary
}

/// executing a step of the incremental computation
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip_all, name = "supernova::RecursiveSNARK::prove_step")]
Expand Down

0 comments on commit e1783c8

Please sign in to comment.