-
Shubham Singhal authored
- Implement simple transaction check - Inpmlement Transaction handling in Block messages
Shubham Singhal authored- Implement simple transaction check - Inpmlement Transaction handling in Block messages
transaction_checks.rs 251 B
use crate::transaction::{self, SignedTransaction};
pub fn is_tx_valid(signed_tx: &SignedTransaction) -> bool {
//verify whether the tx is signed properly
return transaction::verify(&signed_tx.tx, &signed_tx.signature, &signed_tx.public_key);
}