Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #141

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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