From c89e015be14b90060cc5b4cd1d1056dbac535dfb Mon Sep 17 00:00:00 2001 From: CPerezz Date: Fri, 12 Mar 2021 09:20:37 +0100 Subject: [PATCH 1/3] Change dense PI construction fn in Composer 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 --- src/constraint_system/composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constraint_system/composer.rs b/src/constraint_system/composer.rs index 7e8efd14..1f0b6793 100644 --- a/src/constraint_system/composer.rs +++ b/src/constraint_system/composer.rs @@ -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 { + pub fn construct_dense_pi_vec(&self) -> Vec { let mut pi = vec![BlsScalar::zero(); self.n]; self.public_inputs_sparse_store .iter() From b745401661daee481e2c5aa3a8cdf5157f8839d6 Mon Sep 17 00:00:00 2001 From: CPerezz Date: Thu, 11 Mar 2021 20:02:06 +0100 Subject: [PATCH 2/3] Change trim() visibility to pub Make `PublicParameters::trim` a public method avaliable for backwards testing compatibility reasons. Resolves: #460 --- src/commitment_scheme/kzg10/srs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commitment_scheme/kzg10/srs.rs b/src/commitment_scheme/kzg10/srs.rs index d59920f1..5cf86fa4 100644 --- a/src/commitment_scheme/kzg10/srs.rs +++ b/src/commitment_scheme/kzg10/srs.rs @@ -143,7 +143,7 @@ impl PublicParameters { /// polynomials up to the and including the truncated degree. /// Returns an error if the truncated degree is larger than the public /// parameters configured degree. - pub(crate) fn trim( + pub fn trim( &self, truncated_degree: usize, ) -> Result<(CommitKey, OpeningKey), Error> { From 6208a50084d537093f26585becb72a9e37b399b4 Mon Sep 17 00:00:00 2001 From: CPerezz Date: Fri, 12 Mar 2021 12:39:28 +0100 Subject: [PATCH 3/3] Bump to 0.6.1 Resolves: #464 --- CHANGELOG.md | 7 +++++++ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b5741b6..06501d6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.6.1] - 12-03-21 + +### Changed + +- Change `PublicParameters::trim` visibility to `pub`. [#460](https://github.com/dusk-network/plonk/issues/460) +- Change `StandardComposer::construct_dense_pi_vec` visibility to `pub`.[#461](https://github.com/dusk-network/plonk/issues/461) + ## [0.6.0] - 11-03-21 ### Added diff --git a/Cargo.toml b/Cargo.toml index 6c8b9454..8920aa28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dusk-plonk" -version = "0.6.0" +version = "0.6.1" authors = ["Kevaundray Wedderburn ", "Luke Pearson ", "CPerezz "]