You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TapLeafScript is extended to handle everything that is required for
spending in a generic way. The witness for Simplicity looks familiar:
The "witness stack", the "script_pubkey" and the control block.
What these are is slighly different:
"Witness stack" is one large byte blob that deserializes to the
Simplicity program plus its witness data. There is always exactly one
item on the witness stack, unlike Miniscript where there are often
multiple items.
"Script_pubkey" is a Bitcoin Script that contains the CMR.
The control block is as usual. Even though there are these differences,
the code for computing the "witness size" should be general enough to
work for both Miniscript and Simplicity.
0 commit comments