Skip to content

Commit

Permalink
Merge pull request #141 from dusk-network/update-dep
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
moCello authored Jan 3, 2024
2 parents e7c437d + 3164dc5 commit 9b365f6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dusk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 9b365f6

Please sign in to comment.