Skip to content

Commit b2c6979

Browse files
authored
Impl #383 - Clone for PublicParameters (#384)
1 parent cae6972 commit b2c6979

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.5.1] - 02-02-21
11+
### Changed
12+
- Implement `Clone` for `PublicParameters` [#383](https://github.com/dusk-network/plonk/issues/383)
13+
1014
## [0.5.0] - 27-01-21
1115
### Changed
1216
- Upgrade canonical to v0.5 (#371)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dusk-plonk"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Kevaundray Wedderburn <[email protected]>",
55
"Luke Pearson <[email protected]>",
66
"CPerezz <[email protected]>"]

src/commitment_scheme/kzg10/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct OpeningKey {
3232
}
3333

3434
/// CommitKey is used to commit to a polynomial which is bounded by the max_degree.
35-
#[derive(Debug, PartialEq)]
35+
#[derive(Debug, Clone, PartialEq)]
3636
pub struct CommitKey {
3737
/// Group elements of the form `{ \beta^i G }`, where `i` ranges from 0 to `degree`.
3838
pub powers_of_g: Vec<G1Affine>,

src/commitment_scheme/kzg10/srs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use serde::{self, Deserialize, Deserializer, Serialize, Serializer};
2020
/// The Public Parameters can also be referred to as the Structured Reference String (SRS).
2121
/// It is available to both the prover and verifier and allows the verifier to
2222
/// efficiently verify and make claims about polynomials up to and including a configured degree.
23-
#[derive(Debug)]
23+
#[derive(Debug, Clone)]
2424
pub struct PublicParameters {
2525
/// Key used to generate proofs for composed circuits.
2626
pub commit_key: CommitKey,

0 commit comments

Comments
 (0)