diff --git a/CHANGELOG.md b/CHANGELOG.md index 601ceb42..e6010abb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.8.2] - 17-09-21 + +### Added + +- Add `From` extended point to `PublicInputValue` [#573](https://github.com/dusk-network/plonk/issues/574) + ### Fixed - Fix the document references and typos [#533](https://github.com/dusk-network/plonk/pull/533) diff --git a/Cargo.toml b/Cargo.toml index 37df4f2a..03a3e0e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dusk-plonk" -version = "0.8.1" +version = "0.8.2" authors = ["Kevaundray Wedderburn ", "Luke Pearson ", "CPerezz "] diff --git a/src/circuit.rs b/src/circuit.rs index 59bd0659..ad71994a 100644 --- a/src/circuit.rs +++ b/src/circuit.rs @@ -15,7 +15,7 @@ use alloc::vec::Vec; use canonical_derive::Canon; use dusk_bls12_381::BlsScalar; use dusk_bytes::{DeserializableSlice, Serializable, Write}; -use dusk_jubjub::{JubJubAffine, JubJubScalar}; +use dusk_jubjub::{JubJubAffine, JubJubExtended, JubJubScalar}; #[derive(Default, Debug, Clone)] #[cfg_attr(feature = "canon", derive(Canon))] @@ -41,6 +41,12 @@ impl From for PublicInputValue { } } +impl From for PublicInputValue { + fn from(point: JubJubExtended) -> Self { + JubJubAffine::from(point).into() + } +} + #[derive(Debug, Clone)] /// Collection of structs/objects that the Verifier will use in order to /// de/serialize data needed for Circuit proof verification.