Delegate to a Script
Previously, we have introduced two ways to delegate the right to spend one’s bitcoin: one at Script level, the other at transaction level.
We generalize the former to delegate to any script/smart contract, instead of a public key only. It allows one to authorize arbitrary smart contract to spend one’s…