pub trait Checkable {
fn check_signatures(&self) -> Result<(), CheckError>;
fn check_without_signatures(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError>;
fn check(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError> { ... }
}
Expand description
Means that the transaction can be validated.
Required Methods
sourcefn check_signatures(&self) -> Result<(), CheckError>
fn check_signatures(&self) -> Result<(), CheckError>
Validates that all required signatures are set in the transaction and that they are valid.
sourcefn check_without_signatures(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError>
fn check_without_signatures(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError>
Validates the transactions according to rules from the specification: https://github.com/FuelLabs/fuel-specs/blob/master/specs/protocol/tx_format.md#transaction
Provided Methods
sourcefn check(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError>
fn check(
&self,
block_height: Word,
parameters: &ConsensusParameters
) -> Result<(), CheckError>
Fully validates the transaction. It checks the validity of fields according to rules in the specification and validity of signatures.