Skip to content

Commit

Permalink
Merge pull request #574 from dusk-network/vlopes11/public-input-exten…
Browse files Browse the repository at this point in the history
…ded-point

Add `From` extended point to `PublicInputValue`
  • Loading branch information
vlopes11 authored Sep 17, 2021
2 parents d3412ce + ce75703 commit c2e0c39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dusk-plonk"
version = "0.8.1"
version = "0.8.2"
authors = ["Kevaundray Wedderburn <[email protected]>",
"Luke Pearson <[email protected]>",
"CPerezz <[email protected]>"]
Expand Down
8 changes: 7 additions & 1 deletion src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand All @@ -41,6 +41,12 @@ impl From<JubJubAffine> for PublicInputValue {
}
}

impl From<JubJubExtended> 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.
Expand Down

0 comments on commit c2e0c39

Please sign in to comment.