From b7014ce36bf29552806216efaad49cb5e196f651 Mon Sep 17 00:00:00 2001 From: moana Date: Wed, 3 Jan 2024 16:11:56 +0100 Subject: [PATCH 1/2] Update CI --- .github/workflows/dusk_ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dusk_ci.yml b/.github/workflows/dusk_ci.yml index e7d4c56..37fdc9f 100644 --- a/.github/workflows/dusk_ci.yml +++ b/.github/workflows/dusk_ci.yml @@ -21,6 +21,8 @@ jobs: test_std: name: tests std uses: dusk-network/.github/.github/workflows/run-tests.yml@main + with: + test_flags: --features alloc test_rkyv: name: tests rkyv From 3164dc521f82ae38499c89fc773df81475ce535f Mon Sep 17 00:00:00 2001 From: moana Date: Wed, 3 Jan 2024 16:15:20 +0100 Subject: [PATCH 2/2] Update dependencies - Update dusk-poseidon -> 0.32 - Update dusk-schnorr -> 0.17 --- CHANGELOG.md | 5 +++++ Cargo.toml | 4 ++-- tests/transaction.rs | 9 +++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b69439..c39bf7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 9958fe7..6bc0185 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/tests/transaction.rs b/tests/transaction.rs index 83e5992..20995ba 100644 --- a/tests/transaction.rs +++ b/tests/transaction.rs @@ -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);