xmr-btc-swap/swap/src/bitcoin
Thomas Eizinger 52b9a78de2
Alice to validate Bob's PSBT for correctness
In order for the re-construction of TxLock to be meaningful, we limit
`Message2` to the PSBT instead of the full struct. This is a breaking
change in the network layer.

The PSBT is valid if:

- It has at most two outputs (we allow a change output)
- One of the outputs pays the agreed upon amount to a shared output script

Resolves #260.
2021-03-30 13:02:56 +11:00
..
cancel.rs Move more domain knowledge onto the TxCancel type 2021-03-18 15:44:37 +11:00
lock.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
punish.rs Introduce Watchable abstraction for Bitcoin wallet 2021-03-16 19:24:32 +11:00
redeem.rs Introduce a more flexible transaction subscription system 2021-03-30 10:29:19 +11:00
refund.rs Move extract_monero_private_key onto TxRefund 2021-03-18 15:44:36 +11:00
timelocks.rs Greatly reduce load onto the Electrum backend 2021-03-16 19:24:31 +11:00
wallet.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00