tdex-network / dev-portal

The TDex Developer Portal where you can find documentation, tutorials, and developer resources!
https://dev.tdex.network
MIT License
4 stars 12 forks source link

[Specs] Make explicit Pset constraint for SwapRequest #43

Open altafan opened 2 years ago

altafan commented 2 years ago

The Trade protocol spec must make clear that the inputs of a partial transaction sent within a TradePropose message must contain the RedeemScript/WitnessScript for every P2SH/P2WSH input.

This is because by design the daemon is in charge of adding the network fees and without these info, it simply cannot do its job correctly.

Making this explicit forces both parties to make sure that the constrain is respected: