Trait tributary_chain::transaction::Transaction
source · pub trait Transaction: 'static + Send + Sync + Clone + Eq + Debug + ReadWrite {
// Required methods
fn kind(&self) -> TransactionKind<'_>;
fn hash(&self) -> [u8; 32];
fn verify(&self) -> Result<(), TransactionError>;
// Provided method
fn sig_hash(&self, genesis: [u8; 32]) -> <Ristretto as Ciphersuite>::F { ... }
}
Required Methods§
sourcefn kind(&self) -> TransactionKind<'_>
fn kind(&self) -> TransactionKind<'_>
Return what type of transaction this is.
sourcefn hash(&self) -> [u8; 32]
fn hash(&self) -> [u8; 32]
Return the hash of this transaction.
The hash must NOT commit to the signature.
sourcefn verify(&self) -> Result<(), TransactionError>
fn verify(&self) -> Result<(), TransactionError>
Perform transaction-specific verification.
Provided Methods§
Object Safety§
This trait is not object safe.