Skip to content

Commit

Permalink
adding pallas imports to remove redundant pallas:: usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-arte committed Jun 20, 2023
1 parent 049e6f4 commit 048052e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ mod tests {
use crate::{Address, Note};
use group::{Group, GroupEncoding};
use nonempty::NonEmpty;
use pasta_curves::pallas;
use pasta_curves::pallas::{Point, Scalar};
use rand::rngs::OsRng;
use rand::RngCore;
use reddsa::Error::InvalidSignature;
Expand Down Expand Up @@ -673,8 +673,7 @@ mod tests {

// This function computes the identity point on the Pallas curve and returns an Asset Base with that value.
fn identity_point() -> AssetBase {
let identity_point =
(pallas::Point::generator() * -pallas::Scalar::one()) + pallas::Point::generator();
let identity_point = (Point::generator() * -Scalar::one()) + Point::generator();
AssetBase::from_bytes(&identity_point.to_bytes()).unwrap()
}

Expand Down

0 comments on commit 048052e

Please sign in to comment.