Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- Update dusk-poseidon -> 0.32
- Update dusk-schnorr -> 0.17
  • Loading branch information
moCello committed Jan 3, 2024
1 parent b7014ce commit 3164dc5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Changed

- Update dusk-poseidon -> 0.32
- Update dusk-schnorr -> 0.17

## [0.23.0] - 2023-12-13

## Removed
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dusk-bytes = "0.1"
dusk-bls12_381 = { version = "0.13", default-features = false }
dusk-bls12_381-sign = { version = "0.6", default-features = false }
dusk-jubjub = { version = "0.14", default-features = false }
dusk-poseidon = { version = "0.32", default-features = false }
dusk-schnorr = { version = "0.17", default-features = false }
dusk-poseidon = { version = "0.33", default-features = false }
dusk-schnorr = { version = "0.18", default-features = false }
subtle = { version = "^2.2.1", default-features = false }
rkyv = { version = "0.7", optional = true, default-features = false }
bytecheck = { version = "0.6", optional = true, default-features = false }
Expand Down
9 changes: 5 additions & 4 deletions tests/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ use core::convert::TryInto;

use dusk_bls12_381::BlsScalar;
use dusk_jubjub::JubJubScalar;
use ff::Field;
use phoenix_core::{Error, Note, PublicKey, SecretKey, Transaction};
use rand_core::OsRng;

#[test]
fn transaction_parse() -> Result<(), Error> {
let rng = &mut OsRng;
let mut rng = OsRng;

let ssk = SecretKey::random(rng);
let ssk = SecretKey::random(&mut rng);
let psk = PublicKey::from(ssk);

let value = 25;
let blinding_factor = JubJubScalar::random(rng);
let note = Note::obfuscated(rng, &psk, value, blinding_factor);
let blinding_factor = JubJubScalar::random(&mut rng);
let note = Note::obfuscated(&mut rng, &psk, value, blinding_factor);

let (fee, crossover) = note.try_into()?;
let anchor = BlsScalar::from(123);
Expand Down

0 comments on commit 3164dc5

Please sign in to comment.