fn is_unspendable(script: &ScriptBuf) -> bool
Checks if a script is unspendable either by its length or if it contains the OP_RETURN opcode. It follows the implementation on Bitcoin Core.
OP_RETURN