Skip to content

Commit

Permalink
Merge pull request #143 from dusk-network/upgrade_signatures
Browse files Browse the repository at this point in the history
Update to new signature crates
  • Loading branch information
moCello authored Jan 17, 2024
2 parents db456ec + c37900a commit 4df1ffb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
13 changes: 9 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Exchanged `[email protected]` dependency for `[email protected]`
- Exchanged `[email protected]` dependency for `[email protected]`

## [0.24.0] - 2024-01-03

## Changed
### Changed

- Update dusk-poseidon -> 0.33
- Update dusk-schnorr -> 0.18

## [0.23.0] - 2023-12-13

## Removed
### Removed

- Remove `HexDebug` trait for keys [#136]
- Remove `public_key` and `view_key` methods from `SecretKey` in favor of the `From` trait [#136]
- Remove `public_key` method from `ViewKey` in favor of the `From` trait [#136]

## Added
### Added

- Derive `Debug` trait for keys [#136]

## Changed
### Changed

- Update dusk-bls12_381 -> 0.13
- Update dusk-jubjub -> 0.14
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ exclude = [".github/workflows/ci.yml", ".gitignore"]
rand_core = { version = "0.6", default-features = false }
dusk-bytes = "0.1"
dusk-bls12_381 = { version = "0.13", default-features = false }
dusk-bls12_381-sign = { version = "0.6", default-features = false }
bls12_381-bls = { version = "0.1", default-features = false }
dusk-jubjub = { version = "0.14", default-features = false }
dusk-poseidon = { version = "0.33", default-features = false }
dusk-schnorr = { version = "0.18", default-features = false }
jubjub-schnorr = { version = "0.1", 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 All @@ -32,9 +32,9 @@ alloc = []
rkyv-impl = [
"dusk-poseidon/rkyv-impl",
"dusk-jubjub/rkyv-impl",
"dusk-schnorr/rkyv-impl",
"jubjub-schnorr/rkyv-impl",
"dusk-bls12_381/rkyv-impl",
"dusk-bls12_381-sign/rkyv-impl",
"bls12_381-bls/rkyv-impl",
"rkyv",
"bytecheck"
]
2 changes: 1 addition & 1 deletion src/keys/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use crate::{permutation, StealthAddress};
use dusk_jubjub::JubJubScalar;
use dusk_schnorr::SecretKey as NoteSecretKey;
use ff::Field;
use jubjub_schnorr::SecretKey as NoteSecretKey;

#[cfg(feature = "rkyv-impl")]
use rkyv::{Archive, Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion src/keys/stealth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright (c) DUSK NETWORK. All rights reserved.

use dusk_jubjub::{JubJubAffine, JubJubExtended};
use dusk_schnorr::PublicKey as NotePublicKey;
use jubjub_schnorr::PublicKey as NotePublicKey;

use dusk_bytes::{DeserializableSlice, Error, Serializable};

Expand Down
2 changes: 1 addition & 1 deletion src/transaction/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use alloc::vec::Vec;

use crate::StealthAddress;
use bls12_381_bls::{PublicKey, Signature};
use dusk_bls12_381::BlsScalar;
use dusk_bls12_381_sign::{PublicKey, Signature};
use dusk_bytes::Serializable;
#[cfg(feature = "rkyv-impl")]
use rkyv::{Archive, Deserialize, Serialize};
Expand Down

0 comments on commit 4df1ffb

Please sign in to comment.