Skip to content

Commit

Permalink
fixed directories
Browse files Browse the repository at this point in the history
Signed-off-by: wthrajat <rajatkhanduri290102@gmail.com>
  • Loading branch information
wthrajat committed Dec 10, 2023
1 parent 880d2ec commit 369d00f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/developer_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ In this protocol it's always important to as much as possible avoid DOS attack o

Alice is the taker, Bob, Charlie and Dennis are makers. For a detailed explanation including definitions see the mailing list email [here](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2020-October/018221.html). That email should be read first and then you can jump back to the diagram below when needed while reading the code.

Protocol messages are defined by the structs found in `src/messages.rs` and serialized into json with rust's serde crate.
Protocol messages are defined by the structs found in `src/protocol/messages.rs` and serialized into JSON with rust's serde crate.

```
| Alice | Bob | Charlie | Dennis | message, or (step) if repeat
Expand Down Expand Up @@ -169,7 +169,7 @@ to either side of a coinswap hop. The entity which created a transaction paying
address is called the sender, because they sent the coins into the coinswap address. The other
entity is called the receiver, because they will receive the coins after the coinswap is complete.

Protocol messages are defined in two enums in the `src/messages.rs`. The individual message names
Protocol messages are defined in two enums in the `src/protocol/messages.rs`. The individual message names
use `Send` and `Recv` in them to identify their context as per the above definition.

```rust
Expand Down Expand Up @@ -209,7 +209,7 @@ pub enum TakerToMakerMessage {
}
```

A step-by-step communication sequence for a typical 3-hop-swap with the above messages is provided in [`src/messages.rs`](https://github.com/utxo-teleport/teleport-transactions/blob/30be708642cfdaa206d52e147ecb580af7db0bda/src/messages.rs#L20-L59), as below.
A step-by-step communication sequence for a typical 3-hop-swap with the above messages is provided in [`src/protocol/messages.rs`](https://github.com/utxo-teleport/teleport-transactions/blob/master/src/protocol/messages.rs#L20-L62), as below.

```
//! The simplest 3 hop Coinswap communication, between a Taker and two Makers in a multi-hop coinswap is shown below.
Expand Down

0 comments on commit 369d00f

Please sign in to comment.