pub fn run_script(&self) -> Result<PublicKey, TransactionError> {
        match self.script.execute(&self.input_data)? {
            StackItem::PublicKey(pubkey) => Ok(pubkey),
            _ => Err(TransactionError::ScriptExecutionError(
                "The script executed successfully but it did not leave a public key on the stack".to_string(),
            )),
        }
    }
/// This will run the script contained in the TransactionInput, returning either a script error or the resulting
/// public key.
This will run the script contained in the TransactionInput, returning either a script error or the resulting
public key.
This will run the script contained in the TransactionInput returning either a script error or the resulting public key .
pub fn run_script(&self) -> Result<PublicKey, TransactionError> {
        match self.script.execute(&self.input_data)? {
            StackItem::PublicKey(pubkey) => Ok(pubkey),
            _ => Err(TransactionError::ScriptExecutionError(
                "The script executed successfully but it did not leave a public key on the stack".to_string(),
            )),
        }
    }
pub fn run_script ( & self ) -> Result < PublicKey , TransactionError > { match self . script . execute ( & self . input_data ) ? { StackItem :: PublicKey ( pubkey ) => Ok ( pubkey ) , _ => Err ( TransactionError :: ScriptExecutionError ( " " . to_string ( ) , ) ) , } }
This will run the script contained in the TransactionInput, returning either a script error or the resulting
public key.
This will run the script contained in the TransactionInput returning either a script error or the resulting public key .
&self
&self