mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-29 12:06:35 -05:00
Move definitions out of lib.rs
This commit is contained in:
parent
b88a777bae
commit
f2a25ee49b
16 changed files with 85 additions and 81 deletions
|
|
@ -10,7 +10,7 @@ pub use ::bitcoin::{util::amount::Amount, Address, Network, Transaction, Txid};
|
|||
pub use ecdsa_fun::{adaptor::EncryptedSignature, fun::Scalar, Signature};
|
||||
pub use wallet::Wallet;
|
||||
|
||||
use crate::{bitcoin::timelocks::BlockHeight, config::Config, ExpiredTimelocks};
|
||||
use crate::{bitcoin::timelocks::BlockHeight, config::Config};
|
||||
use ::bitcoin::{
|
||||
hashes::{hex::ToHex, Hash},
|
||||
secp256k1,
|
||||
|
|
@ -25,6 +25,7 @@ use rand::{CryptoRng, RngCore};
|
|||
use serde::{Deserialize, Serialize};
|
||||
use sha2::Sha256;
|
||||
use std::str::FromStr;
|
||||
use timelocks::ExpiredTimelocks;
|
||||
|
||||
// TODO: Configurable tx-fee (note: parties have to agree prior to swapping)
|
||||
// Current reasoning:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue