Skip to content

Commit

Permalink
Update dusk-poseidon to v0.20 (#68)
Browse files Browse the repository at this point in the history
Resolves #67
  • Loading branch information
vlopes11 authored Apr 6, 2021
1 parent 1cda5e3 commit 5526352
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.10.0] - 2021-04-06

### Changed

- Update dusk-poseidon to `v0.20` [#67](https://github.com/dusk-network/phoenix-core/issues/67)

## [0.9.1] - 2021-02-11

### Changed
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phoenix-core"
version = "0.9.1"
version = "0.10.0"
authors = ["zer0 <[email protected]>", "Victor Lopez <[email protected]"]
edition = "2018"

Expand All @@ -9,8 +9,8 @@ rand_core = "0.5"
dusk-bytes = "0.1"
dusk-bls12_381 = {version = "0.6", default-features = false}
dusk-jubjub = {version = "0.8", default-features = false}
dusk-poseidon = {version = "0.18", default-features = false}
dusk-pki = { version = "0.6", default-features = false}
dusk-poseidon = {version = "0.20", default-features = false}
dusk-pki = {version = "0.6", default-features = false}
canonical = {version = "0.5", optional = true}
canonical_derive = {version = "0.5", optional = true}

Expand Down
11 changes: 4 additions & 7 deletions tests/note_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use core::convert::TryInto;

use assert_matches::*;
use dusk_jubjub::{JubJubScalar, GENERATOR_EXTENDED, GENERATOR_NUMS_EXTENDED};
use dusk_pki::{Ownable, SecretSpendKey};
use phoenix_core::{Crossover, Error, Fee, Note, NoteType};
Expand Down Expand Up @@ -168,9 +167,8 @@ fn fee_and_crossover_generation() -> Result<(), Error> {
let wrong_note: Note = (wrong_fee, crossover).into();

assert_ne!(note, wrong_note);
assert_matches!(
wrong_note.value(Some(&vk)),
Err(Error::InvalidCipher),
assert!(
matches!(wrong_note.value(Some(&vk)), Err(Error::InvalidCipher),),
"Expected to fail the decryption of the cipher"
);

Expand All @@ -192,9 +190,8 @@ fn fail_fee_and_crossover_from_transparent() {
let note = Note::transparent(rng, &psk, value);
let result: Result<(Fee, Crossover), Error> = note.try_into();

assert_matches!(
result,
Err(Error::InvalidNoteConversion),
assert!(
matches!(result, Err(Error::InvalidNoteConversion),),
"Expected to fail the Note Conversion"
);
}
Expand Down

0 comments on commit 5526352

Please sign in to comment.