mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-26 02:39:13 -04:00
Remove empty lines between imports
This commit is contained in:
parent
4e031ff9a2
commit
25edd90fb0
@ -1,7 +1,3 @@
|
|||||||
use anyhow::{anyhow, Result};
|
|
||||||
use ecdsa_fun::adaptor::{Adaptor, EncryptedSignature};
|
|
||||||
use rand::{CryptoRng, RngCore};
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
bitcoin,
|
bitcoin,
|
||||||
bitcoin::{BroadcastSignedTransaction, WatchForRawTransaction},
|
bitcoin::{BroadcastSignedTransaction, WatchForRawTransaction},
|
||||||
@ -9,7 +5,12 @@ use crate::{
|
|||||||
monero::{ImportOutput, Transfer},
|
monero::{ImportOutput, Transfer},
|
||||||
transport::SendReceive,
|
transport::SendReceive,
|
||||||
};
|
};
|
||||||
use ecdsa_fun::nonce::Deterministic;
|
use anyhow::{anyhow, Result};
|
||||||
|
use ecdsa_fun::{
|
||||||
|
adaptor::{Adaptor, EncryptedSignature},
|
||||||
|
nonce::Deterministic,
|
||||||
|
};
|
||||||
|
use rand::{CryptoRng, RngCore};
|
||||||
use sha2::Sha256;
|
use sha2::Sha256;
|
||||||
use std::convert::{TryFrom, TryInto};
|
use std::convert::{TryFrom, TryInto};
|
||||||
|
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ecdsa_fun::adaptor::EncryptedSignature;
|
use ecdsa_fun::{adaptor::EncryptedSignature, Signature};
|
||||||
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
use crate::{bitcoin, monero};
|
use crate::{bitcoin, monero};
|
||||||
use ecdsa_fun::Signature;
|
|
||||||
|
|
||||||
use std::convert::TryFrom;
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Message {
|
pub enum Message {
|
||||||
|
@ -8,6 +8,7 @@ use bitcoin::{
|
|||||||
util::psbt::PartiallySignedTransaction,
|
util::psbt::PartiallySignedTransaction,
|
||||||
SigHash, Transaction,
|
SigHash, Transaction,
|
||||||
};
|
};
|
||||||
|
pub use bitcoin::{Address, Amount, OutPoint, Txid};
|
||||||
use ecdsa_fun::{
|
use ecdsa_fun::{
|
||||||
adaptor::Adaptor,
|
adaptor::Adaptor,
|
||||||
fun::{
|
fun::{
|
||||||
@ -17,14 +18,13 @@ use ecdsa_fun::{
|
|||||||
nonce::Deterministic,
|
nonce::Deterministic,
|
||||||
ECDSA,
|
ECDSA,
|
||||||
};
|
};
|
||||||
|
pub use ecdsa_fun::{adaptor::EncryptedSignature, Signature};
|
||||||
use miniscript::{Descriptor, Segwitv0};
|
use miniscript::{Descriptor, Segwitv0};
|
||||||
use rand::{CryptoRng, RngCore};
|
use rand::{CryptoRng, RngCore};
|
||||||
use sha2::Sha256;
|
use sha2::Sha256;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
pub use crate::bitcoin::transactions::{TxCancel, TxLock, TxPunish, TxRedeem, TxRefund};
|
pub use crate::bitcoin::transactions::{TxCancel, TxLock, TxPunish, TxRedeem, TxRefund};
|
||||||
pub use bitcoin::{Address, Amount, OutPoint, Txid};
|
|
||||||
pub use ecdsa_fun::{adaptor::EncryptedSignature, Signature};
|
|
||||||
|
|
||||||
pub const TX_FEE: u64 = 10_000;
|
pub const TX_FEE: u64 = 10_000;
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
use crate::{bitcoin, monero};
|
use crate::{bitcoin, monero};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use ecdsa_fun::{adaptor::EncryptedSignature, Signature};
|
use ecdsa_fun::{adaptor::EncryptedSignature, Signature};
|
||||||
|
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
use std::ops::Add;
|
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use rand::{CryptoRng, RngCore};
|
|
||||||
|
|
||||||
pub use curve25519_dalek::scalar::Scalar;
|
pub use curve25519_dalek::scalar::Scalar;
|
||||||
pub use monero::{Address, PrivateKey, PublicKey};
|
pub use monero::{Address, PrivateKey, PublicKey};
|
||||||
|
use rand::{CryptoRng, RngCore};
|
||||||
|
use std::ops::Add;
|
||||||
|
|
||||||
pub fn random_private_key<R: RngCore + CryptoRng>(rng: &mut R) -> PrivateKey {
|
pub fn random_private_key<R: RngCore + CryptoRng>(rng: &mut R) -> PrivateKey {
|
||||||
let scalar = Scalar::random(rng);
|
let scalar = Scalar::random(rng);
|
||||||
|
@ -3,10 +3,8 @@ use crate::{
|
|||||||
transport::Transport,
|
transport::Transport,
|
||||||
};
|
};
|
||||||
use bitcoin_harness::Bitcoind;
|
use bitcoin_harness::Bitcoind;
|
||||||
|
|
||||||
use monero_harness::Monero;
|
use monero_harness::Monero;
|
||||||
use rand::rngs::OsRng;
|
use rand::rngs::OsRng;
|
||||||
|
|
||||||
use testcontainers::clients::Cli;
|
use testcontainers::clients::Cli;
|
||||||
use tokio::sync::{
|
use tokio::sync::{
|
||||||
mpsc,
|
mpsc,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use tokio::{
|
use tokio::{
|
||||||
stream::StreamExt,
|
stream::StreamExt,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user