forked from bitcoin-teleport/teleport-transactions
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #9: Taker protocol refactoring
4c5d4c4 fix test failure bug (rajarshimaitra) 3f6cfa9 Finishing touches. (rajarshimaitra) b97d82f Taker Refactoring. (rajarshimaitra) d8fb9d7 Rename Error to TeleportError. (rajarshimaitra) cb509b3 Use a dedicated NextSwapInfo (rajarshimaitra) b5b05a4 Refactor 1: Use FundingTxInfo in protocol (rajarshimaitra) 8163b4a Small enhancement to init.sh (rajarshimaitra) Pull request description: This is an ongoing work of simplifying the `taker-protocol.rs` module. The Objective is to clearly define critical and non-ceritical portions of the Taker states. Approach: - first simplify the existing function definition. Create common containers to hold related data. - Use a dedicated `Taker` strcut (concept in `taker.rs`). Handle all function calls via mutable and immutable references to this struct. Work done so far: - Use the existing `FundingTxInfo` to pass around data which fits in this message. This partially simplifies `exchange_signatures_and_find_next_maker` and other downstream functions. Next Work: - [x] create a dedicated `NextPeerInfo` to containerise next peer info related data. - [x] create a `CurrentSwapCoin` info to hold all the active swap coins. Use that to pass around required data in protocol functions. - [x] use the new `Taker` struct to perform coinswap protocol. Top commit has no ACKs. Tree-SHA512: f538ca821c7c45912068c2d722e96d6da2579beb073c51e4a10c2225715d5272abef117f8a34b3dc9c98342c6acdab7f61adfc8fcff589701bb57a5e1f4d17e0
- Loading branch information
Showing
15 changed files
with
2,048 additions
and
1,867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.