diff --git a/swap/src/storage.rs b/swap/src/storage.rs index 0f6f2517..b6bfca3c 100644 --- a/swap/src/storage.rs +++ b/swap/src/storage.rs @@ -81,14 +81,13 @@ mod tests { use rand::rngs::OsRng; use serde::{Deserialize, Serialize}; use std::str::FromStr; - use xmr_btc::serde::monero_private_key; - use xmr_btc::{CrossCurveScalar, Curve25519Scalar}; + use xmr_btc::{cross_curve_dleq, curve25519_dalek, serde::monero_private_key}; #[derive(Debug, Serialize, Deserialize, PartialEq)] pub struct TestState { A: xmr_btc::bitcoin::PublicKey, a: xmr_btc::bitcoin::SecretKey, - s_a: CrossCurveScalar, + s_a: cross_curve_dleq::Scalar, #[serde(with = "monero_private_key")] s_b: monero::PrivateKey, S_a_monero: ::monero::PublicKey, @@ -109,8 +108,9 @@ mod tests { let db = Database::open(db_dir.path()).unwrap(); let a = xmr_btc::bitcoin::SecretKey::new_random(&mut OsRng); - let s_a = CrossCurveScalar::random(&mut OsRng); - let s_b = monero::PrivateKey::from_scalar(Curve25519Scalar::random(&mut OsRng)); + let s_a = cross_curve_dleq::Scalar::random(&mut OsRng); + let s_b = + monero::PrivateKey::from_scalar(curve25519_dalek::scalar::Scalar::random(&mut OsRng)); let v_a = xmr_btc::monero::PrivateViewKey::new_random(&mut OsRng); let S_a_monero = monero::PublicKey::from_private_key(&monero::PrivateKey { scalar: s_a.into_ed25519(), diff --git a/xmr-btc/src/lib.rs b/xmr-btc/src/lib.rs index 6a14fce6..f2effbb5 100644 --- a/xmr-btc/src/lib.rs +++ b/xmr-btc/src/lib.rs @@ -52,8 +52,8 @@ pub mod monero; pub mod serde; pub mod transport; -pub use cross_curve_dleq::Scalar as CrossCurveScalar; -pub use curve25519_dalek::scalar::Scalar as Curve25519Scalar; +pub use cross_curve_dleq; +pub use curve25519_dalek; use async_trait::async_trait; use ecdsa_fun::{adaptor::Adaptor, nonce::Deterministic};