Skip to content

Commit

Permalink
Change dense PI construction fn in Composer
Browse files Browse the repository at this point in the history
There's no other way to enable easy tests for the
users that develop gadgets that is not implement
the Gadget as if it was a Circuit by itself which is
nonsensical.

So this changes the fn visibility to `pub` for
`StandardComposer::construct_dense_pi_vec`.

Resolves: #461
  • Loading branch information
CPerezz committed Mar 12, 2021
1 parent 8e431bf commit c89e015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraint_system/composer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl StandardComposer {

/// Constructs a dense vector of the Public Inputs from the positions and
/// the sparse vector that contains the values.
pub(crate) fn construct_dense_pi_vec(&self) -> Vec<BlsScalar> {
pub fn construct_dense_pi_vec(&self) -> Vec<BlsScalar> {
let mut pi = vec![BlsScalar::zero(); self.n];
self.public_inputs_sparse_store
.iter()
Expand Down

0 comments on commit c89e015

Please sign in to comment.