parse method
Implementation
@override
void parse(SVScript script) {
if (script != null && script.buffer != null) {
//create a hash of the serialized script
var hash = hash160(HEX.decode(script.toHex()));
scriptHash = HEX.encode(hash);
}else{
throw ScriptException(ScriptError.SCRIPT_ERR_UNKNOWN_ERROR, "Invalid Script or Malformed Script.");
}
}