pub fn scan(script: &[u8]) -> ScriptTemplate
Scan one script (tapscript, scriptPubKey, or witness element).