mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-25 23:49:31 -05:00
Rename module to better represent what it contains
This module provides an implementation of the RequestResponseCodec using a cbor serialization.
This commit is contained in:
parent
1de0b39b32
commit
0c0a322a8f
@ -1,7 +1,7 @@
|
|||||||
|
pub mod cbor_request_response;
|
||||||
pub mod encrypted_signature;
|
pub mod encrypted_signature;
|
||||||
pub mod peer_tracker;
|
pub mod peer_tracker;
|
||||||
pub mod quote;
|
pub mod quote;
|
||||||
pub mod request_response;
|
|
||||||
pub mod spot_price;
|
pub mod spot_price;
|
||||||
pub mod transfer_proof;
|
pub mod transfer_proof;
|
||||||
pub mod transport;
|
pub mod transport;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::network::request_response::CborCodec;
|
use crate::network::cbor_request_response::CborCodec;
|
||||||
use libp2p::core::ProtocolName;
|
use libp2p::core::ProtocolName;
|
||||||
use libp2p::request_response::{
|
use libp2p::request_response::{
|
||||||
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::bitcoin;
|
use crate::bitcoin;
|
||||||
use crate::network::request_response::CborCodec;
|
use crate::network::cbor_request_response::CborCodec;
|
||||||
use libp2p::core::ProtocolName;
|
use libp2p::core::ProtocolName;
|
||||||
use libp2p::request_response::{
|
use libp2p::request_response::{
|
||||||
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::network::request_response::CborCodec;
|
use crate::network::cbor_request_response::CborCodec;
|
||||||
use crate::{bitcoin, monero};
|
use crate::{bitcoin, monero};
|
||||||
use libp2p::core::ProtocolName;
|
use libp2p::core::ProtocolName;
|
||||||
use libp2p::request_response::{
|
use libp2p::request_response::{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::monero;
|
use crate::monero;
|
||||||
use crate::network::request_response::CborCodec;
|
use crate::network::cbor_request_response::CborCodec;
|
||||||
use libp2p::core::ProtocolName;
|
use libp2p::core::ProtocolName;
|
||||||
use libp2p::request_response::{
|
use libp2p::request_response::{
|
||||||
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
ProtocolSupport, RequestResponse, RequestResponseConfig, RequestResponseEvent,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::bitcoin::{EncryptedSignature, Signature};
|
use crate::bitcoin::{EncryptedSignature, Signature};
|
||||||
use crate::network::request_response::BUF_SIZE;
|
use crate::network::cbor_request_response::BUF_SIZE;
|
||||||
use crate::protocol::alice::{State0, State3};
|
use crate::protocol::alice::{State0, State3};
|
||||||
use crate::protocol::bob::{Message0, Message2, Message4};
|
use crate::protocol::bob::{Message0, Message2, Message4};
|
||||||
use crate::{bitcoin, monero};
|
use crate::{bitcoin, monero};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::bitcoin::Signature;
|
use crate::bitcoin::Signature;
|
||||||
use crate::network::request_response::BUF_SIZE;
|
use crate::network::cbor_request_response::BUF_SIZE;
|
||||||
use crate::protocol::alice::{Message1, Message3};
|
use crate::protocol::alice::{Message1, Message3};
|
||||||
use crate::protocol::bob::{State0, State2};
|
use crate::protocol::bob::{State0, State2};
|
||||||
use anyhow::{Context, Error, Result};
|
use anyhow::{Context, Error, Result};
|
||||||
|
Loading…
Reference in New Issue
Block a user