pub fn validate_internal_consistency(
        &self,
        offset: &BlindingFactor,
        total_reward: MicroTari,
        factories: &CryptoFactories,
    ) -> Result<(), TransactionError>
    {
        let total_offset = factories.commitment.commit_value(&offset, total_reward.0);

        self.verify_kernel_signatures()?;
        self.validate_kernel_sum(total_offset, &factories.commitment)?;
        self.validate_range_proofs(&factories.range_proof)
    }
/// Validate this transaction by checking the following:
/// 1. The sum of inputs, outputs and fees equal the (public excess value + offset)
/// 1. The signature signs the canonical message with the private excess
/// 1. Range proofs of the outputs are valid
///
/// This function does NOT check that inputs come from the UTXO set
/// The reward is the total amount of Tari rewarded for this block (block reward + total fees), this should be 0
/// for a transaction
Validate this transaction by checking the following:
1. The sum of inputs, outputs and fees equal the (public excess value + offset)
1. The signature signs the canonical message with the private excess
1. Range proofs of the outputs are valid

This function does NOT check that inputs come from the UTXO set
The reward is the total amount of Tari rewarded for this block (block reward + total fees), this should be 0
for a transaction
Validate this transaction by checking the following : 1 . The sum of inputs outputs and fees equal the ( public excess value + offset ) 1 . The signature signs the canonical message with the private excess 1 . Range proofs of the outputs are valid This function does NOT check that inputs come from the UTXO set The reward is the total amount of Tari rewarded for this block ( block reward + total fees ) this should be 0 for a transaction
pub fn validate_internal_consistency(
        &self,
        offset: &BlindingFactor,
        total_reward: MicroTari,
        factories: &CryptoFactories,
    ) -> Result<(), TransactionError>
    {
        let total_offset = factories.commitment.commit_value(&offset, total_reward.0);
        self.verify_kernel_signatures()?;
        self.validate_kernel_sum(total_offset, &factories.commitment)?;
        self.validate_range_proofs(&factories.range_proof)
    }
pub fn validate_internal_consistency ( & self , offset : & BlindingFactor , total_reward : MicroTari , factories : & CryptoFactories , ) -> Result < ( ) , TransactionError > { let total_offset = factories . commitment . commit_value ( & offset , total_reward . 0 ) ; self . verify_kernel_signatures ( ) ? ; self . validate_kernel_sum ( total_offset , & factories . commitment ) ? ; self . validate_range_proofs ( & factories . range_proof ) }
Validate this transaction by checking the following:
1.
Validate this transaction by checking the following : 1 .
&self
offset
&BlindingFactor
total_reward
MicroTari
factories
&CryptoFactories
&self
offset
&BlindingFactor
total_reward
MicroTari
factories
&CryptoFactories