Unless Syrius becomes their daily driver. In the future, I think we will need a full BTC wallet in Syrius that can send, receive, and transparently interact with NoM. I would need to research what exactly we would need to support to be viable as a production wallet. If we want to grow the community, our target consumer must be the sovereign individual, and not the NoM bagholder lmao.
But ok, let’s get an MVP for just the atomic swap.
Tapscript is the same as script but with a few tweaks particularly around multisig.
There is also MAST which is a big improvement.
Basically you commit the root node of a merkle tree, where the leaves are different spending scripts.
To spend you only have to reveal the script you are actually using and the merkle path to the root. The unspent scripts are never revealed.
For example in our case we have 2 spending paths: the htlc unlock and the reclaim. H() is the hash function.
H(htlc script) = X
H(reclaim script) = Y
H(X,Y) = R
The PT2R would just publicly commit to R
To unlock: I would need to provide the following data.
htlc script sig, htlc script, Y
The chain would then be able to verify the htlc script sig unlocks the htlc script.
It would be able to hash htlc script to produce X, and then do the combined H(X,Y) to get R.
Reclaim script is never revealed.
Likewise, reclaiming would be the same.
You only need:
reclaim script sig, reclaim script, X
P2TR is basically just being able to pay to Schnorr sig or MAST.
Schnorr, Tapscript, MAST, P2TR = Taproot